Trouble Displaying Buttons in aGUI

Hello there,

can anyone take a look at this very short piece of code and tell me why my JButtons are refusing to show up!

/**

* Validate.java

*

*

* Created: Mon Apr 24 13:02:50 2006

*

* @author <a href="mailto:Samuel@EL-DIABLO"></a>

* @version

*/

import java.text.*;

import java.awt.font.*;

import javax.swing.JFrame;

import java.lang.*;

import java.awt.*;

import javax.swing.JRadioButton;

import javax.swing.JButton;

import javax.swing.JSlider;

import javax.swing.*;

import java.awt.event.*;

import java.util.*;

import java.awt.Image;

import java.awt.Toolkit;

import java.awt.Event;

import java.lang.Object;

import java.lang.Object;

import javax.swing.border.*;

import java.io.*;

publicclass Validateextends JFrameimplements ActionListener{

Container contentPane;

private JPanel usersPanel, opponentsPanel, statsPanel, bottomPanel;

private JButton deal,call,bet,raise,fold;

private String pocketrank ="";

private BettingAid usersbettingaid;

private BettingAid opponentsbettingaid;

private PocketHand usershand;

private PocketHand opponentshand;

private CommunityHand ch;

private PokerHand full;

private EvaluateHand evaluateusers;

private EvaluateHand evaluateopponents;

public Validate(){

contentPane = getContentPane();

setSize(306,382);

setTitle("Validate The Mother ...");

setResizable(false);

setVisible(true);

setDefaultCloseOperation(EXIT_ON_CLOSE);

usersPanel =new JPanel();

usersPanel.setBackground(Color.WHITE);

usersPanel.setBorder(BorderFactory.createTitledBorder("Users Hand"));

usersPanel.setBounds(new Rectangle (0,0,150,150));

opponentsPanel =new JPanel();

opponentsPanel.setBackground(Color.WHITE);

opponentsPanel.setBorder(BorderFactory.createTitledBorder("Opponents Hand"));

opponentsPanel.setBounds(new Rectangle (0,150,150,150));

statsPanel =new JPanel();

statsPanel.setBackground(Color.WHITE);

statsPanel.setBorder(BorderFactory.createTitledBorder("Game Stats"));

statsPanel.setBounds(new Rectangle (150,0,150,300));

deal =new JButton("deal");

call =new JButton("call");

bet =new JButton("bet");

raise =new JButton("raise");

fold =new JButton("fold");

bottomPanel =new JPanel(new GridLayout(1,0));

bottomPanel.setBackground(Color.WHITE);

bottomPanel.setBorder(BorderFactory.createTitledBorder("Play Game"));

bottomPanel.setBounds(new Rectangle (0,300,300,50));

bottomPanel.add(deal);

bottomPanel.add(call);

bottomPanel.add(bet);

bottomPanel.add(raise);

bottomPanel.add(fold);

//validate();

contentPane.add(bottomPanel);

contentPane.add(usersPanel);

contentPane.add(opponentsPanel);

contentPane.add(statsPanel);

repaint();

//pack();

}

publicvoid actionPerformed(ActionEvent e){

}

publicvoid paint(Graphics g){

super.paint(g);

}

publicstaticvoid main(String [] args){

Validate v =new Validate();

}

}// Validate

Any help much appreciated.

[5930 byte] By [some1stolemyusernamea] at [2007-10-2 18:23:38]
# 1
Please don't cross-post.Continued here: http://forum.java.sun.com/thread.jspa?messageID=4202637
prometheuzza at 2007-7-13 19:44:30 > top of Java-index,Other Topics,Algorithms...
# 2
sorry, was ignorant of the format have posted in the correct forum
some1stolemyusernamea at 2007-7-13 19:44:30 > top of Java-index,Other Topics,Algorithms...
# 3
> sorry, was ignorant of the format have posted in the> correct forumNo problem. I've answered you over there.
prometheuzza at 2007-7-13 19:44:30 > top of Java-index,Other Topics,Algorithms...