Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

use shape in jcombobox

  Asked By: Dukker    Date: Nov 17    Category: Java    Views: 850
  

i have a table wherein i have a shape column
i want to be able to select a shape from a drop down box or a
jcombobox
do you have any idea on how to do this?
hope you can give me a sample code

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Cay Nguyen     Answered On: Nov 17

You will need to wirte a ListCellRenderer to do this.
Look at
java.sun.com/.../CustomC\
omboBoxDemo.java
and it's partner article
java.sun.com/.../combobox.html

 
Answer #2    Answered By: Corbin Jones     Answered On: Nov 17

Here i have attached two files, one java file and one Access database.
U can straightaway check that java code.
connect the database i send using the name "TEST"

 
Didn't find what you were looking for? Find more on use shape in jcombobox Or get search suggestion and latest updates.




Tagged: