Article View: borland.public.jbuilder.java.language
Article #18468Re: Swing Button Again
From: Gerry Mantha
Date: Wed, 24 Jun 1998 00:00
Date: Wed, 24 Jun 1998 00:00
27 lines
1682 bytes
1682 bytes
Amy, are you using a JApplet? Have you set any other properties of the button? I would check to ensure you are using pure swing stuff, and not mixing lightweight and heavyweight controls. Also, ensure that properties such as setBorderPainted() is true. I haven't had the problems with JButton you mention. Also, what method are you using to set the icon? Does the icon "move" a little when you press the button in windows L&F? Do your actionListener's work (receiving mouse events ok)? You may want to try posting some code if all this checks out. Gerry Mantha Amy S Lee wrote in message <358EC9DF.EF407945@engr.colostate.edu>... >I am using a JButton in my applet and placing an icon on it. However >when I run the applet and go to press the button it does not depress. >The action is carried out, but I would like to be able to see the button >being pressed. I have already tried using Windows and Motif Look and >Feel, as someone suggeted, but that did not work. I do not get any kind >of reaction from the button with any of the L&F's. I am currently using >the Java Plug-in 1.1 provided by Sun to run the applet. Would that >effect anything? > >Amy > >
Technical Details
Message-ID:
<6msflm$lr111@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<358EC9DF.EF407945@engr.colostate.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4d5d2f22ddfa6ee7 X-Google-Attributes: gidf74b3,public From: "Gerry Mantha" <gmantha@home.com> Subject: Re: Swing Button Again Date: 1998/06/24 Message-ID: <6msflm$lr111@forums.borland.com> X-Deja-AN: 365851116 References: <358EC9DF.EF407945@engr.colostate.edu> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.1 Organization: QTECH Hybrid Systems Inc. Newsgroups: borland.public.jbuilder.java.language