frame.setFontSize(18); frame.setDefaultCloseOperation(PlotFrame.EXIT_ON_CLOSE); frame.setVisible(true);
int type = 2; if (type==0) { frame.setFontSize(24); panel.setTitle("Graphic with 24-pt font"); } else if (type==1) {
frame.setFontSize(18); frame.setDefaultCloseOperation(PlotFrame.EXIT_ON_CLOSE); frame.setVisible(true);