Thread View: borland.public.jbuilder.java.swing
16 messages
16 total messages
Started by test
Fri, 03 Dec 2004 17:44
JBuilder2005 Issue
Author: test
Date: Fri, 03 Dec 2004 17:44
Date: Fri, 03 Dec 2004 17:44
70 lines
5351 bytes
5351 bytes
First, I'm rather new to Java - just started developing in it about 3 months ago. So, needless to say, I'm not 100% sure it isn't my *own* fault. But, I've spent the better part of 7 hours *playing* and trying to understand what is going on and haven't been able to yet. So I've decided to seek advice. Configuration: Using JBuilder2005 on Windows XP (all newest Service Packs) and JDK 1.4. I have recently upgraded from JBuilder X because 2005 seemed to resolve some of my outstanding issues with that environment. Issue: Adding objects to the JPanel. I am evaluating a third party Grid component (JBGridX if anyone is familar with it). I've run into some issues while using it in the Designer view. This grid has many different ways to load it with data - fine. I used the 'simplest' (a dataModel) to begin with. Things worked perfectly and I was able to design the rest of the JPanel with that grid placed in it's approprate sub-JPanel. I then removed all the records from the table that is used to populate that grid. The JBGrid did NOT appreciate that. It ended up giving me an error something like: Failed to create live visual subcomponent... It then hit me that I had actually seen *live* data in the JBGrid while in the Designer view - I don't recall that every happening in JBuilder X. (is that something new in JBuilder 2005?). Well, I know it's the grid's problem. But what I didn't appreciate is that when I got that error, the JPanel in Designer view went "Blank". I looked at the structure and everything was still *there* - whew. I went into the Source view and the code looked okay. Everything had bounds, was added to the main JPanel etc. I tried to switch back and forth between Design and Source view hoping the code gods would fix things. They didn't. Now, my first reaction was to dump the grid as a possibility. But I'm not sure I'm ready to do that yet. So, I started off from scratch again. New Class (extends JPanel), Add second JPanel to put grid into, add GridX to second JPanel. So far so good. Make sure data is in table - done. Add third JPanel to put Jtextboxes and JLabels into (used to show detail of the item selected in the grid). Added Labels and TextBoxes with little incident. Placed a JButton onto the first JPanel. BOOM - everything gone again. I selected each object via the Structure menu and resized and dragged them all back to where they belong. Changed the name of the button I just put on the form. BOOM - everything gone again. Rinse/Repeat...Rinse/Repeat.. on and on. I tried to add other objects to the first JPanel as well and every time it had to do something (maybe redraw the JPanel in the Designer) it took everything but the Grid and the JPanel it was in away. I ended up having three buttons on the JPanel at the end and each time I modified a property of any of them, they all got reduced to a 1,1 in the upper left corner of the JPanel. When they (buttons, textboxes, lables) were reduced the buttons lost their assigned text and font properties. They did keep their names, but lost everything else. The labels were okay when resized and dragged. So, I'm *guessing* that the "live visual subcomponent" is doing something that when it gets an error is putting the other objects at risk. I'm hoping there is a way to tell the Designer to not use the "live visual" mode so it doesn't have to always try to update the information or get to the state that I am currently in. I have the guys working on the grid crashing when no data in the supporting table. But this issue occurs even when there is data in the table, so I'm guessing it's more of an issue with the JBuilder 2005 designer. Anyone have any ideas on what I can try next, or better yet a way to turn off this 'live visual' mode (I don't remember ever seeing that in JBuilderX so I think it's a new feature). The other thing I've noticed is that when things 'crash' (switching from Source to Designer view) I have a small window open with the 'java icon' and nothing in the title bar. Possibly the JRE? Not really sure. There have been times when I have 6 - 10 of these pesky things loaded at once. I end up closing them all manually when there are too many open at once for my liking. Thank you in advance. Todd
Re: JBuilder2005 Issue
Author: David Orriss, Jr. [TeamB]
Date: Fri, 03 Dec 2004 22:19
Date: Fri, 03 Dec 2004 22:19
26 lines
1885 bytes
1885 bytes
On Fri, 3 Dec 2004 11:44:27 -0600, "test" <test@webmail.winona.edu> wrote: >I am evaluating a third party Grid component >(JBGridX if anyone is familar with it). Have you talked to VisualSoft (the makers of JBGrid) to see if they have any documented issues in using JBGrid with JBuilder 2005? Also, are you using the latest version of JBGrid (3.4) with JBuilder 2005? -- David Orriss Jr. *TeamB* http://www.davenet.net/ * Please limit all responses to the newsgroups. Thanks! * Got a JBuilder website? Join the JBuilder Netring! Check out http://www.davenet.net/jbwebring/jbwebring.htm for more information! My blog: http://mywebpages.comcast.net/daorriss/ Save yourself some time and check these sites: Borland Newsgroup Search: http://www.borland.com/newsgroups/ngsearch.html Joi Ellis's Faq-O-Matic: http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: JBuilder2005 Issue
Author: test
Date: Fri, 03 Dec 2004 22:47
Date: Fri, 03 Dec 2004 22:47
38 lines
2437 bytes
2437 bytes
Yes and Yes. They are reviewing the situation and I believe they are working on the issue with no records issue. I'm not too worried about that I guess - can always find another grid bean somewhere. I just have noticed that when the Live Visual subcomponent is dealing with their Grid, my JPanel pays the price. I haven't had anything like that happen with the base java components so can only *bitch* about the Designer when using that component. "David Orriss, Jr. [TeamB]" <jbuilder_man@davenet.net> wrote in message news:ggp1r0lkmj6lacuok0tsvh5668am0sglun@4ax.com... > On Fri, 3 Dec 2004 11:44:27 -0600, "test" <test@webmail.winona.edu> > wrote: > >>I am evaluating a third party Grid component >>(JBGridX if anyone is familar with it). > > Have you talked to VisualSoft (the makers of JBGrid) to see if they > have any documented issues in using JBGrid with JBuilder 2005? Also, > are you using the latest version of JBGrid (3.4) with JBuilder 2005? > > > -- > David Orriss Jr. *TeamB* > http://www.davenet.net/ > * Please limit all responses to the newsgroups. Thanks! * > Got a JBuilder website? Join the JBuilder Netring! Check out > http://www.davenet.net/jbwebring/jbwebring.htm for more information! > > My blog: http://mywebpages.comcast.net/daorriss/ > > Save yourself some time and check these sites: > > Borland Newsgroup Search: > http://www.borland.com/newsgroups/ngsearch.html > Joi Ellis's Faq-O-Matic: > http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: JBuilder2005 Issue
Author: John McGrath [TeamB]
Date: Sat, 04 Dec 2004 20:20
Date: Sat, 04 Dec 2004 20:20
28 lines
2185 bytes
2185 bytes
On 12/3/2004 at 12:44:27 PM, test wrote:
> So, I'm guessing that the "live visual subcomponent" is doing
> something that when it gets an error is putting the other objects
> at risk.
Yes, that is likely. There are going to be some differences in the
environment when a component is running inside the UI Designer. If
the component makes too many assumptions, it may fail.
> I'm hoping there is a way to tell the Designer to not use the
> "live visual" mode so it doesn't have to always try to update
> the information or get to the state that I am currently in.
You can define a proxy component that replaces the designed component.
Heavyweight components like JDialog are designed using proxies, since they
cannot be placed inside the Swing-based Designer. I have never done this,
so I cannot give you much advice on how to do it. And last I checked, the
documentation was pretty sparse.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: JBuilder2005 Issue
Author: test
Date: Mon, 06 Dec 2004 14:14
Date: Mon, 06 Dec 2004 14:14
34 lines
2454 bytes
2454 bytes
Thank you for your reply. I will start the search for some documentation on proxying components. "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:xn0dqm6xf27qhjw004@newsgroups.borland.com... > On 12/3/2004 at 12:44:27 PM, test wrote: > >> So, I'm guessing that the "live visual subcomponent" is doing >> something that when it gets an error is putting the other objects >> at risk. > > Yes, that is likely. There are going to be some differences in the > environment when a component is running inside the UI Designer. If > the component makes too many assumptions, it may fail. > >> I'm hoping there is a way to tell the Designer to not use the >> "live visual" mode so it doesn't have to always try to update >> the information or get to the state that I am currently in. > > You can define a proxy component that replaces the designed component. > Heavyweight components like JDialog are designed using proxies, since they > cannot be placed inside the Swing-based Designer. I have never done this, > so I cannot give you much advice on how to do it. And last I checked, the > documentation was pretty sparse. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: JBuilder2005 Issue
Author: test
Date: Tue, 14 Dec 2004 16:16
Date: Tue, 14 Dec 2004 16:16
110 lines
7090 bytes
7090 bytes
Ok, I've got to find out how to disable this *live view* thing in Designer! I've now run into another instance where it trashes my layout (resets everything on form to a size of 1,1 and places it in upper left corner). The cause this time was me creating a CellRenderer for a JList I am using in one of the JPanels. The ANIsUsingGroupListRenderer extends an abstract class which has been used on another JList on the form for a week with no issues. I'd like to find out how to turn off this *live preview* in designer so I'm not wasting my time any longer fixing it's hiccups. Anyone have any ideas? I don't really want to move back to JBuilderX as 2005 has been good to me except for this issue, but I will if I have to do so to get rid of this live preview BS. Thanks in advance. Todd ----------------- begin code snippet ---------------------------------- lstANIsUsingAcctGroup.setCellRenderer(new ANIsUsingGroupListRenderer()); ANIsUsingGroupListRenderer aug = (ANIsUsingGroupListRenderer) lstANIsUsingAcctGroup.getCellRenderer(); aug.setUseAlternatingColors(true); aug.setFirstAlternateActiveBackground(new Color(180,194,225)); aug.setFirstAlternateActiveForeground(Color.black); aug.setSecondAlternateActiveBackground(new Color(240,248,255)); aug.setSecondAlternateActiveForeground(Color.black); aug.setSelectedActiveItemBackground(Color.blue); aug.setSelectedActiveItemForeground(Color.white); ---------------- end code snippet ---------------------------------------- "test" <test@webmail.winona.edu> wrote in message news:41b0a4d1$1@newsgroups.borland.com... > First, I'm rather new to Java - just started developing in it about 3 > months ago. So, needless to say, I'm not 100% sure it isn't my *own* > fault. But, I've spent the better part of 7 hours *playing* and trying to > understand what is going on and haven't been able to yet. So I've decided > to seek advice. > > Configuration: > Using JBuilder2005 on Windows XP (all newest Service Packs) and JDK 1.4. > I have recently upgraded from JBuilder X because 2005 seemed to resolve > some of my outstanding issues with that environment. > > Issue: > Adding objects to the JPanel. I am evaluating a third party Grid > component (JBGridX if anyone is familar with it). I've run into some > issues while using it in the Designer view. This grid has many different > ways to load it with data - fine. I used the 'simplest' (a dataModel) to > begin with. Things worked perfectly and I was able to design the rest of > the JPanel with that grid placed in it's approprate sub-JPanel. I then > removed all the records from the table that is used to populate that grid. > The JBGrid did NOT appreciate that. It ended up giving me an error > something like: Failed to create live visual subcomponent... It then hit > me that I had actually seen *live* data in the JBGrid while in the > Designer view - I don't recall that every happening in JBuilder X. (is > that something new in JBuilder 2005?). Well, I know it's the grid's > problem. But what I didn't appreciate is that when I got that error, the > JPanel in Designer view went "Blank". I looked at the structure and > everything was still *there* - whew. I went into the Source view and the > code looked okay. Everything had bounds, was added to the main JPanel > etc. I tried to switch back and forth between Design and Source view > hoping the code gods would fix things. They didn't. Now, my first > reaction was to dump the grid as a possibility. But I'm not sure I'm > ready to do that yet. So, I started off from scratch again. New Class > (extends JPanel), Add second JPanel to put grid into, add GridX to second > JPanel. So far so good. Make sure data is in table - done. Add third > JPanel to put Jtextboxes and JLabels into (used to show detail of the item > selected in the grid). Added Labels and TextBoxes with little incident. > Placed a JButton onto the first JPanel. BOOM - everything gone again. I > selected each object via the Structure menu and resized and dragged them > all back to where they belong. Changed the name of the button I just put > on the form. BOOM - everything gone again. Rinse/Repeat...Rinse/Repeat.. > on and on. I tried to add other objects to the first JPanel as well and > every time it had to do something (maybe redraw the JPanel in the > Designer) it took everything but the Grid and the JPanel it was in away. > I ended up having three buttons on the JPanel at the end and each time I > modified a property of any of them, they all got reduced to a 1,1 in the > upper left corner of the JPanel. When they (buttons, textboxes, lables) > were reduced the buttons lost their assigned text and font properties. > They did keep their names, but lost everything else. The labels were okay > when resized and dragged. > > So, I'm *guessing* that the "live visual subcomponent" is doing something > that when it gets an error is putting the other objects at risk. I'm > hoping there is a way to tell the Designer to not use the "live visual" > mode so it doesn't have to always try to update the information or get to > the state that I am currently in. I have the guys working on the grid > crashing when no data in the supporting table. But this issue occurs even > when there is data in the table, so I'm guessing it's more of an issue > with the JBuilder 2005 designer. > > Anyone have any ideas on what I can try next, or better yet a way to turn > off this 'live visual' mode (I don't remember ever seeing that in > JBuilderX so I think it's a new feature). The other thing I've noticed is > that when things 'crash' (switching from Source to Designer view) I have a > small window open with the 'java icon' and nothing in the title bar. > Possibly the JRE? Not really sure. There have been times when I have 6 - > 10 of these pesky things loaded at once. I end up closing them all > manually when there are too many open at once for my liking. > > Thank you in advance. > > Todd > > >
Re: JBuilder2005 Issue
Author: Lori M Olson [TeamB]
Date: Tue, 14 Dec 2004 17:57
Date: Tue, 14 Dec 2004 17:57
43 lines
2646 bytes
2646 bytes
test wrote:
> Ok, I've got to find out how to disable this *live view* thing in Designer!
>
> I've now run into another instance where it trashes my layout (resets
> everything on form to a size of 1,1 and places it in upper left corner).
> The cause this time was me creating a CellRenderer for a JList I am using in
> one of the JPanels. The ANIsUsingGroupListRenderer extends an abstract
> class which has been used on another JList on the form for a week with no
> issues. I'd like to find out how to turn off this *live preview* in
> designer so I'm not wasting my time any longer fixing it's hiccups.
>
> Anyone have any ideas? I don't really want to move back to JBuilderX as
> 2005 has been good to me except for this issue, but I will if I have to do
> so to get rid of this live preview BS.
>
> Thanks in advance.
>
> Todd
I'm not really familiar with the component(s) causing the problem, but
it sounds like something needs to be wrapped by checking for
java.beans.Beans.isDesignTime().
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: JBuilder2005 Issue
Author: test
Date: Tue, 14 Dec 2004 22:37
Date: Tue, 14 Dec 2004 22:37
74 lines
4098 bytes
4098 bytes
First, so we can agree on things: Is this live preview a 'feature' or is it part of the 'core system'. If it is a 'feature' I'd expect that I can turn it off somehow. If it's part of the new core system, I'll have to look for another environment that isn't causing me the trouble (read that backing up to JBuilder X). I really don't think I'd want to wrap any of my application code in something who's sole purpose is to solve a 'design time' issue(s). I'd rather take care of it at the designer level than making my code responsible for determining the environment it is in. The one thing that I know is that this problem doesn't happen in JBuilder X (worst thing that I've had there is the 'red box' saying compenent can't be rendered...no big deal) and it is happening in JBuilder 2005 (more than just a third party control now). I have found a work around for the cell rendering code. I decided to declare a new cellrenderer and make all my changes to it before assigned it to the JList. Basically I moved everything above the line of code that sets the cell renderer for the jlist. That allows me to design things w/o any problems and to this point hasn't caused the issue to arrise again. But I'd still like to know if it's a feature that I can turn off or revert to the way JBuilder X did it. Thanks for all the help! Todd "Lori M Olson [TeamB]" <javadragon@techie.com> wrote in message news:41bf29a4$1@newsgroups.borland.com... > > > test wrote: >> Ok, I've got to find out how to disable this *live view* thing in >> Designer! >> >> I've now run into another instance where it trashes my layout (resets >> everything on form to a size of 1,1 and places it in upper left corner). >> The cause this time was me creating a CellRenderer for a JList I am using >> in one of the JPanels. The ANIsUsingGroupListRenderer extends an >> abstract class which has been used on another JList on the form for a >> week with no issues. I'd like to find out how to turn off this *live >> preview* in designer so I'm not wasting my time any longer fixing it's >> hiccups. >> >> Anyone have any ideas? I don't really want to move back to JBuilderX as >> 2005 has been good to me except for this issue, but I will if I have to >> do so to get rid of this live preview BS. >> >> Thanks in advance. >> >> Todd > > I'm not really familiar with the component(s) causing the problem, but it > sounds like something needs to be wrapped by checking for > java.beans.Beans.isDesignTime(). > > -- > > Regards, > > Lori Olson [TeamB] > > ------------ > > Save yourself, and everyone else, some time and search the > newsgroups and the FAQ-O-Matic before posting your next > question. > > Google Advanced Newsgroup Search > http://www.google.ca/advanced_group_search > Other Newsgroup Searches: > http://www.borland.com/newsgroups/ngsearch.html > Joi Ellis's FAQ-O-Matic: > http://www.visi.com/~gyles19/fom-serve/cache/1.html >
Re: JBuilder2005 Issue
Author: John McGrath [TeamB]
Date: Sun, 19 Dec 2004 00:52
Date: Sun, 19 Dec 2004 00:52
15 lines
1501 bytes
1501 bytes
On 12/14/2004 at 5:37:40 PM, test wrote:
> Is this live preview a 'feature' or is it part of the 'core system'.
It is part of the core system. The UI Designer works by instantiating
components and setting properties on the live components.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: JBuilder2005 Issue
Author: test
Date: Mon, 10 Jan 2005 17:34
Date: Mon, 10 Jan 2005 17:34
26 lines
1982 bytes
1982 bytes
Ok, I've decided that I really like JBuilder 2005 (with service pack 1 applied) EXCEPT FOR LIVE PREVIEW! I've written a pretty simple class (extends a combobox) which is to automatically populate itself based upon data that resides from one of the vectors in a data collection object. That object is not populated with any data during design time. The JBuilder 2005 Designer reports the error: Failed to create live visual subcomponent cboHuntGroupMainANI as comboANIs cboHuntGroupMainANI = new comboANIs();. Creating a red component in its place It does not produce a red component in it's place. Instead it has moved everything in the panel to 0,0 and set a size of 1. It has also removed the font, horizontalalignment, and text properties from all the objects on the JPanel. I can start JBuilder X and it will not display the component, but it does not trash the remaining components either. So, I am begging that there be a flag to turn OFF live preview for those of us that don't find it necessary to actually design in a run time environment. Thank you.
Re: JBuilder2005 Issue
Author: John McGrath [TeamB]
Date: Tue, 11 Jan 2005 03:29
Date: Tue, 11 Jan 2005 03:29
20 lines
1666 bytes
1666 bytes
On 1/10/2005 at 12:34:55 PM, test wrote:
> Ok, I've decided that I really like JBuilder 2005 (with service pack 1
> applied) EXCEPT FOR LIVE PREVIEW!
> The JBuilder 2005 Designer reports the error:
You should apply update 3 as well. I understand that it has some fixes
related to the UI Designer. It is available from the same place you got
update 1, although it is inappropriately named "JBuilder 2005 Application
Server Update".
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: JBuilder2005 Issue
Author: test
Date: Wed, 12 Jan 2005 22:38
Date: Wed, 12 Jan 2005 22:38
27 lines
1933 bytes
1933 bytes
That did the trick! Thank you. I now get a red component for those that cannot be updated properly. YEAH! "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:xn0dx3oh7bmuw4000i@newsgroups.borland.com... > On 1/10/2005 at 12:34:55 PM, test wrote: > >> Ok, I've decided that I really like JBuilder 2005 (with service pack 1 >> applied) EXCEPT FOR LIVE PREVIEW! > >> The JBuilder 2005 Designer reports the error: > > You should apply update 3 as well. I understand that it has some fixes > related to the UI Designer. It is available from the same place you got > update 1, although it is inappropriately named "JBuilder 2005 Application > Server Update". > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: JBuilder2005 Issue
Author: test
Date: Thu, 13 Jan 2005 17:37
Date: Thu, 13 Jan 2005 17:37
20 lines
1772 bytes
1772 bytes
Just an update with something I'm noticing with the JBuilder 2005 sp3 designer. It is working much better than before (though I'd still like to be able to turn the live preview off at some point). The only issue I am having now (and it is new) is that when I place anything onto a JPanel that will cause the JPanel to be updated with the live preview, I get a new instance of javaw.exe. In those cases where the live preview fails (which is always for me on most of my sub-JPanels) it doesn't close the javaw.exe used to create the live preview. I can now reproduce this at will so I thought I'd bring it up as an issue. Gets to be a bit of a pain when I have to close 25 or more javaw's after a half hour of playing with a design. Thanks. Overall though, I'm still very happy with this version of JBuilder 2005. Todd
Re: JBuilder2005 Issue
Author: Jordi Peris
Date: Wed, 02 Feb 2005 07:48
Date: Wed, 02 Feb 2005 07:48
9 lines
1462 bytes
1462 bytes
The same happends to me. I have a project since JBuilder 4. Few days ago i move from JBuilder X to 2005 and when i enter to design tab in some dialogs, the JLabels loose the size, text and font. This happens only in some JDialogs. I update te JBuilder 2005 whith update 3, but do the same. Actually i use Suse 9.0 with KDE 3.1. PD: As you see, english isn't my natural languaje.
Re: JBuilder2005 Issue
Author: CaptnTony
Date: Thu, 03 Feb 2005 21:44
Date: Thu, 03 Feb 2005 21:44
22 lines
1795 bytes
1795 bytes
Update 3 helped solved that issue for me. Not once has the designer misbehaved in that fashion again. I use XP though, so I'm not sure if there's an issue between OSes. -- Todd Frahm Manager - Software Engineering Digital Telecommunications Inc --------------------------------------------------- Only one can be first! "Jordi Peris" <jperis@ival.com> wrote in message news:420085ad$1@newsgroups.borland.com... > The same happends to me. > > I have a project since JBuilder 4. Few days ago i move from JBuilder X to > 2005 and when i enter to design tab in some dialogs, the JLabels loose the > size, text and font. This happens only in some JDialogs. > I update te JBuilder 2005 whith update 3, but do the same. Actually i use > Suse 9.0 with KDE 3.1. > > PD: As you see, english isn't my natural languaje.
Re: JBuilder2005 Issue
Author: Jordi Peris
Date: Fri, 04 Feb 2005 07:34
Date: Fri, 04 Feb 2005 07:34
21 lines
2117 bytes
2117 bytes
CaptnTony escribi๏ฟฝ: > Update 3 helped solved that issue for me. Not once has the designer > misbehaved in that fashion again. I use XP though, so I'm not sure if > there's an issue between OSes. > > I have resolved the question. The problem was: 1- I have a JPanel (we call this jPanel1) with jtextfields, jlabels and another JPanel (jPanel2) In JPanel2 whe have JLabels, JTextfields, and 1 button. The icon of the button was loaded from a file with "new ImageIcon(PropertiesClass.getProperty(directory)+"/image.gif"). Of course, in design time the icons do not appear because the class with properties is loaded on execution time. In JBuilderX the panel 2 showed in grey and empty. That i think is normal, but in JBuilder 2005, if after this statement i have a statement of a JTextField (like setMinimumSize(20,20)), then in jpanel1 all the jLabels is showed whith no text, no size and no font. I have change the images and now is loaded like a resource and all works fine.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads