Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Focus loss(Eclipse will lose its focus if components are dragged very quickly.)
Focus loss [message #660215] Thu, 17 March 2011 12:20 Go to next message
Johannes  is currently offline Johannes Friend
Messages: 7
Registered: March 2011
Junior Member
Hi to you all,

i think there is a problem when components are dragged from the palette to the editors pane. If you do this very quickly, eclipse will lose its focus to the application window behind. To get back the focus again, you have to select eclipse in the task bar. Although I think this is no big deal, the behavior is sometimes very annoying.

Regards,
Johannes
Re: Focus loss [message #660219 is a reply to message #660215] Thu, 17 March 2011 12:43 Go to previous messageGo to next message
Johannes  is currently offline Johannes Friend
Messages: 7
Registered: March 2011
Junior Member
Hello again,

exactly the same behavior is reproducible by several double-clicks on a components property. I have used enabled of a JTextField.

Regards,
Johannes


Re: Focus loss [message #660963 is a reply to message #660219] Tue, 22 March 2011 14:14 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
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 #662121 is a reply to message #660963] Tue, 29 March 2011 12:50 Go to previous messageGo to next message
Johannes  is currently offline Johannes Friend
Messages: 7
Registered: March 2011
Junior Member
I use Windows 7 64 bit and Eclipse Helios 32 bit.
Re: Focus loss [message #662205 is a reply to message #662121] Tue, 29 March 2011 17:53 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
I use exactly same Windows and Eclipse, but never saw anything like this. Do you see this with some specific form and/or project? Can you reproduce this with new simple Swing project?

Konstantin Scheglov,
Google, Inc.
Re: Focus loss [message #662283 is a reply to message #662205] Wed, 30 March 2011 05:28 Go to previous message
Johannes  is currently offline Johannes Friend
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);

}
}
Previous Topic:WindowBuilder internal error when moving several selected components
Next Topic:Class diagram of WB
Goto Forum:
  


Current Time: Fri Nov 28 16:19:25 GMT 2014

Powered by FUDForum. Page generated in 0.01735 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software