Java Utililty Methods Window

List of utility methods to do Window

Description

The list of methods to do Window are organized into topic(s).

Method

JWindowshowMessageWindow(String message, JWindow parent)
show Message Window
JWindow jw = new JWindow(parent);
JLabel jl = new JLabel(message);
jl.setFont(new java.awt.Font("Dialog", 1, 36));
jw.getContentPane().add(jl);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
jw.pack();
jw.setLocation(getCenter(d));
jw.show();
...
voidunmaskWindow(W window)
unmask Window
if (!window.isDisplayable()) {
    return;
window.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
if (window.getGlassPane() != null) {
    window.getGlassPane().setVisible(false);
voidupdateWindow(Window window)
update Window
SwingUtilities.updateComponentTreeUI(window);