Hi.
I have an image img, and I am trying to take part of img and copy it to an array -- I just want part of the picture.
What would the code look like if my image is img, and my array is pic (pit[1]=img...)?
Thanks a lot
Hi.
Could somebody please tell me how to insert a picture into a Frame. (preferably not swing.) I tried working with Images, but I got the following error:
cannot resolve symbol
symbol : method getCodeBase ()
location: class Card
img = getImage(getCodeBase), "deckOfCards.GIF")...
Hi.
Can somebody please tell me how I can restrict the length of a textField (or a textArea). I want to limit the number of characters a user can enter. Is this possible?
Also, is it possible to disable all the keys except for the number keys for a specific textfield?
Hello.
Can somebody please tell me how I can determine the operating system of the computer on which the program is being run. Is there a function in java that does that? Also, is there a function in java that lets you determine the version of java installed on the computer?
Thanks in advance.
Can somebody tell me how to solve my problem.
this is pary of my code:
try{
FileWriter fr = new FileWriter("rawdata.txt");
PrintWriter output = new PrintWriter(fr);
String lastNameWithComma = newEmployeeLastNameString+",";
output.print(lastNameWithComma);
output.close()...
Hi!
I would like to know how to use a TextListener that would disable certain characters and check what the last entered character was to see which characters need to be disabled next.
Example: If the user is to enter a nubmer between 0 and 36, then the computer should disable all characters...
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.