Can't get displayPanel visible


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: Can't get displayPanel visible

  1. #1
    Join Date
    Jan 2007
    Posts
    1

    Question Can't get displayPanel visible

    I can't get the displayPanel visible. The only thing I see is the white colour. 22 candles has to be visible, but it didn't show up

    The code I have now is:
    Code:
    	public void init() {
    		// maak borderlayout aan
    		this.setLayout( new BorderLayout() );
    		// maak label op top
    		labels.add(messagesLabel);
    		this.add(labels, BorderLayout.NORTH);
    		labels.setBorder( BorderFactory.createEtchedBorder() );
    		// maak centrale punt
    		this.add(displayPanel, BorderLayout.CENTER);
    		// maak buttons aan bottom
    		buttons.setBorder( BorderFactory.createEtchedBorder() );
    			buttons.add(startButton);
    			buttons.add(eenButton);
    			buttons.add(tweeButton);
    			buttons.add(drieButton);
    			buttons.add(vierButton);
    			buttons.add(sluitButton);
    		this.add(buttons, BorderLayout.SOUTH);
    
    		startButton.addActionListener(this);
    		eenButton.addActionListener(this);
    		tweeButton.addActionListener(this);
    		drieButton.addActionListener(this);
    		vierButton.addActionListener(this);
    		sluitButton.addActionListener(this);
        }
    Can anyone help me out with this, please?

    *edit*
    I figured it out, it was a very stupid code I put into it
    Last edited by dragonlau; 01-14-2007 at 03:36 PM.

Similar Threads

  1. Replies: 1
    Last Post: 11-20-2006, 11:45 AM
  2. Javascript problem with visible DIVs
    By Wildcatbob in forum Web
    Replies: 13
    Last Post: 07-05-2006, 12:47 PM
  3. controlling the visible area of a textbox
    By fuzzy333 in forum .NET
    Replies: 0
    Last Post: 03-15-2003, 08:39 AM
  4. VB OCX not visible in VC++
    By Rich in forum VB Classic
    Replies: 0
    Last Post: 12-12-2001, 02:14 PM
  5. Visible columns in a JTextField
    By John Goluch in forum Java
    Replies: 0
    Last Post: 10-25-2001, 04:04 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center