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

    Default from list awt to JList swing...

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

    i have this code in awt:
    Java Code:
    int selectedIndex = getCurrentSelectedIndex2();
    if(selectedIndex >= 0){
    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
    Madgaon, Goa, India
    Rep Power

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