Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ernesta Fernandez   on Sep 14 In Java Category.

  
Question Answered By: Corinne Rogers   on Sep 14

> I am having many doubts  in Java, plz help  me to improve  my
applications
>
> 1. In JTable, can we do like Microsoft Excel function, i.e.,
while start  to type the existing  contents of the cell  should clear
and new typed characters  only I want. (But now what happens is it
appends new characters to the end  of the cell)
>
> 2. I need first column  of my JTable should be fixed  size, all
the others AUTO_RESIZE how to do it?

hi, looks look you should try using something like:

tc = table.getColumn(columnId)

to get a TableColumn object, then a number of methods are available
such as:

tc.setMaxWidth(int maxWidth)
tc.setMinWidth(int minWidth)
tc.setWidth(int width)

( BTW I apologise if anything is innacurate, I'm a bit of newbie but
I've been fiddling with tables quite a bit recently... )

Share: 

 
 
Didn't find what you were looking for? Find more on Help me on JTable,Windows Registry & Clipboard Or get search suggestion and latest updates.


Tagged: