events in netbeans

R

Richie

i am running netbeans 6.0.1 SE edition with jdk 6.0 update 5. I had
netbeans auto generate a desktop application project. when i tried to
look for open or closed event, all i found was propertychange event.
how can I add the other events like open or closed event onto the
project?
 
M

Mark Space

Richie said:
i am running netbeans 6.0.1 SE edition with jdk 6.0 update 5. I had
netbeans auto generate a desktop application project. when i tried to
look for open or closed event, all i found was propertychange event.
how can I add the other events like open or closed event onto the
project?

Well, desktop applications aren't entirely standard Java. They follow a
different standard that's still in development. You might try
generating a Java application rather than a desktop application. This
will at least give you regular old Swing classes.

Desktop applications (the one you have) wrap Swing components for extra
functionality. Assuming you have a JFrame you can access somewhere (I
don't recall how the desktop app handles Frames, off the top of my head)
you can use a window listener to receive window closing and window
closed events:

<http://java.sun.com/docs/books/tutorial/uiswing/events/windowlistener.html>

If you're talking about some other property, you'll have to be more
specific (at least for me).

Here is the home page for the Swing Desktop Application Framework. Note
that they have not yet reached the early draft phase, according to their
own page. I think you'd be better off to use plain old Swing for now.

<https://appframework.dev.java.net/>
 
R

Richie

Well, desktop applications aren't entirely standard Java.  They follow a
different standard that's still in development.  You might try
generating a Java application rather than a desktop application.  This
will at least give you regular old Swing classes.

Desktop applications (the one you have) wrap Swing components for extra
functionality.  Assuming you have a JFrame you can access somewhere (I
don't recall how the desktop app handles Frames, off the top of my head)
you can use a window listener to receive window closing and window
closed events:

<http://java.sun.com/docs/books/tutorial/uiswing/events/windowlistener...>

If you're talking about some other property, you'll have to be more
specific (at least for me).

Here is the home page for the Swing Desktop Application Framework.  Note
that they have not yet reached the early draft phase, according to their
own page.  I think you'd be better off to use plain old Swing for now.

<https://appframework.dev.java.net/>

Thanks mark. i wish they kept the deskstop in alpha or beta testing. i
will use the old swing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,090
Members
48,773
Latest member
Kaybee

Latest Threads

Top