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);
}