[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Missing post? - see this post about spam for more information.
Messages posted by: McPete
Forum Index » Profile for McPete » Messages posted by McPete
Author Message
Thank you very much mrider!

Got that problem sorted... Now to just master sockets and I'm there
Hey,

I'm trying to create a login server, whereby a java client connects to a remove java application. On the server side, I am trying to use the accept() method to wait for the input. However, when I run this method, it seems to cause the program to lock up (The swing "On" button remains down, and the GUI goes blank if minimized and maximized).

Do I need to create a new Thread for this method? I looked up Swing and Threads on the sun site, and it said use with extreme caution, so I'm a bit dubious...

Here's the problem code...

Thanks,

Pete.


How would one go about doing this for a GUI class?

If I created a new instance of the GUI class, it creates another GUI (which is obviously no good).

Is it just that I have to re-arange the GUI class, or is there another way of doing this?

Cheers,

McPete.
Thanks guys.

Can't believe I left the "+" out

The connection is being dealt with in another class, so I think I can get away with it as it is...we shall see
Quick question this time

Could someone please tell me the correct syntax for making a Prepaired statement. I need to insert an int (i) into the sql, as well as sort by alphabetical order.

This is what I figured it should be:

Just wondering what IDE's you all use?

I started of just useing notepad, but was forced to change to BlueJ at uni.

McPete.
Thank you very very much!

It all seems to be working now
Hey all!

I have a problem that has been bugging me for that last 24hours. Although I know what I'm doing wrong, for the life of me I can't seem to work out the code to fix it.

The problem is that I keep getting "static content cannot be referenced from non static content".

I have worked out that this is because I have not initialized something (the class?).

When ever I try and call a method from 1 class to another, it gives me this error when compiling.

I've attached the code for what I've done. My apologies for the bad codeing

Any help and I would be eternally grateful!

McPete

GUI class:


Game Class (hardly started...):
 
Forum Index » Profile for McPete » Messages posted by McPete
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2012 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle