Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14353
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!newsoffice.de!not-for-mail |
|---|---|
| From | Hakan <H.L@softhome.net> |
| Newsgroups | comp.lang.java.programmer |
| Subject | JTable size |
| Date | Mon, 07 May 2012 09:41:28 +0200 |
| Organization | Newsoffice.de - http://www.newsoffice.de |
| Lines | 16 |
| Sender | Hakan <H.L@softhome.net> |
| Message-ID | <1336376488.66@user.newsoffice.de> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | server.stgb.info 1336376488 11607 127.0.0.1 (7 May 2012 07:41:28 GMT) |
| X-Complaints-To | usenet@server.stgb.info |
| NNTP-Posting-Date | Mon, 7 May 2012 07:41:28 +0000 (UTC) |
| User-Agent | Newsoffice.de - based on NewsPortal |
| X-Abuse-Management | x8LI2efC2JjMydDSocncmM+fVX6mnmNVYGhVsM6qQGeaY2hVaGpaoqirUmxVY2BrmqY= |
| Xref | csiph.com comp.lang.java.programmer:14353 |
Show key headers only | View raw
What do I need to add to control the size of a JTable? Nothing happens
when I run the code quoted below, it stays the same size.
Dimension tabledim=proTable.getSize();
tabledim.setSize(2*tabledim.getWidth(),
tabledim.getHeight());
proTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
proTable.setPreferredSize(tabledim);
Dimension newtdim=new Dimension();
newtdim.setSize(2*tabledim.getWidth(), tabledim.getHeight());
proTable.setPreferredScrollableViewportSize(newtdim);
--
Newsoffice.de - Die Onlinesoftware zum Lesen und Schreiben im Usenet
Die Signatur läßt sich nach Belieben anpassen ;-)
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
JTable size Hakan <H.L@softhome.net> - 2012-05-07 09:41 +0200 Re: JTable size "John B. Matthews" <nospam@nospam.invalid> - 2012-05-08 00:13 -0400 Re: JTable size Roedy Green <see_website@mindprod.com.invalid> - 2012-05-08 07:51 -0700
csiph-web