DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 1 of 1

Hybrid View

  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 02:36 PM.

Similar Threads

  1. Replies: 1
    Last Post: 11-20-2006, 10:45 AM
  2. Javascript problem with visible DIVs
    By Wildcatbob in forum Web
    Replies: 13
    Last Post: 07-05-2006, 11:47 AM
  3. controlling the visible area of a textbox
    By fuzzy333 in forum .NET
    Replies: 0
    Last Post: 03-15-2003, 07:39 AM
  4. VB OCX not visible in VC++
    By Rich in forum VB Classic
    Replies: 0
    Last Post: 12-12-2001, 01:14 PM
  5. Visible columns in a JTextField
    By John Goluch in forum Java
    Replies: 0
    Last Post: 10-25-2001, 03:04 PM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links