1. SWT - Popping up new Window coderanch.comThis is definitely a greenhorn question. I am working on some SWT tutorials, but I have a requirement to go from one screen to the next. In this case, I want to go from a Login screen to the main screen, when the user presses the "LOGIN" button. I cannot get it to work. Any help would be appreciated. Thanks in ... |
2. counterpart of frames in swt coderanch.com |
3. In the swing of JFrame.setFocusableWindowState (false),Corresponds to what is in the method in swt coderanch.comimport java.awt.*; import java.awt.event.*; import javax.swing.*; public class Test { public static void main(String[] argv) throws Exception { JFrame f = new JFrame("Window.setFocusableWindowState"); f.setBounds(100, 100, 100, 100); JDialog d = new JDialog(f); d.setBounds(200, 200, 200, 200); d.getContentPane().add(new JButton("Testing")); d.setFocusableWindowState(false); d.addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent e) { System.out.println("Focus gained!!"); } public void focusLost(FocusEvent e) { System.out.println("Focus lost!!"); } }); d.show(); f.show(); ... |
4. How To make a Window non-focusable in SWT coderanch.com |
5. SWT window freezes swing windows coderanch.comHi everyone! Right now I'm facing with a "swing freeze" problem. I have two forms, one made using swing and the second using SWT. If I call the SWT one from the swing one, everything in the swing one freeze until the SWT form is closed. Well, I have a Jmenu which lets me access to the SWT form. If I ... |