|
Yep. Common mistake when starting java. In java only the primitive types are self contained, everything else is just a null or uninitialized reference without initialization.
|
|
|
|
|
Hopefully you could help me with this one, I've found the problem (Thanks to the breakpoints) My main created a thread1 and then thread1 created thread 2, both of which contain a while(true) (Then just sit and wait for input and output) but when thread1 creates thread2 it doesn't go past the line which creates thread2 which Isn't what I thought would happen... I thought Thread1 would create thread2 then proceeds to the loop for user input.
|
|
|
|
|
You are right that should happen.
|
|
|
|
|
I see no error but to call a implements Runnable I use the line,
(new Thread(new accept(br))).start(); if that helps
|
|
|
|
|
Not to be rude but maybe you should learn the basics first, correct threading is more or less an advanced topic. Actually the java tutorials put together by sun is exceptionally good: http://docs.oracle.com/javase/tutorial/[^]
There is a paragraph on that page with "Trails Covering the Basics" header, you should read through that carefully, you will find topics about threading in the "Essential Java Classes" part, but read it from the beginning to the end without skipping. After this basic tutorial you won't ask questions like this.
|
|
|
|
|
Any special features and tricks to Eclipse Debugger, I've hit an error while fusing it to the client. the server gets the connection but all input is just added to the JTextArea without being sent to the server even though it's told to send. I'd prefer to fix this one so I don't have to spam these forums.
|
|
|
|
|
Start using a good java IDE. Eclipse is one of the best free IDEs out there, choosing that you can only win. Download it and learn its basic features (how to set up a project and how to debug in it).
Advice regarding your program: Hook the input of your textbox and perform the "send text" action when the user presses enter in the textfield.
When sending the text it might be a better idea to clear the textfield instead of selecting its contents.
|
|
|
|
|
First of all you didn't set text in the JTextField and also you've not even enabled the user to write into the JTextField.
Because, setEditable(false); means the user cannot edit the text in the text field and also there was no text in the Textfield.
And also you do not need to create object for the class GUI in actionPerformed() because this method was written in the same class only. This means that you are performing action on the object 'g' which you've created.
You can directly access them, there is no need of creating the object.
|
|
|
|
|
Hi,
I need help to set up the SSL in Mutual Authentication.
Can any body help in this.
Regards,
Balu
Singapore
|
|
|
|
|
balarayala wrote: I need help You could start here[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thank you for your reply..
I have IIS Server and Linux Client. I am having some trouble in setup.
If you have any idea on mutual setup. can you help me.
|
|
|
|
|
balarayala wrote: If you have any idea on mutual setup. Sorry no, did you check the links I gave you, the third one down contains lots of good details.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I guess you downvoted me because I did not fix your 'problem'. Given the amount of information you have provided I don't think many people could answer your question.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Richard MacCutchan wrote: guess you downvoted me because I did not fix your 'problem'
Countered with a 5 because from what I saw with google, it would point him in a good direction
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Thanks. It's amazing how many questioners use downvotes rather than actually doing some work for themselves.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
You provided good information to me.
Richard dont mistaken me, by mistake click that voting because i am new to this blog
|
|
|
|
|
In that case I apologise. For future reference, when voting on posts, 1 means bad and 5 means good. If you are not sure which then you can just leave a comment.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
You should not apologize. i need to say apology. mistake is mine. can we edit that rating?
|
|
|
|
|
You can just click on one of the other numbers in the message to change it, but really it is not that important. Getting you to understand how the forum works is more so.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hello,
I want to write a formula in excel through java but when I do the following a formula is displayed in the cell without displaying the results.The error with the formula is also seen.'A value used in the formula is of wrong data type'
but the above error disappears if I reenter the same formula for the same data.I am using the following code to do with jxl libraries.
StringBuffer buf = new StringBuffer();
buf.append("MDETERM(A1:D4)");
Formula f = new Formula(0, 11, buf.toString());
Pritha
|
|
|
|
|
Me thinks the formula is wrong, try:
buf.append("=MDETERM(A1:D4)");
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
thanks for ur reply
I tried that but it doesnt work and surprisingly
buf.append("SUM(A1:a4)");
works fine then why
buf.append("MDETERM(A1:D4)"); should have a problem
|
|
|
|
|
can i have a javascript code to convert eglish text to hindi text in offline mode
|
|
|
|
|
Most unlikely; but you could investigate how to use Google translate[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
we want to create File transfer Instant messenger in java what are the core areas in java we should know to build it?
|
|
|
|