Results 1 to 2 of 2
  1. #1
    deemu is offline Member
    Join Date
    Feb 2012
    Posts
    15
    Rep Power
    0

    Default Help Clarification of code

    while ((allLine = in.readLine()) != null) {
    allLine = allLine.trim();

    if(allLine.indexOf("=Lang=")!=-1&&allLine.indexOf("Set=0")==-1){
    JLabel j=new JLabel(allLine.substring(0,allLine.indexOf("=")));
    jp.add(j);
    if(allLine.indexOf("Set=1")!=-1){
    JCheckBox cb=new JCheckBox();
    jp.add(cb);
    cb.setSelected(true);
    bestinformedclient.channBox.add(cb);
    }
    else{
    JCheckBox cb=new JCheckBox();
    jp.add(cb);
    cb.setSelected(false);
    bestinformedclient.channBox.add(cb);
    }
    }

    }
    in.close();

    JScrollPane sp = new JScrollPane(jp);
    sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZO NTAL_SCROLLBAR_ALWAYS);
    sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL _SCROLLBAR_ALWAYS);

    content.add(sp);
    }

    }

    ************************************************** *************

    Can anyone tell detail about the codes and from this i want to make java tree......

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,918
    Rep Power
    16

    Default Re: Help Clarification of code

    You have started another thread about this, which has responses, so I'm locking this one. In future, don't double post the same question.

    Also cross + duplicate posted on JavaRanch.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. Clarification of FileOutputStream
    By rogi85 in forum New To Java
    Replies: 4
    Last Post: 08-03-2011, 12:02 PM
  2. Struts Clarification
    By vinothkumarrvk in forum Web Frameworks
    Replies: 0
    Last Post: 02-26-2010, 02:24 PM
  3. need clarification in this statement.
    By Unsub in forum New To Java
    Replies: 5
    Last Post: 02-26-2010, 01:16 PM
  4. HELP! need clarification
    By ptsofathrty in forum New To Java
    Replies: 1
    Last Post: 12-16-2008, 08:02 AM

Posting Permissions

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