Loading the itens of a JComboBox from the database breaks windowbuilder [message #846870] |
Mon, 16 April 2012 20:41  |
Eclipse User |
|
|
|
Hi,
What I would like to do is this.
Step 1. load the itens of a combobox from the database
Step 2. set these itens into a combobox
The problem I'm facing is:
1. WindowBuilder is actually trying to execute this code whenever I'm viewing that specific Panel in its editor.
2. If I have no connection with the database it simple give us an error saying that it is not possible to connect. But I would like to edit my Panel, using WindowBuilder, without a connection with DB.
3. If I HAVE a connection with the database it takes some time to open the editor (because it goes to the database to get the itens), but it works. The BIG issue is that the eclipse stop working (i.e. it simply freezes and closes) some time later.
Anyone have this problem?
How do you guys perform this task?
Is there a way to make windowbuilder "ignore" (i.e. do not execute it) the step 1 (load the itens of a combobox from the database) when Editing the Panel? I've tried //$hide>>$ and //$hide<<$ but it does not work also.
Please, any help will be appreciated.
Thanks in advance.
Fernando Rubbo
P.S.: attached is the error if I have no connection with the database
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.23834 seconds