Name: skT88420 Date: 10/19/99 run the following code and you will see that before and after the modal dialog shows the cursor correctly shows as the wait cursor. but while the dialog is showing the parent cursor changes to the default cursor? This does not occur on Solaris - only on NT. final JFrame frame = new JFrame("Cursor test"); Container contentPane = frame.getContentPane(); JButton showModalDlgBtn = new JButton("Show modal dlg"); contentPane.setLayout(new FlowLayout()); contentPane.add(showModalDlgBtn); showModalDlgBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDialog dlg = new JDialog(frame,"Dialog",true); dlg.getContentPane().add(new JLabel("Parent frame should show busy cusor!")); dlg.pack(); dlg.show(); } }); frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); frame.setSize(100,100); frame.show(); (Review ID: 96716) ======================================================================
|