Article View: borland.public.jbuilder.java.swing
Article #7532Re: JApplet problems - JTable, JColorChooser
From: Torsten Welches
Date: Wed, 17 Jan 2001 09:44
Date: Wed, 17 Jan 2001 09:44
36 lines
2315 bytes
2315 bytes
Yonatan, did you try to run it as an application to check if the problems are applet-specific? I don't know much about applets but JApplet is a Panel so you could simply put it on a JFrame which you open in a main(). Note that the Applet-specific methods like init() will not be called automatically then. Did you check if any Exceptions occured during the setup of your ui? A JTable does not show column headers automatically unless the table is inside a JScrollPane. Did you try that? You say you "trying to set a JColorChooser as the applet's contentpane" - just add it to the existing contentpane instead. You ask "Does this has anything to do with threads by any change?" Do you start your own threads, or why do you ask? If so, do you do anything ui-related inside these threads? Good luck, Torsten "Yonatan" <yonatanta@bashan.co.il> wrote: >Hello! > >When I try to add a simple JTable to the applet's contentpane strange things >happen including only column headers are shown when clicked upon. >A similiar problem when trying to set a JColorChooser as the applet's >contentpane. > >Another problem is that when popping a JColorDialog out of an applet, the >second time it usually crashes my browser IE 5.5. >Messy repaintings occur in the entire browser's frame. > >Does this has anything to do with threads by any change?
Technical Details
Message-ID:
<3a656961$1_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.105.83.65References:
<3a64a70e_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,d83e7c6d61864745 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-17 01:46:04 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Subject: Re: JApplet problems - JTable, JColorChooser Newsgroups: borland.public.jbuilder.java.swing X-User-Info: 193.158.55.74 193.158.55.74 References: <3a64a70e_2@dnews> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3a656961$1_1@dnews> Date: 17 Jan 2001 01:44:01 -0800 X-Trace: 17 Jan 2001 01:44:01 -0800, 207.105.83.65 Lines: 37 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.105.83.65