🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12258

Re: JLabel editor

#12258
From: Matt Krevs
Date: Mon, 08 Feb 1999 00:00
16 lines
1145 bytes
Why not just use a JTextField and set the colour/border so it looks like a
label.

Or use a FieldControl so you get the same editing behaviour as in explorer
 ie double click or F2 will start an edit session )

Tim wrote in message <36BC999A.21322A7F@megalopa.ucdavis.edu>...
> I would like to construct an editable JLabel. That is the user can edit
>the text displayed if they double click on the text area of the label.
>Basically the same behavior as you see in the Windows Explorer, if you
>want to change a filename you do so by clicking on the text area of the
>label.
> Anyone have an idea for the easiest way to do this?
>
>
>Tim
Technical Details
Message-ID: <79l078$ssh8@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36BC999A.21322A7F@megalopa.ucdavis.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,19cec48693fad70c
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: JLabel editor
Date: 1999/02/08
Message-ID: <79l078$ssh8@forums.borland.com>
X-Deja-AN: 441777496
References: <36BC999A.21322A7F@megalopa.ucdavis.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing