Results 1 to 6 of 6
  1. #1
    ContoNick is offline Member
    Join Date
    Dec 2011
    Location
    Croatia,Zagreb
    Posts
    24
    Rep Power
    0

    Default Detecting second application action's

    Hi to all.
    Im kind'a new in java.
    Im making Swing app wich need's to detected:
    1. when other application stop's working
    2. security breaks in other application

    Can u please give me some advice or point me in right direction where to look/search ?

    Thanks CN

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Detecting second application action's

    You're not going to be able to do this with java. Java is isolated in a virtual machine, and does not have access to OS processes directly.

  3. #3
    ContoNick is offline Member
    Join Date
    Dec 2011
    Location
    Croatia,Zagreb
    Posts
    24
    Rep Power
    0

    Default Re: Detecting second application action's

    Thanks for your reply.
    I found way how to detect if application is running or not.

    But now i have another problem i dont wanna make new thread for it.

    infoTable = new JTable(data,columnNames);
    infoTable.setSelectionMode(ListSelectionModel.SING LE_SELECTION);

    and i want make that if use click's or row, let's say row 2, that row 2 get selected but user cant edit it

    i know that there is infoTable.setEnabled(true,false); but when i make that i cant select row ( i just need row selection).

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Detecting second application action's

    I found way how to detect if application is running or not.
    Yes, you can pull this info from the OS and find PIDs and such, but that will not tell you if the program is hanging or if there are security breaks on the app.

    But now i have another problem i dont wanna make new thread for it.
    Yeah, don't do that. It is very confusing for people trying to search the forum. Please only one topic per thread.

  5. #5
    ContoNick is offline Member
    Join Date
    Dec 2011
    Location
    Croatia,Zagreb
    Posts
    24
    Rep Power
    0

    Default Re: Detecting second application action's

    Thanks for reply.
    do u have any idea how would u detected security breaks. ? any idea ?
    sory ill make new topic :D np -.-'

  6. #6
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Detecting second application action's

    do u have any idea how would u detected security breaks. ? any idea ?
    No, like I said, I don't think java will help you there. You would have to tie into the windows APIs somehow, and I don't have any idea what kind of restrictions are involved with that. Good luck though! :D

Similar Threads

  1. Detecting Capitalization
    By danthegreat in forum New To Java
    Replies: 10
    Last Post: 09-09-2011, 10:46 PM
  2. Replies: 1
    Last Post: 06-30-2011, 10:49 AM
  3. Detecting if string or int
    By Alk in forum New To Java
    Replies: 6
    Last Post: 05-15-2011, 12:26 AM
  4. Replies: 3
    Last Post: 08-19-2010, 09:27 AM
  5. Replies: 0
    Last Post: 08-10-2009, 02:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •