User Tools

Site Tools


swing:combo_box

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
swing:combo_box [2016/05/26 14:29]
gthanos
swing:combo_box [2018/03/27 20:53]
gthanos [Εditable combo box]
Line 77: Line 77:
  
   protected void updateLabel(String name) {   protected void updateLabel(String name) {
-    ImageIcon icon = createImageIcon("images/"name + ".gif");+    ImageIcon icon = createImageIcon(name + ".gif");
     picture.setIcon(icon);     picture.setIcon(icon);
     picture.setToolTipText("A drawing of a " + name.toLowerCase());     picture.setToolTipText("A drawing of a " + name.toLowerCase());
Line 264: Line 264:
  
  
 +| Προηγούμενο: [[:swing:lists | Λίστες - Η κλάση JList ]] | [[:toc | Περιεχόμενα ]] | Επόμενο: [[:swing:panels | Η κλάση JPanel ]] |
  
swing/combo_box.txt · Last modified: 2018/04/13 08:27 (external edit)