Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-23-2003, 03:43 PM   #1 (permalink)
sno2dude
Registered User
 
sno2dude's Avatar
 
Join Date: Apr 2003
Location: Michigan Tech
Posts: 38
sno2dude is on a distinguished road
Send a message via AIM to sno2dude Send a message via Yahoo to sno2dude
Exit in Java

Okay, heres a teaser for you. How do you catch when the x in the frame of a program is pressed so that i can use that button as the exit for my program instead of having to create and add my own all the time.
sno2dude is offline   Reply With Quote
Old 04-23-2003, 06:30 PM   #2 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
there is at least 3 ways of doing this

one is with jni

1 is not really the best one

the last way would be perfect and i would love to tell you .... but!
__________________
-- bloomberg.
abc123 is offline   Reply With Quote
Old 04-23-2003, 06:57 PM   #3 (permalink)
sno2dude
Registered User
 
sno2dude's Avatar
 
Join Date: Apr 2003
Location: Michigan Tech
Posts: 38
sno2dude is on a distinguished road
Send a message via AIM to sno2dude Send a message via Yahoo to sno2dude
forget this post, i already figured it out

setDefaultCloseOperation(EXIT_ON_CLOSE);

and dont be an ass just cuz you are wrong abc123, it makes you and all other computer programmers look bad.
sno2dude is offline   Reply With Quote
Old 04-23-2003, 06:59 PM   #4 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
Quote:
Originally posted by sno2dude
forget this post, i already figured it out

setDefaultCloseOperation(EXIT_ON_CLOSE);

and dont be an ass just cuz you are wrong abc123, it makes you and all other computer programmers look bad.
mmm
__________________
-- bloomberg.
abc123 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Developer Position in Kansas City justplaindoug Java 0 10-29-2004 12:52 PM
JAVA Hobbyists Wanted emteam Java 0 08-29-2004 12:27 PM
IBM urges Sun to make Java open source redhead Code Newbie News 0 03-01-2004 11:39 PM


All times are GMT -8. The time now is 12:05 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting