Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes Cell Editor not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Cell Editor not working" Watch "Cell Editor not working" New topic
Author

Cell Editor not working

Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Hello everyone,
I'm trying to allow a user to insert up to eight digits into a cell. The following code doesn't seem to work, am I missing something?



When I click in a cell, it allows me to enter more than eight digits and the value isn't aligned to the right. Additionally, the values in the other cells are not aligning to the right?

Thanks for everyones help!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cell Editor not working
 
Similar Threads
changing headers on JTable caused other problems
Request focus for the first cell of a jtable.
JCheckBox in JTable Rendering problem
JTable CellEditor formatting.
JTable +JComboBox