File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
Swing / AWT / SWT
Joined: Mar 25, 2005
Sep 19, 2006 08:47:00
I currently have KTables (SWT) working on an eclipse rcp. The only problem is that I cannot get the height of the table to increase. It only shows the 1st 3 rows.
If anyone could help, It would be greatly appreciated
table = new KTable(container, SWT.SINGLE | SWTX.FILL_WITH_DUMMYCOL| SWTX.AUTO_SCROLL | SWTX.FILL_WITH_LASTCOL | SWTX.EDIT_ON_KEY); //create Column models int columns = 3; IColumnModel models = new IColumnModel[columns]; models = new UDPNameColumnModel(0, columnNames, itemList); models = new UDPTypeColumnModel(1, columnNames, itemList); models = new UDPValueColumnModel(2, columnNames, itemList); tableMapper = new DefaultTableMapper(this, models); model = new KTableModelAdapter(tableMapper, table); table.setModel(model); table.addCellSelectionListener(tableMapper);
It is sorta covered in the
JavaRanch Style Guide
subject: KTable resizing
Rendering 1+JTable in same JPanel
Jtable filled with JButtons each having their own ImageIcon from a SQL server
Add Row with AbstractTableModel
Removing rows from DefaultTableModel
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015