This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
|
swing:combo_box [2015/05/18 07:00] gthanos [Listener Interface] |
swing:combo_box [2018/03/27 20:53] gthanos [Εditable combo box] |
||
|---|---|---|---|
| Line 23: | Line 23: | ||
| <code java ComboBoxDemo.java> | <code java ComboBoxDemo.java> | ||
| - | package components; | ||
| import java.awt.*; | import java.awt.*; | ||
| Line 78: | Line 77: | ||
| protected void updateLabel(String name) { | protected void updateLabel(String name) { | ||
| - | ImageIcon icon = createImageIcon(" | + | ImageIcon icon = createImageIcon(name + " |
| picture.setIcon(icon); | picture.setIcon(icon); | ||
| picture.setToolTipText(" | picture.setToolTipText(" | ||
| Line 136: | Line 135: | ||
| <code java ComboBoxDemo2.java> | <code java ComboBoxDemo2.java> | ||
| - | |||
| - | package components; | ||
| import java.awt.*; | import java.awt.*; | ||
| Line 267: | Line 264: | ||
| + | | Προηγούμενο: | ||