From: SourceForge.net <no...@so...> - 2006-09-19 01:22:38
|
Bugs item #1561124, was opened at 2006-09-18 20:22 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1561124&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: DynamicJava Group: 2: Annoying Status: Open Resolution: None Priority: 5 Submitted By: rlh (rhalterman) Assigned to: Nobody/Anonymous (nobody) Summary: Odd inner class problem on Mac Initial Comment: This is an issue running the program from within DrJava. The following program: --------------------------------------------------- import javax.swing.JButton; import javax.swing.JFrame; public class BrokenButton extends JFrame { private static class MyButton extends JButton { public MyButton() { super("My Button"); } } public static void main(String[] args) { JFrame window = new JFrame("Broken Button on Mac under DrJava"); window.setLocation(100, 100); window.setSize(300, 200); window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); window.getContentPane().add(new MyButton()); window.setVisible(true); } } --------------------------------------------------- works fine on both Windows XP and Linux. On my Mac, however, it compiles fine under DrJava but does not run correctly. What it exhibits looks more like a label and is not clickable like a button should be. If I compile the program under DrJava and run it from the command line (in a Terminal window, not from DrJava), it runs fine. The details: Platform: Mac OS X 10.4.7 (PowerPC) DrJava: 20060918-1737 Java: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112) Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing) Works fine on Windows XP and Linux, fails on Mac OS X ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1561124&group_id=44253 |