SWT « JFrame « Java Swing Q&A





1. SWT - Popping up new Window    coderanch.com

This 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.com

import 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(); ...

5. SWT window freezes swing windows    coderanch.com

Hi 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 ...