You had it nearly there, you needed to convert the meters to millimetres by multiplying by 1000, save the result in a double variable.
Then set the text box value using setText() to the double...
Type: Posts; User: mds1256
You had it nearly there, you needed to convert the meters to millimetres by multiplying by 1000, save the result in a double variable.
Then set the text box value using setText() to the double...
Hi
I am learning RMI and have created a RMI client and Server which passes a custom object over to perform actions on it and then returns it back to the client.
Now, most of the tutorials I...
final ServerSocket socket = new ServerSocket(5000);
final Socket clientSocket = socket.accept();
can you not put this at the end so it will set the tray up first as I think the program blocks...
Hi
I have a client and server application that sets up RMI so the client can connect to the server for that to perform tasks when needed, however I want the server to also be able to send tasks to...
Thanks, looks like I could use this, just need to find a way so I can manipulate the application underneath whilst a semi-transparent jframe is on the whole screen. I tried the Robot as suggested and...
Hi
Looking for some advice, I want to be able to record the mouse movement coordinates and record them each time the mouse moves or clicks.
Now my idea is to run a java app in the background...
Because the service runs java as Local System and a normal user cannot end a task that has been started as another user so this prevents any normal user from ending the process.
ok, have had to create a silent service which then communicates with a GUI front end so if they close the gui the service is still running in the background.
I tried the service but I cannot get it to launch properly, it seems to be running in the background but it doesnt interact with desktop and I have also tried making the service run as the logged on...
Hi
I have created an app that needs to run in the backgroud all of the time (it monitors idle time of pc's for usage stats) but I want to stop this app/process from being closed using task...
Perfect! an excellent way to provide a simple solution to a complex problem :)
String test = "\"explorer.exe\",\"2012\",\"Console\",\"1\",\"30,832...
I have the following string (the parts between the double quotes is dynamic so not the same length or content each time) and I need to pick out who is logged on only, don't need any of the other...
Hi
Thanks for the reply, basically it is an app for reporting user application usage, e.g. what apps they open and when.
Now when running this as a network service it just reports that the...
Thank you, used SwingUtilities.invokeLater and it works perfect each time :)
Hi
I have a GUI that has a JList and a JListModel and then I have another thread which performs an action which updates the JListModel if it needs to.
Now the problem is that the JList is not...
Hi Greg
Thanks for the info, the data is not really critical, the password is for the database in which it is held so really it should have half decent encryption applied to the password.
I...
Hi
I am wanting to encrypt a string which contains a password, the encrypted string will be saved within an external .txt file so it would be best for it to be encrypted.
Has anyone used...
a constructor is called when you use the 'new' keyword.
Is is called when you create a Java object.
e.g.:
public MyClass()
Hi
I need to get the username of the current active logged on user.
I have tried
System.getProperty("user.name");
Yeah basically there is already a GUI open which is handling RMI requests from other clients.
Whilst this is running this other JFrame is to perform another task whilst still being able to process...
Hi
I am after some advice. I have a class that extends JFrame and also implements runnable.
Basically it is a frame which has a JLabel used for progress message and an OK JButton.
It also...
Hi
Learning a bit about RMI and most tutorials use a security manager. Although my implementation I haven't used one.
Should I be using one?
For Info, i have looked this up and it looks as though actions performed from RMI messages are ran in their own thread per client.
Hi
I am still learning Java and I am venturing into RMI.
As a test I have a RMI server (runs the RMI registry and a class which records detail in a JDBC connected mysql database). I also have...
Thanks will do.