From owner-freebsd-java Fri Jun 30 3:54: 3 2000 Delivered-To: freebsd-java@freebsd.org Received: from procsys.com (PPP-191-93.bng.vsnl.net.in [203.197.191.93]) by hub.freebsd.org (Postfix) with SMTP id B326A37B85E for ; Fri, 30 Jun 2000 03:53:54 -0700 (PDT) (envelope-from pran@procsys.com) Received: from procsys.com ([192.168.1.115]) by procsys.com with SMTP; Fri, 30 Jun 2000 16:26:39 +0800 Message-ID: <395C7CEF.C31B0487@procsys.com> Date: Fri, 30 Jun 2000 16:26:47 +0530 From: Pran Joseph Reply-To: pran@procsys.com Organization: Processor Systems (India) Pvt. Ltd X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Applet and Window Managers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have feebsd 3.4 machine with jdk1.1.8 installed. My problem is that I have a applet which runs fine in twm/After step window manager .The same applet is not working in other managers like KDE and GNOME . In KDE and GNOME the applet get stuck when I try to create the frame.Frame is extended from JFrame and contains JMenu,JTree,JPanel etc. I am using swing 1.1.1 which I downloded from sun web site. I have included the soucre at the end of this mail. -Pran public class Applet1 extends JApplet { boolean isStandalone = false; MyFrame frame = null; public String getParameter(String key, String def) { return isStandalone ? System.getProperty(key, def) : (getParameter(key) != null ? getParameter(key) : def); } public static void main(String args[]) { Applet1 myApplet = new Applet1(); myApplet.init(); myApplet.start(); } //Construct the applet public Applet1() { } public void init() { try { jbInit(); frame = new MyFrame(); //the applet is excuting till this line frame.pack(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { this.setSize(new Dimension(10,10)); } public String getAppletInfo() { return "Test Applet"; } public String[][] getParameterInfo() { return null; } static { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) {} } public void start() { frame.setVisible(true); } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message