split pane instead of gridlayout

This commit is contained in:
Zlatin Balevsky
2019-07-11 03:48:05 +01:00
parent 5a54b2dcda
commit dcbe09886d

View File

@@ -11,6 +11,7 @@ import javax.swing.JComponent
import javax.swing.JLabel import javax.swing.JLabel
import javax.swing.JMenuItem import javax.swing.JMenuItem
import javax.swing.JPopupMenu import javax.swing.JPopupMenu
import javax.swing.JSplitPane
import javax.swing.JTable import javax.swing.JTable
import javax.swing.ListSelectionModel import javax.swing.ListSelectionModel
import javax.swing.SwingConstants import javax.swing.SwingConstants
@@ -48,7 +49,8 @@ class SearchTabView {
def resultsTable def resultsTable
def sendersTable def sendersTable
def pane = panel { def pane = panel {
gridLayout(rows : 2, cols: 1) gridLayout(rows :1, cols : 1)
splitPane(orientation: JSplitPane.VERTICAL_SPLIT, continuousLayout : true, dividerLocation: 300 ) {
panel { panel {
borderLayout() borderLayout()
scrollPane (constraints : BorderLayout.CENTER) { scrollPane (constraints : BorderLayout.CENTER) {
@@ -84,6 +86,7 @@ class SearchTabView {
} }
} }
} }
}
this.pane = pane this.pane = pane
this.pane.putClientProperty("mvc-group", mvcGroup) this.pane.putClientProperty("mvc-group", mvcGroup)