Gui on server
Gui on server
hello all I have a question, how to open a GUI when server launch?
Re: Gui on server
In theory you could create a JFrame in your Extension's init() method and add all of the controls in there... If you do that make sure to release all the UI related resources in the destroy() method.
Re: Gui on server
look my code:
http://pastebin.com/VEfq5s1q
http://pastebin.com/3HmEptCZ
but when I launch the extension with eclipse I have an error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadablePartial
at com.smartfoxserver.v2.Main.main(Main.java:21)
Caused by: java.lang.ClassNotFoundException: org.joda.time.ReadablePartial
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
http://pastebin.com/VEfq5s1q
http://pastebin.com/3HmEptCZ
but when I launch the extension with eclipse I have an error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/ReadablePartial
at com.smartfoxserver.v2.Main.main(Main.java:21)
Caused by: java.lang.ClassNotFoundException: org.joda.time.ReadablePartial
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
Re: Gui on server
Launching the Extension with Eclipse?
No, you won't be able to do that unless you run the entire server under Eclipse, which I would not recommend.
All you need to do is deploying your Extension class in SmartFoxServer as illustrated in the docs or in this YouTube video:
https://www.youtube.com/watch?v=nKGxhwJ ... 94B9D7C3E5
No, you won't be able to do that unless you run the entire server under Eclipse, which I would not recommend.
All you need to do is deploying your Extension class in SmartFoxServer as illustrated in the docs or in this YouTube video:
https://www.youtube.com/watch?v=nKGxhwJ ... 94B9D7C3E5
Re: Gui on server
I know how to use extension , so for test my GUI I create another project for my test
But when I upload my Ext on smartfox, the gui don't open on load, how to process for open this on load?
But when I upload my Ext on smartfox, the gui don't open on load, how to process for open this on load?
Re: Gui on server
If the extension starts up correctly, with no errors, the window will open.
Are you sure you have no errors on the server side?
Are you sure you have no errors on the server side?
Re: Gui on server
it's work thank, but how to process to make a persistant windows?
Re: Gui on server
a GUI which can't be close
EDIT: I found the method: this.setResizable(false);
EDIT2: I have another problem: My server can't receive extensionRequest from my client
EDIT: I found the method: this.setResizable(false);
EDIT2: I have another problem: My server can't receive extensionRequest from my client
Who is online
Users browsing this forum: No registered users and 104 guests