Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #705

Re: JTables columns dragg

From "usenet" <usenet@THRWHITE.remove-dii-this>
Subject Re: JTables columns dragg
Message-ID <0T3pnl5eIk1k@uni.chka.de> (permalink)
Newsgroups comp.lang.java.gui
References <1168969571.196564.256100@m58g2000cwm.googlegroups.com>
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Lorenzo <lorenzo.arona@gmail.com> wrote:

> I'm developing a MATLAB GUI which uses JTables: I do not want the
> columns to be dragged but the code

>      mytable.setDragEnabled(false);

> appears to be useless: columns can still be dragged.

Columns are not dragged by drag-and-drop, but internally.

> Any idea of what's happening?  It seems to me that some sort of Java
> instruction get lost when executed under MATLAB...

> I would really appreciate some help

table.getTableHeader().setReorderingAllowed(false);



Christian

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

JTables columns dragging "Lorenzo" <lorenzo@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
  Re: JTables columns dragg "usenet" <usenet@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000

csiph-web