Ticket #1607: LafPreference.diff
File LafPreference.diff, 1.7 KB (added by , 16 years ago) |
---|
-
src/org/openstreetmap/josm/gui/preferences/LafPreference.java
4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 6 import java.awt.Component; 7 import java.awt.GridBagLayout; 7 8 import java.lang.reflect.*; 8 9 9 10 import javax.swing.DefaultListCellRenderer; 10 11 import javax.swing.JComboBox; 11 12 import javax.swing.JLabel; 12 13 import javax.swing.JList; 14 import javax.swing.JPanel; 15 import javax.swing.JScrollPane; 13 16 import javax.swing.ListCellRenderer; 14 17 import javax.swing.UIManager; 15 18 import javax.swing.UIManager.LookAndFeelInfo; 19 import javax.swing.BorderFactory; 20 import javax.swing.Box; 16 21 17 22 import org.openstreetmap.josm.Main; 18 23 import org.openstreetmap.josm.tools.GBC; … … 42 61 }); 43 62 lafCombo.addActionListener(gui.requireRestartAction); 44 63 45 gui.display.add(new JLabel(tr("Look and Feel")), GBC.std()); 46 gui.display.add(GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); 47 gui.display.add(lafCombo, GBC.eol().fill(GBC.HORIZONTAL)); 64 JPanel panel = new JPanel(new GridBagLayout()); 65 panel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 66 panel.add(new JLabel(tr("Look and Feel")), GBC.std()); 67 panel.add(GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); 68 panel.add(lafCombo, GBC.eol().fill(GBC.HORIZONTAL)); 69 panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH)); 70 JScrollPane scrollpane = new JScrollPane(panel); 71 scrollpane.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 )); 72 gui.displaycontent.addTab(tr("Look and Feel"), scrollpane); 48 73 } 49 74 50 75 public void ok() {