1,027 Posted Topics

Member Avatar for srthomso

if(reply == "JAVA"){ make this code as : if(reply.equals("JAVA"); now it'll work properly. Strings are not compared by ==.

Member Avatar for srthomso
0
138
Member Avatar for nanosani

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 …

Member Avatar for nanosani
0
113
Member Avatar for steventhms

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 …

Member Avatar for scordle725
1
104
Member Avatar for smartdetect

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.

Member Avatar for nanosani
0
118
Member Avatar for nanosani

What if I dont get reply to my questions ..... I didnt get any replies of any of my threads yet :!: :!: :!: :mrgreen:

Member Avatar for nanosani
0
49
Member Avatar for smartdetect
Member Avatar for bobinson

It'll be logcally constructed .... you have to design an algorithm ..... checking three things ..... 1 - Teacher Conflict 2 - subjject Conflict 3 - Time Conflict.

Member Avatar for nanosani
0
89
Member Avatar for Bill T

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 …

Member Avatar for nanosani
0
100
Member Avatar for arijit

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 ?

Member Avatar for nanosani
0
137
Member Avatar for timhysniu

Yes, surely this site is worth doing things like you wish to do .... I love the java section ...

Member Avatar for nanosani
0
142
Member Avatar for Elektro

mail me at [email]nanosani@yahoo.co.uk[/email] ... I'll give you my game Yacht ... a purely button handling game.

Member Avatar for nanosani
0
161
Member Avatar for rishiraj_bayerd

see JDBC reference ... it is related to connecting java programs to a database.

Member Avatar for nanosani
0
81
Member Avatar for aperez
Member Avatar for pixiegirl

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.

Member Avatar for pixiegirl
0
173
Member Avatar for shantuli

what do you mean by menu based ??? ... is it the file menu you are talking about ??

Member Avatar for shantuli
0
136
Member Avatar for nanosani

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.

Member Avatar for rickste_r
0
133
Member Avatar for shantuli

/** * <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 …

Member Avatar for rickste_r
0
848
Member Avatar for shantuli

String s; s.charAt(5); s.indexOf('K'); String t = s.toUpperCase(); s.replace(h,b);

Member Avatar for rickste_r
0
121
Member Avatar for freesoft_2000

no, if you wanna use the awt components then you have to import the awt only ... not swing

Member Avatar for nanosani
0
96
Member Avatar for freesoft_2000
Member Avatar for myloginh10
Member Avatar for jim1
Member Avatar for teritori

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:

Member Avatar for nanosani
0
66
Member Avatar for nanosani

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

Member Avatar for Pogo
0
127
Member Avatar for teritori
Member Avatar for teritori
0
105
Member Avatar for Beginner_01

start by building the gui .... and then you'll be able to extract your imagination of the methods that must be used.

Member Avatar for nanosani
0
68
Member Avatar for freesoft_2000

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();

Member Avatar for nanosani
0
89

The End.