Results 1 to 2 of 2
  1. #1
    paul78 is offline Member
    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0

    Default from list awt to JList swing...

    hi i have create program in awt...now i want create in swing...i have one problem

    i have this code in awt:
    Java Code:
    int selectedIndex = getCurrentSelectedIndex2();
    if(selectedIndex >= 0){
    playerCTL.stop();
    String selectedSong = getPlayList2().getItem(selectedIndex);
    SongVO sv= (SongVO)songMap.get(selectedSong);
    i have problem in:

    String selectedSong = getPlayList2().getItem(selectedIndex);

    how to write in swing????

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default Re: from list awt to JList swing...

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 05-11-2012, 02:23 PM
  2. Replies: 4
    Last Post: 01-10-2012, 01:05 PM
  3. performance problems with JList/default list model
    By prescott in forum AWT / Swing
    Replies: 3
    Last Post: 11-16-2011, 04:06 AM
  4. Link one JList to another JList
    By mib1bee in forum Advanced Java
    Replies: 1
    Last Post: 12-30-2010, 06:35 PM
  5. Help with java.swing.Jlist
    By mitsukai in forum AWT / Swing
    Replies: 2
    Last Post: 04-23-2009, 01:12 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
  •