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


Groups > comp.lang.java.gui > #1903 > unrolled thread

How to prevent change the

Started by"RC" <rc@THRWHITE.remove-dii-this>
First post2011-04-27 15:36 +0000
Last post2011-04-27 15:36 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.lang.java.gui


Contents

  How to prevent change the "RC" <rc@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
    Re: How to prevent change "Michael Jung" <michael.jung@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
    Re: How to prevent change "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
    Re: How to prevent change "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000

#1903 — How to prevent change the

From"RC" <rc@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
SubjectHow to prevent change the
Message-ID<f5uguc$5q0$1@news.nems.noaa.gov>
  To: comp.lang.java.programmer
So I have successfully to prevented JTable
cell editing, resize the column size,
column and row selection.

But I haven't figured out how to prevent
dragging a column from one place to other place.

If you know how to prevent column reordering (dragging)
in JTable, please let me know.

Thank Q very much in advance!

---
 * 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

[toc] | [next] | [standalone]


#1904 — Re: How to prevent change

From"Michael Jung" <michael.jung@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
SubjectRe: How to prevent change
Message-ID<87y7i53zfu.fsf@golem.phantasia.org>
In reply to#1903
  To: comp.lang.java.programmer
RC <raymond.chui@nospam.noaa.gov> writes:
> So I have successfully to prevented JTable
> cell editing, resize the column size,
> column and row selection.
> But I haven't figured out how to prevent
> dragging a column from one place to other place.
> If you know how to prevent column reordering (dragging)
> in JTable, please let me know.

RTFM: JTableHeader

Michael

---
 * 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

[toc] | [prev] | [next] | [standalone]


#1905 — Re: How to prevent change

From"Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
SubjectRe: How to prevent change
Message-ID<f5upkt$sfq$00$1@news.t-online.com>
In reply to#1903
  To: comp.lang.java.programmer
RC wrote:
> So I have successfully to prevented JTable
> cell editing, resize the column size,
> column and row selection.
> 
> But I haven't figured out how to prevent
> dragging a column from one place to other place.
> 
> If you know how to prevent column reordering (dragging)
> in JTable, please let me know.
> 
> Thank Q very much in advance!
Learn to use the API docs! You'll find it at 
http://java.sun.com/j2se/1.5.0/docs/api/

-- 
Thomas

---
 * 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

[toc] | [prev] | [next] | [standalone]


#1912 — Re: How to prevent change

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
SubjectRe: How to prevent change
Message-ID<g8l883h4v8bqgbt6ksti2kuf7re5p3l8h9@4ax.com>
In reply to#1903
  To: comp.lang.java.programmer
On Wed, 27 Jun 2007 16:22:35 -0400, RC <raymond.chui@nospam.noaa.gov>
wrote, quoted or indirectly quoted someone who said :

>So I have successfully to prevented JTable
>cell editing, resize the column size,
>column and row selection.
>
>But I haven't figured out how to prevent
>dragging a column from one place to other place.
>
>If you know how to prevent column reordering (dragging)
>in JTable, please let me know.
>
>Thank Q very much in advance!

JTable is one of the more complicated widgets.  You need to skim all
the docs so you get an idea of what sorts of things you can do.  Then
later when you are doing your design, you build around what you know
is possible.  Only when you get around to writing the piece of
detailed code do you then need to read the API with fine tooth comb.
Then you can forget it.  When you have similar problems, you scour
your existing code base.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web