Results 1 to 9 of 9
Thread: getche() in java
- 03-21-2009, 04:49 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 14
- Rep Power
- 0
-
Don't know. For those of us who haven't used C in ages, what does getche() do?
- 03-21-2009, 05:06 PM #3
Member
- Join Date
- Dec 2008
- Posts
- 32
- Rep Power
- 0
one way is to use JCurses...maybe there are other alternatives too
- 03-21-2009, 05:12 PM #4
Member
- Join Date
- Mar 2009
- Posts
- 14
- Rep Power
- 0
The function getche() use for input stream function for reading 'single'
ex char ch = getche();
switch(ch)
{
case 1: ....
....
}
here this function will wait for a single. As we press any button it will jump to next instruction i.e, switch statement ( without pressing enter).
-
Ah, I see. Thanks for the clarification. As far as I know, there is no similar method in standard Java, that if you want this functionality in the console, you have to use outside libraries (perhaps JCurses as noted above) or create a GUI.
- 03-21-2009, 05:25 PM #6
Member
- Join Date
- Mar 2009
- Posts
- 14
- Rep Power
- 0
1) How can i use 'JCurses'. please give its syntax...
2) I am a CS student and i am learning java from "java 2 The Complete Reference". Which is the best book or tutorial on web for learning GUI
-
JCurses AFAIK is not part of core Java and to learn its syntax and download its code, you'd have to go to its site. Google can help you here.
The Sun Swing tutorials are where most of us learned GUI programming. You can find it here: Lesson: Using Swing Components (The Java™ Tutorials > Creating a GUI with JFC/Swing)2) I am a CS student and i am learning java from "java 2 The Complete Reference". Which is the best book or tutorial on web for learning GUI
- 03-22-2009, 04:36 AM #8
Member
- Join Date
- Mar 2009
- Posts
- 14
- Rep Power
- 0
What is the difference b/w Applet & JApplet?
I found these two file types during opening menu of new file in Netbeans.
Thank You...
-


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks