-
Card Layout, what is wrong?
I've complied my applet file sucessfully but when I hit any button, a long list of errors appear. Can anyone point me in the right direction?
(Sorry, don't know how to do a code box on this board)
//Input Card
JLabel labelInput = new JLabel ("Input", SwingConstants.CENTER);
JPanel inputCard = new JPanel();
inputCard.add (labelInput);
deck.add (inputCard, labelInput.getText());
...other cards declared like this too...
//add listeners
input.addActionListener (this);
admit.addActionListener (this);
display.addActionListener (this);
public void actionPerformed (ActionEvent event)
{
//show cards
if (event.getSource() == input)
cardManager.first(deck);
else if (event.getSource ()== admit)
cardManager.next(deck);
else if (event.getSource()==display);
cardManager.last(deck);
Similar Threads
-
By thomastl in forum Java
Replies: 1
Last Post: 03-29-2009, 11:49 AM
-
By thomastl in forum Java
Replies: 4
Last Post: 01-22-2007, 02:45 AM
-
Replies: 0
Last Post: 04-25-2001, 09:29 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
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|