1,027 Posted Topics
Re: if(reply == "JAVA"){ make this code as : if(reply.equals("JAVA"); now it'll work properly. Strings are not compared by ==. | |
I thought I'd better convey what I am thinking right now .... I think the site should have ... in addition to tutorials, snippets and book reviews .... a solving challenge type of a thing ... in which Questions(whole problems ... not just code help) should be posted to be … | |
Re: static final int ROW_SIZE = 10; static final int COL_SIZE; You are declaring ROW_SIZE AND COL_SIZE as final .... when a variable is declared as final ... its value cant be changed at any stage of the program. And you are changing the values of both .. so it wont … | |
Re: The easiest way to interact with the hardware using windows is using the windows APIs. Read about JNI (which will be used to implement the winAPI) ... and read about winAPI in msdn library. | |
What if I dont get reply to my questions ..... I didnt get any replies of any of my threads yet :!: :!: :!: :mrgreen: | |
Re: which specific hardware do you want to know .... | |
Re: It'll be logcally constructed .... you have to design an algorithm ..... checking three things ..... 1 - Teacher Conflict 2 - subjject Conflict 3 - Time Conflict. | |
Re: if you are using swing components ....then try using this ... Timer t = new Timer(ActionListener, delay); and if you use the java.util.Timer class ... then try this ... Timer t = new Timer(); a rough Algo for your program INITIALIZE THE TIMER FOR LOOP DECREASING VALUES UNTIL ZERO DO … | |
Re: Can you please specify your project in more detail .... and to what level do you want to go in your project. And what have you tried yet ? | |
Re: Yes, surely this site is worth doing things like you wish to do .... I love the java section ... | |
Re: mail me at [email]nanosani@yahoo.co.uk[/email] ... I'll give you my game Yacht ... a purely button handling game. | |
Re: see JDBC reference ... it is related to connecting java programs to a database. | |
Re: use javac Welcome1.java and then use java Welcome1 | |
Re: just reinstall winrar and try uninstalling it then .... I think you just deleted its uninstall log file by chance ... and its staying there now without uninstalling support. | |
Re: what do you mean by menu based ??? ... is it the file menu you are talking about ?? | |
If I retrieve memory from freeMemory() method .... which memory is returned ... the free ram or the memory available to jvm. same is the question for totalMemory(). Thanks. | |
Re: /** * <p>Title: Dice Roller</p> * <p>Description: A dice class representing a dice object</p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: NanoSani</p> * @author Usman Sani * @version 1.0 */ public class Dice { public int roll(){ int result; result = (int)(Math.random()*6)+1; return result; } public int total(int a, int … | |
Re: String s; s.charAt(5); s.indexOf('K'); String t = s.toUpperCase(); s.replace(h,b); | |
Re: no, if you wanna use the awt components then you have to import the awt only ... not swing | |
| |
Re: explain more ... what layout are you using ?? | |
Re: If you mean an external file ... i.e, an exe file or like that .... then you should try [CODE]Process p = Runtime.getRuntime().exec("c:\myprogram.exe");[/CODE] :mrgreen: | |
I am creating a notepad application .... and I want to change the font of the selected text in the JEditorPane .... but when I change the font now ... it changes the font of the whole text .... same is the problem with background and foreground colors.... :o | |
Re: Just direct the keyboard input to a string and destroy the string .. | |
Re: start by building the gui .... and then you'll be able to extract your imagination of the methods that must be used. | |
Re: this is the code for opening file dialog ... save file dialog is implemented similarly with jFileChooser private JFileChooser jFileChooser1 = new JFileChooser(); if (JFileChooser.APPROVE_OPTION == jFileChooser1.showOpenDialog(this)) { // Call openFile to attempt to load the text from file into TextArea openFile(jFileChooser1.getSelectedFile().getPath()); } this.repaint(); |
The End.