JAVA-INDEX.COM
Java programming resources: FAQs, tutorials, compiler and browser download sites, documentation, books lists, IDEs, etc.
Home....
|
log in....
|
Pub my question!
|
Sign-up....
Java-index
>>
Desktop
>>
Core GUI APIs
JTable Cell length
Hi , How to fix cell length of the Jtable of a particular column.For ex column2 in my JTable accepts only 5 chars.How to do that?Thanks in advance.
[168 byte] By [
Ramsha
] at [2007-10-3 3:53:13]
««
Problem trying to reset password on Active Directory using Kerberos
»»
JList Dynamic List Model problem
# 1
Hi,to fix the cell length you may use this method :your_jtable.getColumnModel().getColumn(2).setPreferredWidth(200);
Marco_Poloa
at 2007-7-14 21:51:00 >
# 2
I think the OP wants to restrict input, not set the physical width.You need to provide a TabeCellEditor implementation which provides a restricted JTextField where appropriate - eg a JFormattedTextField or a JTextField with a custom Document.
itchyscratchya
at 2007-7-14 21:51:00 >
# 3
>>I think the OP wants to restrict input, not set the physical width.This is exactly what i want,please can you give some sample code.
Ramsha
at 2007-7-14 21:51:00 >
# 4
Knock yourself out, http://www.google.co.uk/search?hl=en&q=jformattedtextfield+maximum+length&btnG=Google+Search&meta=
itchyscratchya
at 2007-7-14 21:51:00 >
# 5
Thanks a lot, Got the answer
Ramsha
at 2007-7-14 21:51:00 >
Desktop
Java web start won't start!
Applet won't download
hi, tomcat connection pooling problem
Java runtime hangs - need help!
How to use a custom jDialog ?
JRE installs, but doesn't run
JavaBean does not work
WIN32OOSD Internal Error.
Problem in loading chinese properties file [*.properties]
supporting language
Core GUI APIs
Maintaining a partially changed window
run applets with appletviewer
Jlist problems
changes in property file not affecting my exe
Calling repaint
JDialog size
Why containers contains add and remove method while component does not
showing HTML page in applet
String inside indeterminate progressbar in Mac OS
Is there any way to implement it in java?
Desktop New Topic
run applets with appletviewer
Jlist problems
Calling repaint
Java web start won't start!
Why containers contains add and remove method while component does not
showing HTML page in applet
String inside indeterminate progressbar in Mac OS
JCombobox with JMenuBar (as drop down menu)
Desktop Hot Topic
Maintaining a partially changed window
changes in property file not affecting my exe
BorderLayout without a center area
How to change Font Type of the Title Text of a JFrame?
JRE installs, but doesn't run
JScrollPane
Problem in loading chinese properties file [*.properties]
JRE 1.5.0 Update 8 Gone From java.com
Desktop
Core GUI APIs
Deploying
Runtime Environment
Developing for the Desktop
I18N
Sun Secure Global Desktop Software
Sun Java Desktop System
Sun Ray Software - General Discussion
Mozilla Browser For Solaris
All Classified
Archived Forums
Enterprise & Remote Computing
Java Essentials
Desktop
Core
Solaris Operating System
Security
Database Connectivity
Java Mobility Forums
Web & Directory Servers
Development Tools
Application & Integration Servers
Java HotSpot Virtual Machine
Other Topics
E-Mail, Calendar, & Collaboration
Developer Tools
General
Administration Tools
Sun Hardware
Storage Forums
Java Enterprise System
StarOffice
Open Source Technologies
BigAdmin
Real-Time
Java Coding