Results 1 to 2 of 2
  1. #1
    amarjoshi is offline Member
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    Default jList border showing up even if setVisible is false

    Hi,

    I am having a jFrame class inside which I have populated jList and the border property set to no border or empty border. When I start the app, I am setting setVisible as false for jList. Still the jList border appears on jFrame panel.

    Waiting for answer.

    Thank you

    Regards,
    Amar

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    1. When referring to standard JDK classes, use the proper capitalization. Or are you actually using some third-party classes named jFrame and jList? which would also be in contravention of the Java convention for class names.

    2. To get better help sooner, post a SSCCE that clearly demonstrates your problem.
    SSCCE : Java Glossary

    3. Is the JList wrapped in a JScrollPane?

    db

Similar Threads

  1. .setVisible(false); not working... grr...
    By Roclemir in forum New To Java
    Replies: 8
    Last Post: 05-29-2010, 12:22 AM
  2. can't get setVisible(false) to work
    By alexander.s in forum AWT / Swing
    Replies: 0
    Last Post: 04-27-2010, 08:33 PM
  3. Showing JList in a JPanel
    By nico.hvi in forum AWT / Swing
    Replies: 0
    Last Post: 03-10-2010, 02:26 PM
  4. Replies: 4
    Last Post: 02-26-2009, 11:46 PM
  5. setVisible(true) does not work
    By Gajesh Tripathi in forum AWT / Swing
    Replies: 2
    Last Post: 10-27-2007, 07:32 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
  •