The Final Fantasy Forums  

Go Back   The Final Fantasy Forums > Archived Threads > Cleft of Dimension

Cleft of Dimension Here you can view old classic threads, including: fanfics, pics, and great topics.

 
 
LinkBack Thread Tools Display Modes
 
Old 04-06-2006, 08:50 AM Level: 59  HP: 908 / 1474
Neo Necron's HP
EXP: 96%
Neo Necron's XP
  #1 (permalink)
 
Neo Necron's Avatar
 

Join Date: Dec 2001
Location: Exeter/High Wycombe, England

   Posts    7,801
        

Send a message via AIM to Neo Necron


Help me with a Java applet. Fabulous prizes to be won! *

Yo peeps.

I hope there's somebody here with Java knowledge. I'm making an applet to be run in the Java Applet Viewer (Though I think that's irrelevant to my problem. It's an applet, thats all you need to know. I think.)

I won't bother you with the applet's main function. That's all done, but I need to create a feature where by the user clicks anywhere in the applet and the applet closes.

Apparently we were supposed to have learnt how to do this in lectures... but I don't remember being taught how.

Any ideas, anybody?

* Yeah, I'll give a gift to whoever gives me the working solution first.
__________________

<img src="http://i133.photobucket.com/albums/q61/andymoff/tffawards/lurker07.jpg">

By posting below this text you hereby pledge unquestionable servitude to Neo Necron


Warnings: -10 Warning level: -1000. He's just that awesome.
Neo Necron is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
 
Old 04-07-2006, 01:00 AM Level: 31  HP: 192 / 758
hellbred's HP
EXP: 34%
hellbred's XP
  #2 (permalink)
 
hellbred's Avatar
 

Join Date: Jan 2006
Location: Atlanta, GA

   Posts    1,316
        

Send a message via AIM to hellbred Send a message via Yahoo to hellbred


I know JavaScript utilizes the onclick="self.close();" command...

Does Java applet coding work kind of like this?
__________________



hellbred is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
 
Old 04-07-2006, 04:06 AM Level: 59  HP: 908 / 1474
Neo Necron's HP
EXP: 96%
Neo Necron's XP
  #3 (permalink)
 
Neo Necron's Avatar
 

Join Date: Dec 2001
Location: Exeter/High Wycombe, England

   Posts    7,801
        

Send a message via AIM to Neo Necron


Hmmm. Tried it, but no luck. Thanks anyway.
__________________

<img src="http://i133.photobucket.com/albums/q61/andymoff/tffawards/lurker07.jpg">

By posting below this text you hereby pledge unquestionable servitude to Neo Necron


Warnings: -10 Warning level: -1000. He's just that awesome.
Neo Necron is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
 
Old 04-07-2006, 01:57 PM Level: 66  HP: 1499 / 1630
LocoColt04's HP
EXP: 20%
LocoColt04's XP
  #4 (permalink)
The Old Skool Warrior
 
LocoColt04's Avatar
 

Join Date: Aug 2002
Location: Mount Olympus

   Posts    10,591
        

Send a message via ICQ to LocoColt04 Send a message via AIM to LocoColt04 Send a message via MSN to LocoColt04 Send a message via Yahoo to LocoColt04


Oh gosh, it's been ages since I've fiddled with Java. I do know exactly who would know the answer to your question, though. I'll redirect this topic to the 133780x's Java section and let you know what the response is.
__________________
NOTABLE QUOTABLES; Last.fm recent tracks; XBL Gamercard:

Quote:
[01:04:30] maximo828: and holy crap dude, youre a mess
[01:04:48] LocoColt04: Correction: I am AWESOME.
[01:04:59] LocoColt04: I live in a third floor apartment. There is no handicap access.
[01:05:00] maximo828: an awesome mess
Quote:
Originally Posted by IRC, #CAD channel
InvaderZIM> i just remembered why i don't really like debates
InvaderZIM> neither of them have to have sources
Panda> kinda like wikipedia
InvaderZIM> mccain could say obama drinks the blood of infants and no one can say otherwise
Panda> please
Panda> McCain drinks baby blood
Panda> thats how he survived being a POW
LocoColt04 is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
 
Old 04-07-2006, 11:14 PM Level: 66  HP: 1499 / 1630
LocoColt04's HP
EXP: 20%
LocoColt04's XP
  #5 (permalink)
The Old Skool Warrior
 
LocoColt04's Avatar
 

Join Date: Aug 2002
Location: Mount Olympus

   Posts    10,591
        

Send a message via ICQ to LocoColt04 Send a message via AIM to LocoColt04 Send a message via MSN to LocoColt04 Send a message via Yahoo to LocoColt04


