Hi all!!! I wrote a small database and I want the errors to be describen in a small independent window which requests the focus completly.There is an error message (in that error window)and a small "ok" button, and I want to disable focus to my application completly until that button is pressed( then the error window disappears).I thought about the requestFocus() method, but it doesn't disable access to the other windows.I hope I made a clear explain ;-) English isn't my native language. Thank's for help
Hi all !!! Why does this code : static double number; for ( int i=0;i<=200;i++) { number = i/100 ; System.out.println("number "+ number); } returns variable 'number' as integer ??? Things getting better when variable 'i' is changed to double. It is important in my program to count a double from two integers( cannot change this int's into doubles).
Hi everyone I need one frame to plot a graph and the second with TextAreA to print the graph's calculation values (the same application of course).How shall I do this? Shall I make two classes?
Hi all ;-) Situation: I'm writing an math application,and I need some fields in my GUI to enter the calculation params(lenght for example). The TextField with getText method (you have explained me grately) returns a String;I need the method read a double or int from the field to use in aplication's further calculations. How shall I do this? And what about sending the result back to my window? (setText or drawText use Strings too) Thank's very much.
How can I read the string entered in my window's TextField or TextArea after the Enter is pressed? I know how to use the KeyListener to Enter pressing detect,but I don't know how to read this text from my TextField.