Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

"browse" button in text cell

  Asked By: Francisca    Date: Dec 31    Category: Java    Views: 954
  

This is probably a trivial thing but I'm getting stuck. The end
result I'm trying to get is a JTable column of cells that have a
"browse" button in the leftmost portion of the cell for that column.
The button would do a JDialog or pop of some type where the user would
select a row from another table and the key would be passed back and
become the value in the cell the popup sprang from. I've put
JComboBoxes as CellEditor with renderer etc before and thought I
understood the model well enough but now that I'm trying to put a
button in there with a text field I'm losing traction and confidence.

Can someone perhaps tell me the best approach to the end result I
need?

I'm currently trying to use my own object with a JTextField and a
JButton that is then set wrapped up and set as the CellEditor but I
can't seem to get that going. Does anyone have a code frag I could
look at to get my bearings?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on "browse" button in text cell Or get search suggestion and latest updates.




Tagged: