You may want to check out the MONO Project. They created a C# ThreadGroup for their debugger.
CVS File History
ThreadGroup.cs
It may help you, it may not. It should be worth checking out. (hehe) (bad pun)
If it doesn't just keep Googling and checking open source sites like sourceforge.net...
Well I found the answer... I was on the right track, I just needed to add the following line to the method override:
e.Cancel;
This cancels the event from proceeding, and lets you do what you want.
So there you go...
I have been trying to figure out, and search for how you can override the normal closing operation of a Form when a user hits the 'X' button, so that it just HIDES the form instead.
The closest I found in a forum someplace was they said to override OnClosing if you want to change how to handle...
I am a little confused. I do not see where you are actully even trying to play the sound? You are just opening a file. You are not doing anything with it.
I am not sure even if C#/.NET has native sound support yet. The only way I can think of doing what you want is using the Windowns...
I am trying to use some functions and structs from Shell32.DLL in my C# project. I have VS create a RCW by adding the COM DLL to my project references. However, after doing this I can only see the Classes, Interfaces, and Delegates from the DLL; I can not see the functions or structs. (Or any...
Well Mate, if you check the W3 HTML specs there no support for percentages in the size of an input field. THere for it does not work. It may appear to work, because 100 characters is VERY BIG. But it does not resize the field to to the width of the browser, in any browser. It is not even...
No 100% is interpreted as just 100 so it sets it to a size of 100 characters.
As for the other not working in IE6 for me... I followed the simple instructions and it's size was just set to what ever the size what set to, there was no "Autosizing" going on. Nothing dynamic, so I do...
I would like to know if there is a way to autosize a forms text input field. Either by a feature as part of the input tag, or something a little more complicated like figuring out how wide in characters it area is and then set the size.
I don't know. I have a dynamic column in a table, and...
Are you using personal edition, pro, or enterprise?
(Personal edition as some quirks because some of the features for keepthings things in sync are not available until the pro edition.) Rodney
www.javathis.com
To your last question "YES". You would only NEED to use the this Object reference, in this case, if the provided method argument as the same name as the class member. Exmaple:
public class Example
{
private String str;
public Example(String str)
{
this.str = str...
Try deleting your class directory, and then recompiling. Sometimes the class directory retains old copies of classes and dependanies to them (especiialy in JB4 & 5, not so much in 6). Usually if you have renamed a class and/or moved it's package.
If this does not help let me know. Because...
Sorry it took so long, but I did not have the files any longer, however, I downed them again from the link above, and I reimplemented the changes I stated above, and it compiles, runs and works. Below is a link to the only file that I changed. I will leave it on my site for a few days or until...
Okay below is a class that should compile any any JDK 1.2 or higher. It shows how to handle adding data to a JComboBox, and obtaining this data when a selection is made. (You should be able to extrapulate this to multiple comboboxes) It runs in two modes, default uses Integer objects in the...
Well first I just have to say this (in my best Schwartznager Voice):
DUNT DO IT! ARRIGRIGH!
Okay, with that off my chest, if you're insistent to do this, then lets see if I can help you.
First to find the best driver for what you are trying to do, you can search Sun's list of Drivers at...
Well the best advice I can give you would be that you may want to consider mastering the GridBagLayout. It is very powerfull, and flexable. Below are links to some tutorials you may want to check out:
http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html...
If you are using Java 2 JDK 1.4.0 then you can use the java.util.regex package. It uses a syntax similiar to that used by Perl.
Rodney
www.javathis.com
I am a little confused (it is probably me hehe) by your explaination of your focus problem. Could you post a compilable sample class that demonstrates this problem?
I have implemented several JTextFields that use a mask of one kind or another via documents. I have not experience the problem...
Applets work in a "Sandbox". This is for security reason since they can be embeded into webpages. If you are running a applet in a webpage it can access files on the server that it resides on. If you are using the jdk's appletviewer then you only have access to files on your system...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.