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

    Default jList border showing up even if setVisible is false


    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


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


    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?


Similar Threads

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