remove unnecessary scrolls and packs
This commit is contained in:
@ -51,7 +51,7 @@ class JFreeChartHeartbeatPlotPane extends NetViewerPlotPane {
|
|||||||
//dummy.setBackground(_gui.getBackground());
|
//dummy.setBackground(_gui.getBackground());
|
||||||
//dummy.setPreferredSize(new Dimension(800,600));
|
//dummy.setPreferredSize(new Dimension(800,600));
|
||||||
//add(dummy);
|
//add(dummy);
|
||||||
|
setPreferredSize(new Dimension(800,600));
|
||||||
//add(_panel);
|
//add(_panel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,8 @@ class NetViewerGUI extends JFrame {
|
|||||||
_controlPane.setBackground(_background);
|
_controlPane.setBackground(_background);
|
||||||
//getContentPane().add(_controlPane, BorderLayout.SOUTH);
|
//getContentPane().add(_controlPane, BorderLayout.SOUTH);
|
||||||
|
|
||||||
JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT, pane, new JScrollPane(_controlPane));
|
JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT, _plotPane, _controlPane);
|
||||||
|
//split.setDividerLocation(0.3d);
|
||||||
getContentPane().add(split, BorderLayout.CENTER);
|
getContentPane().add(split, BorderLayout.CENTER);
|
||||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
initializeMenus();
|
initializeMenus();
|
||||||
@ -62,7 +63,7 @@ class NetViewerGUI extends JFrame {
|
|||||||
public void stateUpdated() {
|
public void stateUpdated() {
|
||||||
_controlPane.stateUpdated();
|
_controlPane.stateUpdated();
|
||||||
_plotPane.stateUpdated();
|
_plotPane.stateUpdated();
|
||||||
pack();
|
//pack();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void refreshView() {
|
public void refreshView() {
|
||||||
|
Reference in New Issue
Block a user