I apologize for the double post, but I now have an answer for you, Joe.


izkuru: on to Neo Necrons applet problem
[TDS] Argentos: So, can you scrounge up that code that we needed?
izkuru: I know _how_ to do it, the thing is... applets don't have a close function >_<
[TDS] Argentos: O RLY?
[TDS] Argentos: That could be the problem then...
izkuru: was doing some research =o how they work is, when the page is closed, the browser calls its destroy funciton
izkuru: to let it know it has been killed off and such

[TDS] Argentos: Ah. Well, is there a way to write code that forces the page to close?
izkuru: but calling it from inside the program does nothing >_<
[TDS] Argentos: Ah
[TDS] Argentos: Well, I'll inform him


...sadly, it's not the answer you were looking for. Apparently, the only way to close an applet is to terminate the browser manually.
__________________
NOTABLE QUOTABLES; Last.fm recent tracks; XBL Gamercard:

Quote:
[01:04:30] maximo828: and holy crap dude, youre a mess
[01:04:48] LocoColt04: Correction: I am AWESOME.
[01:04:59] LocoColt04: I live in a third floor apartment. There is no handicap access.
[01:05:00] maximo828: an awesome mess
Quote:
Originally Posted by IRC, #CAD channel
InvaderZIM> i just remembered why i don't really like debates
InvaderZIM> neither of them have to have sources
Panda> kinda like wikipedia
InvaderZIM> mccain could say obama drinks the blood of infants and no one can say otherwise
Panda> please
Panda> McCain drinks baby blood
Panda> thats how he survived being a POW
LocoColt04 is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
 
Old 04-11-2006, 03:01 PM Level: -INF  HP: NAN / -INF
Lord Dias's HP
EXP: NAN%
Lord Dias's XP
  #6 (permalink)
Lord Dias
Guest
 


   Posts    n/a
        


Yeah I think Loco's right, if you cant find it via google or help from some expert, I dont really thing theres a way. Plus I never really seen an applet that was trying to close itself.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
 
Old 04-11-2006, 04:47 PM Level: 59  HP: 908 / 1474
Neo Necron's HP
EXP: 96%
Neo Necron's XP
  #7 (permalink)
 
Neo Necron's Avatar
 

Join Date: Dec 2001
Location: Exeter/High Wycombe, England

   Posts    7,801
        

Send a message via AIM to Neo Necron


Quote:
Originally Posted by LocoColt04
...sadly, it's not the answer you were looking for. Apparently, the only way to close an applet is to terminate the browser manually.
Hmm, to be honest, I didn't think there was a way. I'll need to speak to my lecturer about this. Sounds like we've been set soething incorrectly.

Thanks anyway, folks.
__________________

<img src="http://i133.photobucket.com/albums/q61/andymoff/tffawards/lurker07.jpg">

By posting below this text you hereby pledge unquestionable servitude to Neo Necron


Warnings: -10 Warning level: -1000. He's just that awesome.
Neo Necron is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Sponsored Links
 
Old 04-11-2006, 05:23 PM Level: 66  HP: 1499 / 1630
LocoColt04's HP
EXP: 20%
LocoColt04's XP
  #8 (permalink)
The Old Skool Warrior
 
LocoColt04's Avatar
 

Join Date: Aug 2002
Location: Mount Olympus

   Posts    10,591
        

Send a message via ICQ to LocoColt04 Send a message via AIM to LocoColt04 Send a message via MSN to LocoColt04 Send a message via Yahoo to LocoColt04


IDEA! Because I am a genius.

If you can set the mouseclick within the applet to emulate the Alt+F4 key combination, that would force the browser (or the specific window in which the applet is, anyway) to close. So yeah, if you make the onclick function to do that... it's worth a try anyway, right? Give it a shot and let me know how it works out.
__________________
NOTABLE QUOTABLES; Last.fm recent tracks; XBL Gamercard:

Quote:
[01:04:30] maximo828: and holy crap dude, youre a mess
[01:04:48] LocoColt04: Correction: I am AWESOME.
[01:04:59] LocoColt04: I live in a third floor apartment. There is no handicap access.
[01:05:00] maximo828: an awesome mess
Quote:
Originally Posted by IRC, #CAD channel
InvaderZIM> i just remembered why i don't really like debates
InvaderZIM> neither of them have to have sources
Panda> kinda like wikipedia
InvaderZIM> mccain could say obama drinks the blood of infants and no one can say otherwise
Panda> please
Panda> McCain drinks baby blood
Panda> thats how he survived being a POW
LocoColt04 is offline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 01:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
© 2008 - The Final Fantasy
Page generated in 0.38336 seconds with 14 queries