dcsimg
Problems with the JScrollPane (please help, urgent)
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Carlos_Caraccioli
Posted On:   Friday, November 29, 2002 03:16 PM

I am using JBuilder 6 and I put a JScrollPane container on the window form and then I put a JTable control on the container. The problem is that the horizontal scrollbar doesn't work but the vertical scrollbar does. Is there any trick to make it work? What can I do?

Re: Problems with the JScrollPane (please help, urgent)

Posted By:   Gautam_Marwaha  
Posted On:   Sunday, December 1, 2002 10:49 PM

See JScrollPane.setHorizontalScrollBarPolicy(int policy)

Re: Problems with the JScrollPane (please help, urgent)

Posted By:   james_andrews  
Posted On:   Friday, November 29, 2002 04:55 PM

JTable table = ....

table.setAutoResizeMode(mode)



where mode is either

static int AUTO_RESIZE_ALL_COLUMNS

During all resize operations, proportionately resize all columns.



static int AUTO_RESIZE_LAST_COLUMN

During all resize operations, apply adjustments to the last column only.



static int AUTO_RESIZE_NEXT_COLUMN

When a column is adjusted in the UI, adjust the next column the opposite way.



static int AUTO_RESIZE_OFF

Do not adjust column widths automatically; use a scrollbar.


You want AUTO_RESIZE_OFF
About | Sitemap | Contact