Re: getting a JPanel to work
HandyGeek <thompsonwd40 <at> comcast.net>
2009-02-01 04:03:48 GMT
Hi Christopher,
It sounds as if you are doing everything correctly. So, what if you try
creating a plain Java Application, where NetBeans creates the Ant
script, and not utilizing ImageJ? If that works, then there must be
something with either ImageJ, or the existing Ant script. I would also
recommend that you use the latest NetBeans, and Java6, which I think is
at U11 now. Hope something here helps. Best, David
xcoulon wrote:
> Hi David, thanks for the reply!
>
>
>
> I used the GUI builder. Created a New Project using the Java Project with Existing Sources in order to
utilize ImageJ -- I create automated image analysis applications to help researchers (mostly medical
and biological) automate their research. I want to build a GUI for some applications to greatly simplify
its use by the researcher.
>
>
>
> I right-click one of the packages in my project and create a JFrame class. That class has a Source and Design
tab at the top of the Netbeans window containing the code. If I start with just a button (drag the button to
the design area) and compile and run the JFrame class (by right-clicking its java file and selecting Run
File from the drop-down menu), I get a Build Successful in the output and the name of the class momentarily
appears in the Apple menu -- as if a new application has started -- but no frame appears and the name
disappears after a second or two.
>
>
>
> I am using a MacBook Pro 2.4 gHz Intel duo with OS X 10.5.6 and java 1.5
(Continue reading)