Methods Summary |
---|
public void | block()
old_cursor = getCursor();
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
setVisible(true);
|
public static void | main(java.lang.String[] args)
JFrame frame = new JFrame("Blocking Window");
JTextArea jta = new JTextArea(10,40);
JScrollPane scroll = new JScrollPane(jta);
JButton start = new JButton("Start Processing");
JLabel status = new JLabel("status");
BlockingWindow blocker = new BlockingWindow();
frame.setGlassPane(blocker);
start.addActionListener(new LongProcess(status,blocker));
Container comp = frame.getContentPane();
comp.add("North",start);
comp.add("Center",scroll);
comp.add("South",status);
frame.pack();
frame.show();
|
public void | mouseClicked(java.awt.event.MouseEvent e)
|
public void | mouseDragged(java.awt.event.MouseEvent e)
|
public void | mouseEntered(java.awt.event.MouseEvent e)
|
public void | mouseExited(java.awt.event.MouseEvent e)
|
public void | mouseMoved(java.awt.event.MouseEvent e)
|
public void | mousePressed(java.awt.event.MouseEvent e)
|
public void | mouseReleased(java.awt.event.MouseEvent e)
|
public void | unBlock()
setCursor(old_cursor);
setVisible(false);
|