This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: - open applet project in NetBeans - right-click applet .java file and select Run File (to build applet) - close opened applet window - switch to Files view and go to <AppletProject> | build | Applet.html - right-click Applet.html and select View (to run applet in browser) Browser is opened, but applet do not work (red 'X' icon instead). Product Version: NetBeans IDE Dev (Build 200807310201) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)
Applet development is now a part of J2SE project features. Could this be related to the fact that when compile on save is turned on, the jar file is not built? Daria, can you see whether the jar file that the html page refers to in fact exists? Thanks.
The project cannot help you with this problem. The problem is that you have JDK 1.6 based project which has a swing layout. When you create JApplet and use form editor, it's the default layout. When executing the applet in appletviewer it works fine as it runs on the JDK 1.6, but the browser java plugin (Safari, Mozilla) is using JDK 1.5 which doesn't have swing layout. Anyway you can use different layout than SwingLayout (set layout on the applet to other, eg. GridBagLayout). You may be also interested in http://www.netbeans.org/issues/show_bug.cgi?id=139872