Article View: borland.public.jbuilder.java.swing
Article #9169Re: Jpanel+texte+image
From: Greg Hamer
Date: Mon, 22 May 2000 00:00
Date: Mon, 22 May 2000 00:00
69 lines
2810 bytes
2810 bytes
You could add a JLabel to the same location as your image, setOpaque(false) and then set its text. It should then overlap your image. Guillaume <gballet@free.fr> wrote in message news:39265808.CDF6C965@free.fr... > Hello. > > I'm using an Application, and not an applet. I'd like my text to overlap > a part of the image. > I'd also like my text to appear and then to keep being displayed on the > screen. > Eventually, I'd like to display three textes at the same time. > > Thank you. > > Greg Hamer wrote: > > > warning string? Are you running as a Applet? If so, I don't think that > > there > > is a guaranteed way to turn that off. Does a tooltip do the same > > thing? I > > dont see why you can't use tooltips; there is a method > > getToolTipText(MouseEvent e) that is called to get the text to > > display. You > > can ovverride it to display different text as desired. > > > > JPBallet <jean-pierre.ballet@meteo.fr> wrote in message > > news:8fr329$s0l1@bornews.borland.com... > > > hello,Thanks i try it. > > > I don't use tooltips because the text may be persistant. > > > Window is construct with Frame owner not a JPanel and what is the > > warning > > > string display with the window?? > > > JP Ballet > > > Greg Hamer a οΏ½crit dans le message > > <8fp8ru$b685@bornews.borland.com>... > > > >Well, if you don't want to use tooltips, you can do something > > similiar. > > > That > > > >is the code > > > >that I would look at to give you an idea. Basically use a Window > > with > > some > > > >sort of TextArea in it. > > > > > > > >JPBallet <jean-pierre.ballet@meteo.fr> wrote in message > > > >news:8fojm7$3vn2@bornews.borland.com... > > > >> Hello, > > > >> I have a jpanel with a map(a picture). How can i do appear a > > multiline > > > >text > > > >> on a click or on a rollover action . I hope only text and not > > dialog > > box > > > >> with title... this component should be small and should appear > > only > > over > > > >a > > > >> part off the picture . > > > >> are there examples somwhere? > > > >> > > > >> > > > > > > > > > > > > > > > > >
Technical Details
Message-ID:
<8gbq5k$3891@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8fojm7$3vn2@bornews.borland.com> <8fp8ru$b685@bornews.borland.com> <8fr329$s0l1@bornews.borland.com> <8frrem$5or3@bornews.borland.com> <39265808.CDF6C965@free.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,7e376e64d9823065 X-Google-Attributes: gid111d45,public From: "Greg Hamer" <ghamer@corp.netzero.net> Subject: Re: Jpanel+texte+image Date: 2000/05/22 Message-ID: <8gbq5k$3891@bornews.borland.com> X-Deja-AN: 625930158 References: <8fojm7$3vn2@bornews.borland.com> <8fp8ru$b685@bornews.borland.com> <8fr329$s0l1@bornews.borland.com> <8frrem$5or3@bornews.borland.com> <39265808.CDF6C965@free.fr> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing