Search:

Type: Posts; User: mds1256

Page 1 of 3 1 2 3

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    1,059

    [SOLVED] Re: Stuck in converting meters in milimeters

    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...
  2. Replies
    0
    Views
    933

    RMI Security Manager?

    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...
  3. Replies
    25
    Views
    3,581

    [SOLVED] Re: Check if system tray already exists

    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...
  4. Thread: Two Way RMI

    by mds1256
    Replies
    0
    Views
    900

    Two Way RMI

    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...
  5. Replies
    2
    Views
    1,395

    [SOLVED] Re: Track Mouse Movements

    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...
  6. Replies
    2
    Views
    1,395

    [SOLVED] Track Mouse Movements

    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...
  7. [SOLVED] Re: Wanting to prevent my app from being closed using Task Manager

    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.
  8. [SOLVED] Re: Wanting to prevent my app from being closed using Task Manager

    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.
  9. [SOLVED] Re: Wanting to prevent my app from being closed using Task Manager

    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...
  10. [SOLVED] Wanting to prevent my app from being closed using Task Manager

    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...
  11. Replies
    2
    Views
    1,366

    [SOLVED] Re: Help capture part of a string please :)

    Perfect! an excellent way to provide a simple solution to a complex problem :)



    String test = "\"explorer.exe\",\"2012\",\"Console\",\"1\",\"30,832...
  12. Replies
    2
    Views
    1,366

    [SOLVED] Help capture part of a string please :)

    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...
  13. Re: Get current logged on username - Microsoft Windows

    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...
  14. Replies
    2
    Views
    1,630

    [SOLVED] Re: Updating a Jlist from another thread problem

    Thank you, used SwingUtilities.invokeLater and it works perfect each time :)
  15. Replies
    2
    Views
    1,630

    [SOLVED] Updating a Jlist from another thread problem

    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...
  16. Replies
    3
    Views
    1,593

    Re: Simple string encrypt and decrypt

    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...
  17. Replies
    3
    Views
    1,593

    Simple string encrypt and decrypt

    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...
  18. Thread: Java

    by mds1256
    Replies
    3
    Views
    1,082

    Re: Java

    a constructor is called when you use the 'new' keyword.

    Is is called when you create a Java object.

    e.g.:




    public MyClass()
  19. Get current logged on username - Microsoft Windows

    Hi

    I need to get the username of the current active logged on user.

    I have tried



    System.getProperty("user.name");
  20. Re: Class Extends JFrame and implements Runnable - Where to put the code

    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...
  21. Class Extends JFrame and implements Runnable - Where to put the code

    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...
  22. Replies
    0
    Views
    971

    RMI Security Manager - Best practices

    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?
  23. Replies
    1
    Views
    4,554

    [SOLVED] Re: Does RMI require separate threads

    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.
  24. Replies
    1
    Views
    4,554

    [SOLVED] Does RMI require separate threads

    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...
  25. Replies
    2
    Views
    1,546

    [SOLVED] Re: GUI - Should it be in its own thread?

    Thanks will do.
Results 1 to 25 of 57
Page 1 of 3 1 2 3