return controlPanel;
}
protected Container createStatusBar() {
JXStatusBar statusBar = new JXStatusBar();
statusBar.putClientProperty("auto-add-separator", Boolean.FALSE);
// Left status area
statusBar.add(Box.createRigidArea(new Dimension(10, 22)));
statusBarLeft = Box.createHorizontalBox();
statusBar.add(statusBarLeft, JXStatusBar.Constraint.ResizeBehavior.FILL);
actionStatus = new JLabel();
actionStatus.setName("loadingStatusLabel");
actionStatus.setHorizontalAlignment(JLabel.LEADING);
statusBarLeft.add(actionStatus);
// Middle (should stretch)
// statusBar.add(Box.createHorizontalGlue());
// statusBar.add(Box.createHorizontalGlue());
statusBar.add(Box.createVerticalGlue());
statusBar.add(Box.createRigidArea(new Dimension(50, 0)));
// Right status area
tableStatus = new JLabel();
tableStatus.setName("rowCountLabel");
JComponent bar = Box.createHorizontalBox();
bar.add(tableStatus);
tableRows = new JLabel("0");
bar.add(tableRows);
statusBar.add(bar);
statusBar.add(Box.createHorizontalStrut(12));
return statusBar;
}