JButton functionality not working on MAC.

Discussion in 'Mac Apps and Mac App Store' started by Sharadkharya, Aug 25, 2008.

  1. Sharadkharya macrumors newbie

    Aug 25, 2008
    My Swing application UI consists of top, central & bottom frame.

    Central frame is displaying data dynamically from database in table format (Initially it is displaying list of folders and these folders containing the files.)

    Bottom frame consist of open & cancel button.

    Ideally as per application requirement:-
    Case 1 - If i select any folder and click on open button, then it should display the list of files that folder contains.
    Case 2 - If I select any file and click on open button then that file should be open on Adobe illustrator.

    I am developing this application for windows & MAC

    Case 1 & 2 are working fine on windows but on MAC case 1 is failing.
    I have to double click on selected folder to navigate inside.

    Please let me know the reason and possible solution to resolve this issue.

    Thanks in advance
  2. wrldwzrd89 macrumors G5


    Jun 6, 2003
    Solon, OH
    Are you using a custom dialog for this purpose? If you are, make sure your event handler code is intercepting the click on the folder icon as intended. If you're using a standard Open dialog, I'm not sure why it's not acting right.

Share This Page