bplot2d_histo = new JButton("plot2d_histo ...");
bplot2d_histo.setToolTipText("2D plots: Histogram of a function y = f(x). ");
bplot2d_histo.setFont(new Font("Arial", Font.BOLD, 14));
bplot2d_histo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
ExpressionDialogPlot2D_Histo exprDialog = new ExpressionDialogPlot2D_Histo();
exprDialog.setLocation(GlobalValues.scalalabMainFrame.getLocation());
exprDialog.pack();
exprDialog.setVisible(true);
// construct an explicit focus event in order to display the cursor at the input console
FocusEvent fe = new FocusEvent(GlobalValues.scalalabMainFrame.scalalabConsole, FocusEvent.FOCUS_GAINED);
GlobalValues.scalalabMainFrame.scalalabConsole.dispatchEvent(fe);
}
});
bplot3d_grid = new JButton("plot3d_grid ...");
bplot3d_grid.setToolTipText("3D plots: Plotting a function z = f(x,y). Grid Plot");
bplot3d_grid.setFont(new Font("Arial", Font.BOLD, 14));
bplot3d_grid.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
ExpressionDialogPlot3D_Grid exprDialog = new ExpressionDialogPlot3D_Grid("3-D Grid Plor");
exprDialog.setLocation(GlobalValues.scalalabMainFrame.getLocation());
exprDialog.pack();
exprDialog.setVisible(true);
// construct an explicit focus event in order to display the cursor at the input console
FocusEvent fe = new FocusEvent(GlobalValues.scalalabMainFrame.scalalabConsole, FocusEvent.FOCUS_GAINED);
GlobalValues.scalalabMainFrame.scalalabConsole.dispatchEvent(fe);
}