LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2013, 11:00 AM   #1
kunall.vadgama
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
Thumbs up What are the statements that need to be written in Java to close the terminal window?


What are the statements that need to be written in Java to close the terminal window?

I was just wondering that what are the statement which are required when I am using a menu in java and want to terminate the program and close the terminal windows by the user's command.

I was just wondering if anybody could help me out here.
 
Old 01-28-2013, 06:41 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,121

Rep: Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270
usually an app will not close another app. A terminal windows automatically closed by itself when its child terminated, so when you run a java app in a terminal (not in a shell, but directly like xterm -e command) the terminal will disappear when the java app completed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to compile java applications from terminal window nkd Linux - Software 3 11-10-2008 07:41 AM
How to make script close terminal window when complete??? taylorkh Linux - Newbie 2 08-27-2008 11:43 AM
Java GUI Terminal Window manolakis Programming 2 12-24-2007 08:54 PM
How to close terminal window when launching app from command line Casket Linux - Newbie 8 11-02-2007 07:05 AM
java and terminal window commands manolakis Programming 4 02-03-2007 11:27 PM


All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration