JPanel makeTopPanel(JFrame frame,String title,int width,int height){
  Container contentPane=frame.getContentPane();
  contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.X_AXIS));
  contentPane.add(Box.createRigidArea(new Dimension(0,height)));
  JPanel topPanel=new JPanel();
  topPanel.setLayout(new BoxLayout(topPanel,BoxLayout.Y_AXIS));
  Border panelBorder=BorderFactory.createEtchedBorder();
  Border panelTitled=BorderFactory.createTitledBorder(panelBorder,rbx.getString(title));
  topPanel.setBorder(panelTitled);
  topPanel.add(Box.createRigidArea(new Dimension(width,0)));
  topPanel.add(Box.createVerticalGlue());
  return topPanel;
}

JPanel makeTopPanel ( JFrame frame , String title , int width , int height ) { Container contentPane = frame . getContentPane ( ) ; contentPane . setLayout ( new BoxLayout ( contentPane , BoxLayout . X_AXIS ) ) ; contentPane . add ( Box . createRigidArea ( new Dimension ( 0 , height ) ) ) ; JPanel topPanel = new JPanel ( ) ; topPanel . setLayout ( new BoxLayout ( topPanel , BoxLayout . Y_AXIS ) ) ; Border panelBorder = BorderFactory . createEtchedBorder ( ) ; Border panelTitled = BorderFactory . createTitledBorder ( panelBorder , rbx . getString ( title ) ) ; topPanel . setBorder ( panelTitled ) ; topPanel . add ( Box . createRigidArea ( new Dimension ( width , 0 ) ) ) ; topPanel . add ( Box . createVerticalGlue ( ) ) ; return topPanel ; }
utility for making variable and action editing windows
