Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox loses border on binding  RSS feed

 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, not sure if this is the right forum...

I just started to use applicationframework along with data binding. I have successfully binded an element to the comboBox. In order for the object name display properly I had to setRenderer(...) as suggested by the tutorial. however, when i do this, the border of the border of box does not get redraw. only the text and arrow show. Has anyone experience this problem?

thanks for your help in advance.
 
Rob Camick
Ranch Hand
Posts: 2756
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess the problem is with your custom renderer. Post your SSCCE that demonstrates the problem.

 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a question about your application framework, then. So it would help if we knew what application framework that was.
 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul and Rob,

Unfortunately, i cannot post the exact source code.

I used the same renderer code suggested by this tutorial: url=http://netbeans.org/kb/docs/java/gui-binding.html]webpage[/url]

I am using the Swing Application Framework.

I did a sample program using the same binding source, but NOT using the Swing Application Framework and NOT using GridBagLayout... and everything is fine. So, Paul might be on to something... that the framework has this bug... but I haven't found anything on the web that talks about this bug or how to fix it...

Has anyone experience this behavior?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this the "Swing Application Framework" you are talking about? Swing Application Framework

If so, then the "Status and Roadmap" section of that article makes me believe that it's a dead project. If it has bugs, which is possible, they aren't likely to be fixed as there isn't anybody left to fix them.
 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that is the one. Do you recommend using a different framework in place of this? I have a requirement to develop a full application in a short period of time and we just don't have enough bodies to manually write all the code that handle application housekeeping. So, I started to look use the framework to help speed up our development...

any pointers?
 
Rob Camick
Ranch Hand
Posts: 2756
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did a sample program using the same binding source, but NOT using the Swing Application Framework and NOT using GridBagLayout... and everything is fine.


And that is why you create a SSCCE. To minimize the code and isolate where the problem is.

I find it odd that an "application framework" would cause a "rendering" problem. I thought frameworks where just to make it easy to create simple frames with additional features not found in a statndard JFrame.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, sorry, I don't have any recommendations for Swing frameworks. I don't have anything against them, I just don't know anything about any of them.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement to develop a full application in a short period of time and we just don't have enough bodies to manually write all the code that handle application housekeeping. So, I started to look use the framework to help speed up our development...

Why framework? What is it that you think the framework can help you do easier?

Think of it this way. You are already pressed for time. Do you think it is
  • Easier to code in Swing
  • Easier to evalualte different frameworks, choose one, learn it and then use it
  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!