Revision: 5865 http://sourceforge.net/p/jump-pilot/code/5865 Author: ma15569 Date: 2018-06-09 05:20:51 +0000 (Sat, 09 Jun 2018) Log Message: ----------- reformat command and save panels
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/workbench/ui/JTablePanel.java Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/JTablePanel.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/workbench/ui/JTablePanel.java 2018-06-08 11:32:48 UTC (rev 5864) +++ core/trunk/src/com/vividsolutions/jump/workbench/ui/JTablePanel.java 2018-06-09 05:20:51 UTC (rev 5865) @@ -50,6 +50,7 @@ private final JLabel jLabel = new JLabel(); private DefaultTableModel model = new DefaultTableModel(); private final Color LIGHT_GRAY = new Color(230, 230, 230); + private JPanel southPanel = new JPanel(); /** * how to use: 1) DefaultTableModel defaultTableModel; 2) @@ -110,10 +111,14 @@ jTable.setModel(model); jTable.setEnabled(true); + southPanel = new JPanel(new BorderLayout()); + + southPanel.add(commandPanel(), BorderLayout.NORTH); + southPanel.add(savePanel(), BorderLayout.CENTER); add(jLabel, BorderLayout.NORTH); add(pane, BorderLayout.CENTER); - add(southPanel(), BorderLayout.SOUTH);// Not yet activated - add(savePanel(), BorderLayout.AFTER_LAST_LINE); + add(southPanel, BorderLayout.SOUTH); + } private JPanel savePanel() { @@ -159,7 +164,7 @@ // AttributeQueryPlugIn for example) // and a save button to export filtered results as layer // Right now it search only to match a string to every single record - private JPanel southPanel() { + private JPanel commandPanel() { // Sorter final TableRowSorter<DefaultTableModel> sorter = new TableRowSorter<DefaultTableModel>( model); @@ -247,7 +252,7 @@ * @return */ public JPanel getCommandPanel() { - return southPanel(); + return commandPanel(); } /** ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel