Block « JFrame « Java Swing Q&A





1. 1.JFrame call 2. JFrame - wait() =>both blocked?    stackoverflow.com

I've got a problem: I've got a jframe1 who calls at ActionPerformed the jframe2. JFrames are threads or? and so I've tried in the jframe2 the wait() method, and then I would ...

2. block the maximization of a window?    coderanch.com

3. JFrame Title Block    coderanch.com

import javax.swing.*; import javax.swing.plaf.basic.BasicInternalFrameUI; public class InternalWindow extends JFrame { public static void main( String[] arg ) { new InternalWindow(); } public InternalWindow() { JDesktopPane desktop = new JDesktopPane(); setContentPane( desktop ); JInternalFrame iFrame = new JInternalFrame( "Test" ); iFrame.setUI( new NewInternalFrameUI( iFrame ) ); iFrame.setBounds( 10, 10, 300, 300 ); getContentPane().add( iFrame ); iFrame.setVisible( true ); setSize( 700, 700 ); ...

4. Getting a JFrame to block/halt program    forums.oracle.com

Is there a way to set a JFrame to 'block' when it is launched? For example, I want to have two GUIs - a login window and a main window. The login window comes up first, and if the user enters data correctly, it goes away and the main window comes up after it. I can do this with a while ...