Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Help me on JTable,Windows Registry & Clipboard

  Asked By: Ernesta    Date: Sep 14    Category: Java    Views: 863
  

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?

3. Is there any way to access Windows Registry using Java Application

4. How to access Operating System's Clipboard through Java Application

5. Can I call a MS-DOS Batch file using Runtime().getRuntime().exec() method

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Corinne Rogers     Answered 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... )

 
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: