- Timestamp:
- 2016-01-20T00:05:07+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java
r8856 r9543 38 38 */ 39 39 protected JPanel buildWarningPanel(List<Relation> dep) { 40 JPanel pnl = new JPanel(); 41 pnl.setLayout(new BorderLayout()); 40 JPanel pnl = new JPanel(new BorderLayout()); 42 41 String msg = tr("<html>{0} relations build a cycle because they refer to each other.<br>" 43 42 + "JOSM cannot upload them. Please edit the relations and remove the " -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r9246 r9543 182 182 splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true); 183 183 184 leftPanel = new JPanel(); 185 leftPanel.setLayout(new GridBagLayout()); 184 leftPanel = new JPanel(new GridBagLayout()); 186 185 leftPanel.add(mapView, GBC.std().fill()); 187 186 splitPane.setLeftComponent(leftPanel); -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r8510 r9543 48 48 pane.add(customText, GBC.eol().fill(GBC.HORIZONTAL)); 49 49 pane.add(progressBar, GBC.eop().fill(GBC.HORIZONTAL)); 50 JPanel buttons = new JPanel(); 51 buttons.setLayout(new GridBagLayout()); 50 JPanel buttons = new JPanel(new GridBagLayout()); 52 51 btnCancel = new JButton(tr("Cancel")); 53 52 btnCancel.setIcon(ImageProvider.get("cancel")); -
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r9243 r9543 65 65 66 66 // Add a margin from the border to the content 67 JPanel innerContentPane = new JPanel( );67 JPanel innerContentPane = new JPanel(new GridBagLayout()); 68 68 innerContentPane.setBorder(new EmptyBorder(10, 10, 2, 10)); 69 69 contentPane.add(innerContentPane); 70 innerContentPane.setLayout(new GridBagLayout());71 70 72 71 // Add the logo -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r9193 r9543 103 103 gc.weightx = 1.0; 104 104 gc.weighty = 1.0; 105 getContentPane().add(pnlTagResolver = new JPanel( ), gc);105 getContentPane().add(pnlTagResolver = new JPanel(new BorderLayout()), gc); 106 106 gc.gridx = 0; 107 107 gc.gridy = 2; … … 113 113 114 114 protected JPanel buildButtonPanel() { 115 JPanel pnl = new JPanel(); 116 pnl.setLayout(new FlowLayout(FlowLayout.CENTER)); 115 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER)); 117 116 118 117 // -- apply button … … 132 131 133 132 protected JPanel buildSourceAndTargetInfoPanel() { 134 JPanel pnl = new JPanel(); 135 pnl.setLayout(new BorderLayout()); 133 JPanel pnl = new JPanel(new BorderLayout()); 136 134 statisticsModel = new StatisticsTableModel(); 137 135 pnl.add(new StatisticsInfoTable(statisticsModel), BorderLayout.CENTER); … … 174 172 175 173 // prepare the dialog with one tag resolver 176 pnlTagResolver.setLayout(new BorderLayout());177 174 pnlTagResolver.removeAll(); 178 175 pnlTagResolver.add(allPrimitivesResolver, BorderLayout.CENTER); … … 218 215 initResolver(OsmPrimitiveType.RELATION, tagsForRelations, targetStatistics); 219 216 220 pnlTagResolver.setLayout(new BorderLayout());221 217 pnlTagResolver.removeAll(); 222 218 pnlTagResolver.add(tpResolvers, BorderLayout.CENTER); -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolver.java
r8836 r9543 50 50 protected final void build() { 51 51 setLayout(new GridBagLayout()); 52 JPanel pnl = new JPanel(); 53 pnl.setLayout(new BorderLayout()); 52 JPanel pnl = new JPanel(new BorderLayout()); 54 53 pnl.add(lblHeader = new JMultilineLabel("")); 55 54 GridBagConstraints gc = new GridBagConstraints(); … … 65 64 gc.insets = new Insets(0, 0, 0, 0); 66 65 add(new JScrollPane(tblResolver = new RelationMemberConflictResolverTable(model)), gc); 67 pnl = new JPanel(); 68 pnl.setLayout(new BoxLayout(pnl, BoxLayout.Y_AXIS)); 66 pnl = new JPanel(new BoxLayout(pnl, BoxLayout.Y_AXIS)); 69 67 pnl.add(buildRoleEditingPanel()); 70 68 pnl.add(buildTagRelationsPanel()); … … 76 74 77 75 protected JPanel buildRoleEditingPanel() { 78 JPanel pnl = new JPanel(); 79 pnl.setLayout(new FlowLayout(FlowLayout.LEFT)); 76 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT)); 80 77 pnl.add(new JLabel(tr("Role:"))); 81 78 pnl.add(tfRole = new AutoCompletingTextField(10)); … … 95 92 96 93 protected JPanel buildTagRelationsPanel() { 97 JPanel pnl = new JPanel(); 98 pnl.setLayout(new FlowLayout(FlowLayout.LEFT)); 94 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT)); 99 95 cbTagRelations = new JCheckBox(tr("Tag modified relations with ")); 100 96 cbTagRelations.addChangeListener(new ToggleTagRelationsAction()); -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolver.java
r9078 r9543 33 33 34 34 protected JPanel buildInfoPanel() { 35 JPanel pnl = new JPanel( );35 JPanel pnl = new JPanel(new GridBagLayout()); 36 36 pnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 37 pnl.setLayout(new GridBagLayout());38 37 GridBagConstraints gc = new GridBagConstraints(); 39 38 gc.fill = GridBagConstraints.BOTH; -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictResolutionDialog.java
r8836 r9543 77 77 */ 78 78 protected JPanel buildButtonRow() { 79 JPanel pnl = new JPanel(); 80 pnl.setLayout(new FlowLayout(FlowLayout.CENTER)); 79 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER)); 81 80 82 81 applyResolutionAction = new ApplyResolutionAction(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/DeleteFromRelationConfirmationDialog.java
r9078 r9543 75 75 protected JPanel buildRelationMemberTablePanel() { 76 76 JTable table = new JTable(model, new RelationMemberTableColumnModel()); 77 JPanel pnl = new JPanel(); 78 pnl.setLayout(new BorderLayout()); 77 JPanel pnl = new JPanel(new BorderLayout()); 79 78 pnl.add(new JScrollPane(table)); 80 79 return pnl; … … 82 81 83 82 protected JPanel buildButtonPanel() { 84 JPanel pnl = new JPanel(); 85 pnl.setLayout(new FlowLayout()); 83 JPanel pnl = new JPanel(new FlowLayout()); 86 84 pnl.add(btnOK = new SideButton(new OKAction())); 87 85 btnOK.setFocusable(true); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java
r8836 r9543 59 59 protected JPanel buildQueryPanel() { 60 60 ItemListener stateChangeHandler = new RestrictionGroupStateChangeHandler(); 61 JPanel pnl = new VerticallyScrollablePanel( );61 JPanel pnl = new VerticallyScrollablePanel(new GridBagLayout()); 62 62 pnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 63 pnl.setLayout(new GridBagLayout());64 63 GridBagConstraints gc = new GridBagConstraints(); 65 64 -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r9525 r9543 158 158 159 159 /** JPanel containing both previous tables */ 160 private final JPanel bothTables = new JPanel( );160 private final JPanel bothTables = new JPanel(new GridBagLayout()); 161 161 162 162 // Popup menus … … 259 259 // combine both tables and wrap them in a scrollPane 260 260 boolean top = Main.pref.getBoolean("properties.presets.top", true); 261 bothTables.setLayout(new GridBagLayout());262 261 if (top) { 263 262 bothTables.add(presets, GBC.std().fill(GBC.HORIZONTAL).insets(5, 2, 5, 2).anchor(GBC.NORTHWEST)); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r9059 r9543 90 90 */ 91 91 protected JPanel buildButtonPanel() { 92 JPanel pnl = new JPanel(); 93 pnl.setLayout(new FlowLayout(FlowLayout.LEFT)); 92 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT)); 94 93 95 94 // --- -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r9511 r9543 192 192 pane.setPreferredSize(new Dimension(100, 100)); 193 193 194 JPanel pnl = new JPanel(); 195 pnl.setLayout(new BorderLayout()); 194 JPanel pnl = new JPanel(new BorderLayout()); 196 195 pnl.add(pane, BorderLayout.CENTER); 197 196 pnl.setBorder(BorderFactory.createRaisedBevelBorder()); … … 418 417 pnl.add(p3, gc); 419 418 420 JPanel pnl2 = new JPanel(); 421 pnl2.setLayout(new GridBagLayout()); 419 JPanel pnl2 = new JPanel(new GridBagLayout()); 422 420 423 421 gc.gridx = 0; … … 461 459 }); 462 460 463 JPanel pnl3 = new JPanel(); 464 pnl3.setLayout(new BorderLayout()); 461 JPanel pnl3 = new JPanel(new BorderLayout()); 465 462 pnl3.add(splitPane, BorderLayout.CENTER); 466 463 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowser.java
r9078 r9543 53 53 referrers.addMouseListener(new DblClickMouseAdapter()); 54 54 55 JPanel pnl = new JPanel(); 56 pnl.setLayout(new FlowLayout(FlowLayout.LEFT)); 55 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT)); 57 56 58 57 ReloadAction reloadAction = new ReloadAction(); -
trunk/src/org/openstreetmap/josm/gui/download/BookmarkSelection.java
r9059 r9543 58 58 */ 59 59 protected JPanel buildButtonPanel() { 60 JPanel pnl = new JPanel(); 61 pnl.setLayout(new GridBagLayout()); 60 JPanel pnl = new JPanel(new GridBagLayout()); 62 61 GridBagConstraints gc = new GridBagConstraints(); 63 62 gc.gridy = 0; … … 80 79 81 80 protected JPanel buildDownloadAreaAddPanel() { 82 JPanel pnl = new JPanel(); 83 pnl.setLayout(new GridBagLayout()); 81 JPanel pnl = new JPanel(new GridBagLayout()); 84 82 85 83 GridBagConstraints gc = new GridBagConstraints(); -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r9230 r9543 91 91 92 92 protected final JPanel buildMainPanel() { 93 JPanel pnl = new JPanel(); 94 pnl.setLayout(new GridBagLayout()); 93 JPanel pnl = new JPanel(new GridBagLayout()); 95 94 96 95 final ChangeListener checkboxChangeListener = new ChangeListener() { … … 187 186 188 187 protected final JPanel buildButtonPanel() { 189 JPanel pnl = new JPanel(); 190 pnl.setLayout(new FlowLayout()); 188 JPanel pnl = new JPanel(new FlowLayout()); 191 189 192 190 // -- download button -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r9484 r9543 95 95 96 96 protected JPanel buildSearchPanel() { 97 JPanel lpanel = new JPanel(); 98 lpanel.setLayout(new GridLayout(2, 2)); 99 JPanel panel = new JPanel(); 100 panel.setLayout(new GridBagLayout()); 97 JPanel lpanel = new JPanel(new GridLayout(2, 2)); 98 JPanel panel = new JPanel(new GridBagLayout()); 101 99 102 100 lpanel.add(new JLabel(tr("Choose the server for searching:"))); … … 135 133 @Override 136 134 public void addGui(final DownloadDialog gui) { 137 JPanel panel = new JPanel(); 138 panel.setLayout(new BorderLayout()); 135 JPanel panel = new JPanel(new BorderLayout()); 139 136 panel.add(buildSearchPanel(), BorderLayout.NORTH); 140 137 -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowser.java
r9453 r9543 39 39 */ 40 40 protected JPanel createVersionTablePanel() { 41 JPanel pnl = new JPanel(); 42 pnl.setLayout(new BorderLayout()); 41 JPanel pnl = new JPanel(new BorderLayout()); 43 42 44 43 VersionTable versionTable = new VersionTable(model); … … 63 62 relationMemberListViewer = new RelationMemberListViewer(model); 64 63 coordinateInfoViewer = new CoordinateInfoViewer(model); 65 JPanel pnl = new JPanel(); 66 pnl.setLayout(new BorderLayout()); 64 JPanel pnl = new JPanel(new BorderLayout()); 67 65 pnl.add(tpViewers, BorderLayout.CENTER); 68 66 -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java
r9059 r9543 82 82 add(browser, BorderLayout.CENTER); 83 83 84 JPanel pnl = new JPanel(); 85 pnl.setLayout(new FlowLayout(FlowLayout.CENTER)); 84 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER)); 86 85 87 86 SideButton btn = new SideButton(new ReloadAction()); -
trunk/src/org/openstreetmap/josm/gui/io/AbstractIOTask.java
r7358 r9543 4 4 /** 5 5 * This is an abstract task for uploading or saving a data layer. 6 * 6 * @since 2025 7 7 */ 8 8 public abstract class AbstractIOTask implements Runnable { -
trunk/src/org/openstreetmap/josm/gui/io/CloseChangesetDialog.java
r8836 r9543 52 52 53 53 protected JPanel buildTopPanel() { 54 JPanel pnl = new JPanel( );54 JPanel pnl = new JPanel(new BorderLayout()); 55 55 pnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 56 pnl.setLayout(new BorderLayout());57 56 pnl.add(new JLabel(tr("<html>Please select the changesets you want to close</html>")), BorderLayout.CENTER); 58 57 return pnl; … … 60 59 61 60 protected JPanel buildCenterPanel() { 62 JPanel pnl = new JPanel(); 63 pnl.setLayout(new BorderLayout()); 61 JPanel pnl = new JPanel(new BorderLayout()); 64 62 model = new DefaultListModel<>(); 65 63 pnl.add(new JScrollPane(lstOpenChangesets = new JList<>(model)), BorderLayout.CENTER); … … 69 67 70 68 protected JPanel buildSouthPanel() { 71 JPanel pnl = new JPanel(); 72 pnl.setLayout(new FlowLayout(FlowLayout.CENTER)); 69 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER)); 73 70 74 71 // -- close action -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r9173 r9543 103 103 */ 104 104 protected JPanel buildButtonRow() { 105 JPanel pnl = new JPanel(); 106 pnl.setLayout(new GridBagLayout()); 105 JPanel pnl = new JPanel(new GridBagLayout()); 107 106 108 107 saveAndProceedAction = new SaveAndProceedAction(); … … 120 119 pnl.add(new JButton(cancelAction), GBC.std(1, 1).insets(5, 5, 5, 5).fill(GBC.HORIZONTAL)); 121 120 122 JPanel pnl2 = new JPanel(); 123 pnl2.setLayout(new BorderLayout()); 121 JPanel pnl2 = new JPanel(new BorderLayout()); 124 122 pnl2.add(pnlUploadLayers = new UploadAndSaveProgressRenderer(), BorderLayout.CENTER); 125 123 model.addPropertyChangeListener(pnlUploadLayers); -
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r9522 r9543 173 173 */ 174 174 protected JPanel buildActionPanel() { 175 JPanel pnl = new JPanel(); 176 pnl.setLayout(new FlowLayout(FlowLayout.CENTER)); 175 JPanel pnl = new JPanel(new FlowLayout(FlowLayout.CENTER)); 177 176 pnl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 178 177 -
trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java
r9078 r9543 40 40 * </pre> 41 41 */ 42 public class UploadLayerTask extends AbstractIOTask implements Runnable{42 public class UploadLayerTask extends AbstractIOTask { 43 43 private OsmServerWriter writer; 44 44 private final OsmDataLayer layer; -
trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java
r8836 r9543 66 66 67 67 protected JPanel buildSelectedPrimitivesPanel() { 68 JPanel pnl = new JPanel(); 69 pnl.setLayout(new BorderLayout()); 68 JPanel pnl = new JPanel(new BorderLayout()); 70 69 JLabel lbl = new JLabel( 71 70 tr("<html>Mark modified objects <strong>from the current selection</strong> to be uploaded to the server.</html>")); … … 78 77 79 78 protected JPanel buildDeletedPrimitivesPanel() { 80 JPanel pnl = new JPanel(); 81 pnl.setLayout(new BorderLayout()); 79 JPanel pnl = new JPanel(new BorderLayout()); 82 80 JLabel lbl = new JLabel(tr("<html>Mark <strong>locally deleted objects</strong> to be deleted on the server.</html>")); 83 81 lbl.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); … … 89 87 90 88 protected JPanel buildButtonPanel() { 91 JPanel pnl = new JPanel(); 92 pnl.setLayout(new FlowLayout()); 89 JPanel pnl = new JPanel(new FlowLayout()); 93 90 ContinueAction continueAction = new ContinueAction(); 94 91 pnl.add(btnContinue = new SideButton(continueAction)); -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
r8840 r9543 71 71 72 72 protected JPanel buildUploadStrategyPanel() { 73 JPanel pnl = new JPanel(); 74 pnl.setLayout(new GridBagLayout()); 73 JPanel pnl = new JPanel(new GridBagLayout()); 75 74 ButtonGroup bgStrategies = new ButtonGroup(); 76 75 rbStrategy = new EnumMap<>(UploadStrategy.class); … … 181 180 182 181 protected JPanel buildMultiChangesetPolicyPanel() { 183 pnlMultiChangesetPolicyPanel = new JPanel(); 184 pnlMultiChangesetPolicyPanel.setLayout(new GridBagLayout()); 182 pnlMultiChangesetPolicyPanel = new JPanel(new GridBagLayout()); 185 183 GridBagConstraints gc = new GridBagConstraints(); 186 184 gc.gridx = 0; -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r9384 r9543 346 346 SimpleDateFormat dateFormat = (SimpleDateFormat) DateUtils.getDateTimeFormat(DateFormat.SHORT, DateFormat.MEDIUM); 347 347 348 panel = new JPanel(); 349 panel.setLayout(new BorderLayout()); 348 panel = new JPanel(new BorderLayout()); 350 349 panel.add(new JLabel(tr("<html>Take a photo of your GPS receiver while it displays the time.<br>" 351 350 + "Display that photo here.<br>" … … 357 356 panel.add(imgDisp, BorderLayout.CENTER); 358 357 359 JPanel panelTf = new JPanel(); 360 panelTf.setLayout(new GridBagLayout()); 358 JPanel panelTf = new JPanel(new GridBagLayout()); 361 359 362 360 GridBagConstraints gc = new GridBagConstraints(); … … 439 437 panel.add(panelTf, BorderLayout.SOUTH); 440 438 441 JPanel panelLst = new JPanel(); 442 panelLst.setLayout(new BorderLayout()); 439 JPanel panelLst = new JPanel(new BorderLayout()); 443 440 444 441 imgList = new JList<>(new AbstractListModel<String>() { … … 603 600 panelCb.add(buttonOpen); 604 601 605 JPanel panelTf = new JPanel(); 606 panelTf.setLayout(new GridBagLayout()); 602 JPanel panelTf = new JPanel(new GridBagLayout()); 607 603 608 604 String prefTimezone = Main.pref.get("geoimage.timezone", "0:00"); … … 735 731 panelTf.add(cbShowThumbs, gbc); 736 732 737 final JPanel statusBar = new JPanel(); 738 statusBar.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); 733 final JPanel statusBar = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); 739 734 statusBar.setBorder(BorderFactory.createLoweredBevelBorder()); 740 735 statusBarText = new JLabel(" "); … … 752 747 statusBarUpdater.updateStatusBar(); 753 748 754 outerPanel = new JPanel(); 755 outerPanel.setLayout(new BorderLayout()); 749 outerPanel = new JPanel(new BorderLayout()); 756 750 outerPanel.add(statusBar, BorderLayout.PAGE_END); 757 751 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r9416 r9543 80 80 81 81 protected void build() { 82 JPanel content = new JPanel(); 83 content.setLayout(new BorderLayout()); 82 JPanel content = new JPanel(new BorderLayout()); 84 83 85 84 content.add(imgDisplay, BorderLayout.CENTER); … … 176 175 buttons.add(btnCopyPath); 177 176 178 JPanel bottomPane = new JPanel(); 179 bottomPane.setLayout(new GridBagLayout()); 177 JPanel bottomPane = new JPanel(new GridBagLayout()); 180 178 GridBagConstraints gc = new GridBagConstraints(); 181 179 gc.gridx = 0; -
trunk/src/org/openstreetmap/josm/gui/preferences/map/BackupPreference.java
r8510 r9543 52 52 @Override 53 53 public void addGui(PreferenceTabbedPane gui) { 54 JPanel panel = new VerticallyScrollablePanel(); 55 panel.setLayout(new GridBagLayout()); 54 JPanel panel = new VerticallyScrollablePanel(new GridBagLayout()); 56 55 panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); 57 56 -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
r9100 r9543 320 320 321 321 projPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); 322 projPanel.setLayout(new GridBagLayout());323 322 projPanel.add(new JLabel(tr("Projection method")), GBC.std().insets(5, 5, 0, 5)); 324 323 projPanel.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL)); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/UTMProjectionChoice.java
r8836 r9543 63 63 group.add(south); 64 64 65 JPanel bPanel = new JPanel(); 66 bPanel.setLayout(new GridBagLayout()); 65 JPanel bPanel = new JPanel(new GridBagLayout()); 67 66 68 67 bPanel.add(new JLabel(tr("North")), GBC.std().insets(5, 5, 0, 5)); -
trunk/src/org/openstreetmap/josm/gui/preferences/remotecontrol/RemoteControlPreference.java
r8510 r9543 100 100 remote.add(enableRemoteControl, GBC.eol()); 101 101 102 final JPanel wrapper = new JPanel(); 103 wrapper.setLayout(new GridBagLayout()); 102 final JPanel wrapper = new JPanel(new GridBagLayout()); 104 103 wrapper.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.gray))); 105 104 -
trunk/src/org/openstreetmap/josm/gui/preferences/server/AuthenticationPreferencesPanel.java
r9352 r9543 86 86 gc.weightx = 1.0; 87 87 gc.weighty = 1.0; 88 pnlAuthenticationParameteters = new JPanel( );88 pnlAuthenticationParameteters = new JPanel(new BorderLayout()); 89 89 add(pnlAuthenticationParameteters, gc); 90 pnlAuthenticationParameteters.setLayout(new BorderLayout());91 90 92 91 //-- the two panels for authentication parameters -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanel.java
r9353 r9543 118 118 gc.weightx = 1.0; 119 119 gc.insets = new Insets(10, 0, 0, 0); 120 add(pnlAuthorisationMessage = new JPanel(), gc); 121 pnlAuthorisationMessage.setLayout(new BorderLayout()); 120 add(pnlAuthorisationMessage = new JPanel(new BorderLayout()), gc); 122 121 123 122 // create these two panels, they are going to be used later in refreshView -
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
r9224 r9543 10 10 import java.awt.GridBagConstraints; 11 11 import java.awt.GridBagLayout; 12 import java.awt.GridLayout; 12 13 import java.awt.Insets; 13 14 import java.awt.Toolkit; … … 186 187 187 188 private void initComponents() { 188 JPanel listPane = new JPanel( );189 JPanel listPane = new JPanel(new GridLayout()); 189 190 JScrollPane listScrollPane = new JScrollPane(); 190 JPanel shortcutEditPane = new JPanel( );191 JPanel shortcutEditPane = new JPanel(new GridLayout(5, 2)); 191 192 192 193 CbAction action = new CbAction(this); 193 194 setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); 194 195 add(buildFilterPanel()); 195 listPane.setLayout(new java.awt.GridLayout());196 196 197 197 // This is the list of shortcuts: … … 211 211 212 212 // and here follows the edit area. I won't object to someone re-designing it, it looks, um, "minimalistic" ;) 213 shortcutEditPane.setLayout(new java.awt.GridLayout(5, 2));214 213 215 214 cbDefault.setAction(action); -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java
r9231 r9543 49 49 */ 50 50 protected JPanel buildTagTableEditorPanel() { 51 JPanel pnl = new JPanel(); 52 pnl.setLayout(new BorderLayout()); 51 JPanel pnl = new JPanel(new BorderLayout()); 53 52 pnl.add(new JScrollPane(tagTable), BorderLayout.CENTER); 54 53 if (presetHandler != null) { -
trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
r9231 r9543 215 215 216 216 // set the content of this AddTagsDialog consisting of the tableHeader and the table itself. 217 JPanel tablePanel = new JPanel(); 218 tablePanel.setLayout(new GridBagLayout()); 217 JPanel tablePanel = new JPanel(new GridBagLayout()); 219 218 tablePanel.add(propertyTable.getTableHeader(), GBC.eol().fill(GBC.HORIZONTAL)); 220 219 tablePanel.add(propertyTable, GBC.eol().fill(GBC.BOTH));
Note:
See TracChangeset
for help on using the changeset viewer.