Why this program does not close?
I have 2 classesDemo1
Demo2
public class Demo1 {
public static void main (String [] args) {
System.out.println("Hello World!");
System.out.println ("Execution reached the end of main method;");
System.out.println ("The program should exit now.");
}
}
import javax.swing.*;
public class Demo2 {
public static void main (String [] args) {
JFrame f=new JFrame();
f.setBounds(0,0,100,100);
f.setVisible(true);
System.out.println ("Execution reached the end of main method.");
System.out.println ("The program should exit now.");
}
}
When I run these classes, I get the same result.Execution reached the end of main method.
The program should exit now.
Program demo1 actually leaves and comes back to command prompt. But Demo2 program does not close. Why is Demo2 not close even if execution reaches the end of the main method?
A program does not close until any thread no-daemon/s is / are running. Showing the JFrame begins the EDT, which is a non-daemon thread.
DB
Tags: Java
Similar Questions
-
Please tell me why this script does not work with Firefox. It works with Safari. Here is the page that includes the script: www.lionsgatehoa.org/newslettertest.html. Thank you. Tom Engleman
Here's the script in my html document:
< embed src = "News2008Fall.pdf" width = '615' height = '3200' > < / embed > "
Edit: removed # phone
Works for me on Linux.
Your system details list does not display the Adobe Reader plugin, so you'll have to (re) install this program.See:
-
Why CRYSTAL_REPORT program does not work with windows Vista? __
Why CRYSTAL_REPORT program does not work with windows Vista?
http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx
Windows Vista Compatibility Center
First thing to do is to check its Vista compatibility at the link above, and if not to see what patches/solutions are available from its manufacturer...
http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/
If this is not Vista compatible, read the info on the link above.
It works for some programs, but not all.This applies to software programs, NOT hardware drivers.
If it's Vista compatible > uninstall it > Re-download/save to your desktop > right click on the setup.exe > run as admin.
See you soon.
Mick Murphy - Microsoft partner
-
SL500 "this program does not support this system.
I have an SL500 with 64-bit windows system 7. He has a new system installed. I have correctly installed all necessary drivers. Now, I'm not able to install elements of followind with the system update utility:
ThinkPad ultranav driver for windows 7
ThinkPad hotkey features integration pilot
ThinkPad Ultranav utility
If I try to manually install, I get an error message "this program does not support this system.
I had the same problem with Version 3.84.1500 of the driver Thinkpad hotkey features integration
(and the latest version of 3.84.2000)
This is a faulty installation.
2 the missing files.
Solution to what Lenovo fixes installation:
Download and install the latest version.
Download and install the 3.81.0100 version.
Copy the files SWI32.sys and SWIX64.sys of the 3.81.0100 in the folder version corresponding to the most recent version.
Run setup.exe from the most recent version.
According to the properties file SWI32.sys and SWIX64.sys are used as 'System Information Detector'.
No wonder we get the error message "this program does not support this system.
Lenovo, please fix.
-
Windows import program does not close after you import photos from a camera.
Windows import program does not close after you import photos from a camera. It is frozen on the desk and the computer must be restarted to use the program again, windows does not detect a problem, how to fix it.
original title: importer of photo and video for windows
Hello
1. which version of the operating system is installed on the computer?
2. don't you make changes on the computer before the show?Method 1:
You can perform a clean boot and check if the problem occurs.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the Knowledge Base article.
Method 2:
Alternatively, you can change settings for importing pictures and videos in windows by following the steps from the link.
http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-importing-pictures-and-videos -
"This program does not" and frezes at startup screen
screen freezes when turned on showing only the loading logo (blue circle)
This blue logo.
I used ccleaner to clean up necessary (with safe mode of course) .to restore the system to go back 3 days and still no result...
I did a scan of viruses even with the last update of avast... but no use...
When the desktop appears and I click start it says that this program is not responding and if you expect some time... when I click ok, the screen freezes and it never responds.i have even made a scan of malware using malware bytes but still no results... is there another way to fix it otherwise re install windows?"THE APPLICATION IS NOT RESPONDING. THE PROGRAM CAN MEET IF YOU WAIT. DO YOU WANT TO PUT AN END TO THIS PROCESS? »
Hello Zafer amrani,
Method 1
I suggest you to run the fixit from the following link:Difficulty of broken desktop shortcuts and common system maintenance tasks
http://support.Microsoft.com/mats/system_maintenance_for_windows/en-usMethod 2
I suggest you to scan SFC. Scan SFC will replace missing or damaged files.How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
http://support.Microsoft.com/kb/929833
Method 3
I suggest to create a new user account and check if the problem persists.Create a user account
http://Windows.Microsoft.com/en-in/Windows-Vista/create-a-user-accountIf everything works well in the new user account, then I suggest you to transfer data and settings to the fixed aid corrupt profile.
Difficulty of a corrupted user profile
http://Windows.Microsoft.com/en-in/Windows-Vista/fix-a-corrupted-user-profileMethod 4:
Go to your advanced startup options and attempt to repair your computer or the last good known Configuration.
Startup options (including safe mode)
http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode
-
Why this SQL does not work?
The following code does not work when I try to delete rows from a table of test. The test table has no unique or primary key on it and is defined as test (identification number). Can you explain to me why it doesn't work?
delete from test a where a.rowid in (select b.rowid from test b where b.id = a.id and b.rowid != a.rowid);
When I run the subquery (selection) with replacement of the actual values of a.rowid and the table queried a.id (IE.
select b.rid from test2 b where b.id = 1 and b.rid != 'XXX'
), the subquery returns exactly as expected (that is to say, it gives the rowid is different from that which went from subquery). And as although I know the internal subquery must return the result for each row of the table in the outside circle delete statement, and only after that should execute the delete statement. For example, for the first row of the table in the external suppression, the delete statement must send the ID of the first row in the internal subquery and then wait the result which should return. And then runs the delete statement, in which case the subquery must return the rowid is different from that which went from subquery (ie.
). Am I wrong? What is the error in this statement.b.rowid != a.rowid
P.S. The sql is also not working if we replace remove it with the update or select
in this case, the subquery must return the rowid is different from that which went from subquery (IE.
b.rowid != a.rowid
). Am I wrong? What is the error in this statement.
You are right that this subquery should return other than past rowid thr. But you used the IN clause as well as below:
where a.rowid in
What States remove the line if rowid returned by the subquery contains the identifier for the row whose ID was passed. As the inner query is to return another rowid, therefore, no row is deleted.
To remove duplicate lines, try the query (Replace tablename/columns with your) below:
DELETE FROM emp A
WHERE A.ROWID > ALL (SELECT B.ROWID
PEM'S B
WHERE A.empno = B.empno);
-
I had XP and would like to take my EM64T processor and memory expansion capability. I bought W7 professional online and could not install the 64-bit version. I installed the 32-bit version, but want to install the 64-bit. I checked my ability of 64-bit. The error is that the installation is a 64-bit program. See below
"The version of this file is not useful with the version of Windows that you are running. Check of your computer's system information to see whether you need a X 86 (32-bit) or x 64 (64-bit) version of the program and then contact the software publisher. »
Hi Larry_437,
Please take a look at the thread similar here with instructions on the upgrade of Windows 7 32 bit to 64 bit.
You can also take a look at this article as well:
http://Windows.Microsoft.com/en-us/Windows7/32-bit-and-64-bit-Windows-frequently-asked-questions
I hope this helps!
-
Why this mixture does not work?
I work in CS4 on Mac. I want to do a 10 pastel colors color wheel. I had planned to use ten spokes - each scratched a color - and then mix together them. I did it before with success with other colors, I got the idea for this Web site: http://colorburned.com/create-a-color-picker-icon-in-illustrator/
However, it does not for the moment. Here are my photos before and after.
Any ideas on the reasons that a segment is so shredded? I tried to increase the width of each RADIUS of 1 pt to 4pt, but it did not help.
You need to duplicate the higher-level object and place it under the entire stack.
In this example, the strokes begin with yellow (the bottom) and eventually green (at the top of the stack).
Select the green path, Edit > copy, edit > paste in front, object > Arrange > put in the background... and then create the mix.
You need to start and stop of the same color in the same place for the entire circle mix properly.
-
Why this code does not work in dreamweaver?
<! DOCTYPE HTML >
< html >
< head >
< style type = "text/css" >
{body
Width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
}
< / style >
< / head >
< body >
< img src = "images/last.png" alt = "left" style ="width: 100%; "/ >
< / body >
< / html >
When I put it in the tab code Dreamweaver html blank document page, it does not seem to load. Any suggestions?
Are you sure that the image is in the folder named "images" last.png? Are you sure the image is to use the right color RGB and CMYK not the space.
There's nothing wrong with the code that I can see. What happens if you try just text:
body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
}
Hello
-
I figured out you can drag and drop only a poster frame on the placeholder in the menu, but this process needs to be automated should it not? When you set a poster frame, this image should not represent this scenario in the menu?
Make sure that you have selected the marker for the first chapter of the timeline when you set the poster frame. This assumes that the button links to the chapter in the timeline.
-
That means 1e9 and why this query does not work?
What does 1e9? Someone has links to documentation on this oracle? And why I get this error?
SQL> select segment_name,(bytes/1e9) AS size from dba_segments where segment_name='MSG_MASTER'; select segment_name,(bytes/1e9) AS size from dba_segments where segment_name='MSG_MASTER' * ERROR at line 1: ORA-00923: FROM keyword not found where expected
SIZE is a keyword - so if you want the name of the column size then use 'SIZE' else give it a different name
Try dividing by other exponentials, then you'll see how: 1e0 1e1 (div 1), (div by 10), 1e2 :-) etc
Mette
Published by: mettemusens on 2009-05-12 16:02
-
Why this code does not work, its simple!
Hello
I know the myVISITORinfoFormdomain name, say, the name is myTextField25, but I do not know its full path! but, I want to make gray and read-only, so I put the code below (I put the cursor on the node 'myVISITORinfoForm' and selected the DocReady event)
var c = xfa.resolveNode("myTextField5").fillColor = '192,192,192. "
var d = xfa.resolveNode("myTextField26").fillColor = '192,192,192. "
var e = xfa.resolveNode("myTextField25").access = "readOnly";
var f = xfa.resolveNode("myTextField26").access = "readOnly";I also tried another field of myTextField26, I also kept the same code in the FormReady events initialization... but has not worked!
myTextField25 and myTextField26 are positioned on the 3rd page of the mySubForm12 subform.
Pls let me know wht miss me?
Thank you
Hello
If you want to make each field read only and gray, so why not script directly in each of the two textfields?
It's the two fields docReady event:
this.fillColor = "192,192,192"; this.access = "readOnly";
You can only do this if the fields are not null (for example when the form is returned to you). In this case you would wrap the script in an if statement:
if (this.rawValue === null) { this.fillColor = "192,192,192"; this.access = "readOnly"; }
I don't think the way you declare variables and setting properties on one line will work. Also, the use of the xfa.resolveNode is not effective.
Hope that helps,
Niall
-
Why this text does not work well?
Hi guys,.
I am having trouble with this text.
http://www.pixentral.com/show.php?picture=1y1N3lL5KPRBejo9GlPhEdkpl4KDQe
It's in a column and the text block ends with the word 'amorosa '. I don't know why in the text the word "looking" will move to the next line and can only be inserted after that «nostalgia DEL...» "line of text even if ups with the end of the image apparently large enough to hold.
http://www.pixentral.com/show.php?picture=1nu94bPp66d7lumber8SBjn6eI7Z1
Maybe there is a better way to work with tabs, avoiding the list and so forth, but so far I have not understand it... so I work with the tools I know.
Thanks for any info!
See you soon,.
SEBS
Most importantly, you should do in this file is to remove all the keystrokes unnecessary (circled in red on my picture).
You only need a paragraph return after caida, a tab after Coccoz, a tab after Catalanand without tab in the 'second paragraph' text (such as after del), and you do not need a line break after amorosa.
After you have removed all the junk, set a tab on the left for the "second column and take note of its position." Suppose that you assign the p180 tab. To do the hanging indent, set the left indent p180 and first line indent to-p180 (i.e. negative 180 points). In this way, all text will be in the "second column", except the first line of the paragraph, which in this case are the names that make up your "first column". When you are ready to start with a new name, it's when you need a normal declaration.
-
What I'm trying to do is to check two values of database and if they are what I said I want the code to run (record code update).
Here's what I have:
< % if (rsSoftwareRequests.Fields.Item("Approved"). Value) = "Yes" AND rsSoftwareRequests.Fields.Item ("EmailSent"). Value) = "False" then % >
< %
If (CStr (Request ("MM_update")) = "form1") then
If (not MM_abortEdit) then
'perform the update
Dim MM_editCmd
Set MM_editCmd = Server.CreateObject ("ADODB.Command")
MM_editCmd.ActiveConnection = MM_Intranet_New_STRING
MM_editCmd.CommandText = "UPDATE SoftwareRequest SET EmailSent."
=?, ApprovedByUserName =? WHERE ID =? »
MM_editCmd.prepared = true
MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param1",
1, 50, 202 Request.Form ("EmailSent")) ' adVarWChar
MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param2",
202, 1, 255, Request.Form ("ApprovedByUserName")) ' adVarWChar
MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param3",
5, 1, -1, MM_IIF (Request.Form ("MM_recordId"),
Request.Form ("MM_recordId"), null)) ' adDouble
MM_editCmd.execute
MM_editCmd.ActiveConnection.close
' add the query string to the redirect URL
Dim MM_editRedirectUrl
MM_editRedirectUrl = "software_hardware1.asp".
If (Request.QueryString <>"") then
If (InStr (1, MM_editRedirectUrl, "?", vbTextCompare in) = 0) then
MM_editRedirectUrl = MM_editRedirectUrl & "?" &
Request.QueryString
On the other
MM_editRedirectUrl = MM_editRedirectUrl & "" &
Request.QueryString
End If
End If
Response.Redirect (MM_editRedirectUrl)
End If
End If
% >
< % end If % >
The recordset is set above the statement 'IF '... I put these values in the HTML body to see if it is pulling them correctly and yet it is the code under the IF statement is not pull out... I don't understand?
Any help would be appreciated. Thank you!
I think that is the oder of your orders, I did a quick page to test and it works fine, I left the sql insert at the top of the page where DW put and I think all his money form if SO, was the order in my page like this:
Insert code - report
RS for the values-<%If (rsSoftwareRequests.Fields.Item("Approved").Value) = "Yes" AND rsSoftwareRequests.Fields.Item("EmailSent").Value) = "False" Then%>
<% end if %>Notice the document.form1.submit () is inside the IF THEN statement so it will trigger if the FI THEN returns true and that is not the value of the onLoad of the body, it should work, I left the record insertion code where DW puts but try it inside the fi can. NOTE: If the user has JS disabled the page will not work, but there are risks to everything!
Maybe you are looking for
-
Satellite Pro A300 he can't start WLan - Fn + F8 key problem
Hello I have a wireless satellite pro a300-1nt model problem... I have instaled win7 ultimate (32 bit) and and all the Nice work, except that... in the household of wireless device is all ok, windows recognizes the card, he said all work perfectly...
-
Satellite L500: after cleaning with a cloth keyboard problem
Hi guys,. New to this Forum, can someone help us please Our daughter decided to give the keyboard a cleaning with a cloth but it was then that he turned and now some letters when keyed perform other functions, for example the letter t emerged the sam
-
The display of videos in 16:10 Format on Satellite M30
Hello I have a portable Satellite M30 with a 16:10 display but all videos are only displayed in 4:3 format.Is it possible to play videos in 16:10 format and remove these black lines on the left and the right of the screen? Thanks in advance, Pizikata
-
the Windows Update page 2 contuinely Windows updates do not settle.
TWO UPDATES OF WINDOWS CONTUINELY DO NOT SETTLE. DOWNLOADED THOW
-
I need help to know how to use the camera, since it is a new computer, that compatibility is also under windows XP on this computer for the camera, but there is no selection of windows vista in the properties. How to use it? I need help!