Home » Eclipse Projects » WindowBuilder » Focus loss(Eclipse will lose its focus if components are dragged very quickly.)
| |
Re: Focus loss [message #660963 is a reply to message #660219] |
Tue, 22 March 2011 14:14 |
Konstantin Scheglov Messages: 555 Registered: July 2009 |
Senior Member |
|
|
Johannes wrote on Thu, 17 March 2011 15:43 | Hello again,
exactly the same behavior is reproducible by several double-clicks on a components property. I have used enabled of a JTextField.
|
Can not reproduce.
No focus loss on Windows.
What OS do you use?
Konstantin Scheglov,
Google, Inc.
[Updated on: Tue, 22 March 2011 14:22] Report message to a moderator
|
|
| | |
Re: Focus loss [message #662283 is a reply to message #662205] |
Wed, 30 March 2011 05:28 |
Johannes Messages: 7 Registered: March 2011 |
Junior Member |
|
|
Although I can reproduce it with a simple panel containing just one JLabel, the error occurs more often if you try with a panel where a bunch of components is placed on it. Below you can find my test case. Just select a JButton of your choice and make some quick clicks on property enabled. You will soon get the error.
/*******************************/
import javax.swing.JPanel;
import javax.swing.JButton;
public class TestPanel extends JPanel {
/**
* Create the panel.
*/
public TestPanel() {
setLocation(-236, -26);
setLayout(null);
JPanel panel = new JPanel();
panel.setBounds(77, 60, 199, 330);
add(panel);
panel.setLayout(null);
JButton btnNewButton = new JButton("New button");
btnNewButton.setBounds(10, 9, 89, 23);
panel.add(btnNewButton);
JButton btnNewButton_1 = new JButton("New button");
btnNewButton_1.setBounds(10, 41, 89, 23);
panel.add(btnNewButton_1);
JButton btnNewButton_2 = new JButton("New button");
btnNewButton_2.setBounds(10, 73, 89, 23);
panel.add(btnNewButton_2);
JButton btnNewButton_3 = new JButton("New button");
btnNewButton_3.setBounds(10, 105, 89, 23);
panel.add(btnNewButton_3);
JButton btnNewButton_4 = new JButton("New button");
btnNewButton_4.setBounds(10, 137, 89, 23);
panel.add(btnNewButton_4);
JButton btnNewButton_5 = new JButton("New button");
btnNewButton_5.setBounds(10, 169, 89, 23);
panel.add(btnNewButton_5);
JButton btnNewButton_6 = new JButton("New button");
btnNewButton_6.setBounds(10, 201, 89, 23);
panel.add(btnNewButton_6);
JButton btnNewButton_7 = new JButton("New button");
btnNewButton_7.setBounds(10, 233, 89, 23);
panel.add(btnNewButton_7);
JButton btnNewButton_8 = new JButton("New button");
btnNewButton_8.setBounds(10, 265, 89, 23);
panel.add(btnNewButton_8);
JButton btnNewButton_9 = new JButton("New button");
btnNewButton_9.setBounds(10, 297, 89, 23);
panel.add(btnNewButton_9);
JButton btnNewButton_10 = new JButton("New button");
btnNewButton_10.setBounds(105, 41, 89, 23);
panel.add(btnNewButton_10);
JButton btnNewButton_11 = new JButton("New button");
btnNewButton_11.setBounds(105, 9, 89, 23);
panel.add(btnNewButton_11);
JButton btnNewButton_12 = new JButton("New button");
btnNewButton_12.setBounds(105, 73, 89, 23);
panel.add(btnNewButton_12);
JButton btnNewButton_13 = new JButton("New button");
btnNewButton_13.setBounds(105, 105, 89, 23);
panel.add(btnNewButton_13);
JButton btnNewButton_14 = new JButton("New button");
btnNewButton_14.setBounds(105, 137, 89, 23);
panel.add(btnNewButton_14);
JButton btnNewButton_15 = new JButton("New button");
btnNewButton_15.setBounds(105, 169, 89, 23);
panel.add(btnNewButton_15);
JButton btnNewButton_16 = new JButton("New button");
btnNewButton_16.setBounds(105, 201, 89, 23);
panel.add(btnNewButton_16);
JButton btnNewButton_17 = new JButton("New button");
btnNewButton_17.setBounds(105, 233, 89, 23);
panel.add(btnNewButton_17);
JButton btnNewButton_18 = new JButton("New button");
btnNewButton_18.setBounds(105, 265, 89, 23);
panel.add(btnNewButton_18);
JButton button = new JButton("New button");
button.setBounds(105, 297, 89, 23);
panel.add(button);
JPanel panel_1 = new JPanel();
panel_1.setLayout(null);
panel_1.setBounds(292, 60, 199, 330);
add(panel_1);
JButton button_1 = new JButton("New button");
button_1.setBounds(10, 9, 89, 23);
panel_1.add(button_1);
JButton button_2 = new JButton("New button");
button_2.setBounds(10, 41, 89, 23);
panel_1.add(button_2);
JButton button_3 = new JButton("New button");
button_3.setBounds(10, 73, 89, 23);
panel_1.add(button_3);
JButton button_4 = new JButton("New button");
button_4.setBounds(10, 105, 89, 23);
panel_1.add(button_4);
JButton button_5 = new JButton("New button");
button_5.setBounds(10, 137, 89, 23);
panel_1.add(button_5);
JButton button_6 = new JButton("New button");
button_6.setBounds(10, 169, 89, 23);
panel_1.add(button_6);
JButton button_7 = new JButton("New button");
button_7.setBounds(10, 201, 89, 23);
panel_1.add(button_7);
JButton button_8 = new JButton("New button");
button_8.setBounds(10, 233, 89, 23);
panel_1.add(button_8);
JButton button_9 = new JButton("New button");
button_9.setBounds(10, 265, 89, 23);
panel_1.add(button_9);
JButton button_10 = new JButton("New button");
button_10.setBounds(10, 297, 89, 23);
panel_1.add(button_10);
JButton button_11 = new JButton("New button");
button_11.setBounds(105, 41, 89, 23);
panel_1.add(button_11);
JButton button_12 = new JButton("New button");
button_12.setBounds(105, 9, 89, 23);
panel_1.add(button_12);
JButton button_13 = new JButton("New button");
button_13.setBounds(105, 73, 89, 23);
panel_1.add(button_13);
JButton button_14 = new JButton("New button");
button_14.setBounds(105, 105, 89, 23);
panel_1.add(button_14);
JButton button_15 = new JButton("New button");
button_15.setBounds(105, 137, 89, 23);
panel_1.add(button_15);
JButton button_16 = new JButton("New button");
button_16.setBounds(105, 169, 89, 23);
panel_1.add(button_16);
JButton button_17 = new JButton("New button");
button_17.setBounds(105, 201, 89, 23);
panel_1.add(button_17);
JButton button_18 = new JButton("New button");
button_18.setBounds(105, 233, 89, 23);
panel_1.add(button_18);
JButton button_19 = new JButton("New button");
button_19.setBounds(105, 265, 89, 23);
panel_1.add(button_19);
JButton button_20 = new JButton("New button");
button_20.setBounds(105, 297, 89, 23);
panel_1.add(button_20);
}
}
|
|
|
Goto Forum:
Current Time: Thu Apr 25 22:07:29 GMT 2024
Powered by FUDForum. Page generated in 0.03491 seconds
|