Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

events in netbeans

Thread view: 
Richie - 20 Mar 2008 20:16 GMT
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?
Mark Space - 20 Mar 2008 22:02 GMT
> 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/>
Richie - 21 Mar 2008 12:30 GMT
> > 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
[quoted text clipped - 23 lines]
>
> <https://appframework.dev.java.net/>

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.