• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JComboBox loses border on binding

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would guess the problem is with your custom renderer. Post your SSCCE that demonstrates the problem.

 
Marshal
Posts: 28297
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28297
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28297
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  •  
    Space pants. Tiny ad:
    We need your help - Coderanch server fundraiser
    https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    reply
      Bookmark Topic Watch Topic
    • New Topic