Changeset 346 in josm
- Timestamp:
- 2007-10-07T16:24:43+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r345 r346 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Dimension; 6 7 import java.awt.GridBagLayout; 7 8 import java.awt.event.ActionEvent; … … 30 31 this.action = action; 31 32 String normalized = text.replaceAll("\\[([^\\]]*)\\]", "$1"); 32 String link = "<html><h 2>"+text.replaceAll("\\[([^\\]]*)\\]", "<a href='"+action+"'>$1</a>")+"</h2></html>";33 String link = "<html><h3>"+text.replaceAll("\\[([^\\]]*)\\]", "<a href='"+action+"'>$1</a>")+"</h3></html>"; 33 34 setContentType("text/html"); 34 35 setText(link); … … 70 71 addGettingHelp(); 71 72 72 panel.add(GBC.glue(0,140), GBC.eol()); 73 panel.add(GBC.glue(0,70), GBC.eol()); 74 //panel.setMinimumSize(new Dimension(400, 600)); 73 75 add(panel); 74 76 } … … 87 89 88 90 public void addCategory(String category) { 89 panel.add(new JLabel("<html><h 1>"+category+"</h1></html>"), GBC.eop().fill(GBC.HORIZONTAL).insets(0,20,0,0));91 panel.add(new JLabel("<html><h2>"+category+"</h2></html>"), GBC.eol().fill(GBC.HORIZONTAL).insets(0,20,0,0)); 90 92 } 91 93 … … 95 97 button.addActionListener(this); 96 98 button.setActionCommand(action); 97 panel.add(button, GBC.std().insets( 40,0,15,0));99 panel.add(button, GBC.std().insets(20,0,5,0)); 98 100 panel.add(new LinkLabel(text,action),GBC.eol()); 99 101 }
Note:
See TracChangeset
for help on using the changeset viewer.