All Packages Class Hierarchy This Package Previous Next Index
Class com.lotspiech.poker.applet.VideoPokerApplet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----javax.swing.JApplet
|
+----com.lotspiech.poker.applet.VideoPokerApplet
- public class VideoPokerApplet
- extends JApplet
- implements ActionListener, ItemListener
This class runs the GUI for Video Poker.
Copyright 2001, 2002 by Jeffrey B. Lotspiech. This program is open source;
it is licensed under the Common Public License Version 0.5.
- Author:
- Jeffrey B. Lotspiech
-
cardback
-
-
cardPanels
-
-
club
-
-
COPYRIGHT
-
-
credits
-
-
dealer
-
-
deck
-
-
deferredStatus
-
-
diamond
-
-
handCards
-
-
heart
-
-
ivjCardPanel1
-
-
ivjCardPanel2
-
-
ivjCardPanel3
-
-
ivjCardPanel4
-
-
ivjCardPanel5
-
-
ivjCreditLine
-
-
ivjDealButton
-
-
ivjHand
-
-
ivjHandField
-
-
ivjJAppletContentPane
-
-
ivjJLabel1
-
-
ivjJScrollPane1
-
-
ivjMachines
-
-
ivjMachinesBasicComboBoxRenderer
-
-
ivjManualDealButton
-
-
ivjPayoff
-
-
ivjPayoffDefaultTableCellRenderer
-
-
ivjScrollPaneTable
-
-
ivjScrollPaneTableDefaultTableColumnModel
-
-
ivjStatusLine
-
-
machines
-
-
spade
-
-
won
-
-
VideoPokerApplet()
-
-
actionPerformed(ActionEvent)
- Method to handle events for the ActionListener interface.
-
connEtoC1(ItemEvent)
- connEtoC1: (Machines.item.itemStateChanged(java.awt.event.ItemEvent) --> PokerApplet.machines_ItemStateChanged(Ljava.awt.event.ItemEvent;)V)
-
connEtoC2(ActionEvent)
- connEtoC2: (DealButton.action.actionPerformed(java.awt.event.ActionEvent) --> PokerApplet.dealButton_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
-
connEtoC4()
- connEtoC4: (ManualDealButton.action.
-
connPtoP1SetTarget()
- connPtoP1SetTarget: (JScrollPane1.background <--> ScrollPaneTable.background)
-
connPtoP2SetTarget()
- connPtoP2SetTarget: (PokerApplet.background <--> JAppletContentPane.background)
-
dealButton_ActionPerformed(ActionEvent)
- Comment
-
executeButton_ActionPerformed(ActionEvent)
- This is called after pressing the Manual Deal button.
-
getAppletInfo()
- Gets the applet information.
-
getCardPanel1()
- Return the CardComponent1 property value.
-
getCardPanel2()
- Return the CardComponent2 property value.
-
getCardPanel3()
- Return the CardComponent3 property value.
-
getCardPanel4()
- Return the CardComponent4 property value.
-
getCardPanel5()
- Return the CardComponent5 property value.
-
getCreditLine()
- Return the CreditLine property value.
-
getDealButton()
- Return the DealButton property value.
-
getHand()
- Return the TableColumn1 property value.
-
getHandField()
- Return the JTextField1 property value.
-
getJAppletContentPane()
- Return the JAppletContentPane property value.
-
getJLabel1()
- Return the JLabel1 property value.
-
getJScrollPane1()
- Return the JScrollPane1 property value.
-
getMachines()
- Return the Machines property value.
-
getMachinesBasicComboBoxRenderer()
- Return the MachinesBasicComboBoxRenderer property value.
-
getManualDealButton()
- Return the ManualDealButton property value.
-
getPayoff()
- Return the TableColumn2 property value.
-
getPayoffDefaultTableCellRenderer()
- Return the PayoffDefaultTableCellRenderer property value.
-
getResourceAsBytes(String)
- Get a resource out of the jar file.
-
getResourceAsStream(String)
- Get a resource out of the jar file.
-
getScrollPaneTable()
- Return the ScrollPaneTable property value.
-
getScrollPaneTableDefaultTableColumnModel()
- Return the ScrollPaneTableDefaultTableColumnModel property value.
-
getStatusLine()
- Return the StatusLine property value.
-
handleException(Throwable)
- Called whenever the part throws an exception.
-
init()
- Handle the Applet init method.
-
initConnections()
- Initializes connections
-
itemStateChanged(ItemEvent)
- Method to handle events for the ItemListener interface.
-
machines_ItemStateChanged(ItemEvent)
- Comment
-
main(String[])
- main entrypoint - starts the part when it is run as an application
-
pokerApplet_Init()
- Comment
-
showCredits()
- This method was created in VisualAge.
COPYRIGHT
private static final String COPYRIGHT
dealer
private DealerThread dealer
machines
private Machines machines
credits
private int credits
deferredStatus
private String deferredStatus
won
private boolean won
ivjJAppletContentPane
private JPanel ivjJAppletContentPane
ivjJLabel1
private JLabel ivjJLabel1
ivjJScrollPane1
private JScrollPane ivjJScrollPane1
ivjScrollPaneTable
private JTable ivjScrollPaneTable
ivjMachines
private JComboBox ivjMachines
ivjHandField
private JTextField ivjHandField
ivjScrollPaneTableDefaultTableColumnModel
private DefaultTableColumnModel ivjScrollPaneTableDefaultTableColumnModel
ivjStatusLine
private JLabel ivjStatusLine
ivjMachinesBasicComboBoxRenderer
private BasicComboBoxRenderer ivjMachinesBasicComboBoxRenderer
ivjHand
private TableColumn ivjHand
ivjPayoff
private TableColumn ivjPayoff
ivjPayoffDefaultTableCellRenderer
private DefaultTableCellRenderer ivjPayoffDefaultTableCellRenderer
ivjDealButton
private JButton ivjDealButton
handCards
private Card handCards[]
cardPanels
private CardPanel cardPanels[]
deck
Deck deck
ivjCardPanel1
private CardPanel ivjCardPanel1
ivjCardPanel2
private CardPanel ivjCardPanel2
ivjCardPanel3
private CardPanel ivjCardPanel3
ivjCardPanel4
private CardPanel ivjCardPanel4
ivjCardPanel5
private CardPanel ivjCardPanel5
ivjCreditLine
private JLabel ivjCreditLine
ivjManualDealButton
private JButton ivjManualDealButton
heart
public static Image heart
spade
public static Image spade
diamond
public static Image diamond
club
public static Image club
cardback
public static Image cardback
VideoPokerApplet
public VideoPokerApplet()
actionPerformed
public void actionPerformed(ActionEvent e)
- Method to handle events for the ActionListener interface.
- Parameters:
- e - java.awt.event.ActionEvent
connEtoC1
private void connEtoC1(ItemEvent arg1)
- connEtoC1: (Machines.item.itemStateChanged(java.awt.event.ItemEvent) --> PokerApplet.machines_ItemStateChanged(Ljava.awt.event.ItemEvent;)V)
- Parameters:
- arg1 - java.awt.event.ItemEvent
connEtoC2
private void connEtoC2(ActionEvent arg1)
- connEtoC2: (DealButton.action.actionPerformed(java.awt.event.ActionEvent) --> PokerApplet.dealButton_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
- Parameters:
- arg1 - java.awt.event.ActionEvent
connEtoC4
private void connEtoC4()
- connEtoC4: (ManualDealButton.action. --> VideoPokerApplet.executeButton_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
connPtoP1SetTarget
private void connPtoP1SetTarget()
- connPtoP1SetTarget: (JScrollPane1.background <--> ScrollPaneTable.background)
connPtoP2SetTarget
private void connPtoP2SetTarget()
- connPtoP2SetTarget: (PokerApplet.background <--> JAppletContentPane.background)
getResourceAsStream
public static InputStream getResourceAsStream(String name)
- Get a resource out of the jar file. We are using getResourceAsStream here
instead of GetResource, which would be easier, to avoid a Netscape 4.x limitation.
getResourceAsBytes
public static byte[] getResourceAsBytes(String name)
- Get a resource out of the jar file.
dealButton_ActionPerformed
public void dealButton_ActionPerformed(ActionEvent actionEvent)
- Comment
executeButton_ActionPerformed
public void executeButton_ActionPerformed(ActionEvent actionEvent)
- This is called after pressing the Manual Deal button.
getAppletInfo
public String getAppletInfo()
- Gets the applet information.
- Returns:
- java.lang.String
- Overrides:
- getAppletInfo in class Applet
getCardPanel1
private CardPanel getCardPanel1()
- Return the CardComponent1 property value.
- Returns:
- com.lotspiech.poker.CardPanel
getCardPanel2
private CardPanel getCardPanel2()
- Return the CardComponent2 property value.
- Returns:
- com.lotspiech.poker.CardPanel
getCardPanel3
private CardPanel getCardPanel3()
- Return the CardComponent3 property value.
- Returns:
- com.lotspiech.poker.CardPanel
getCardPanel4
private CardPanel getCardPanel4()
- Return the CardComponent4 property value.
- Returns:
- com.lotspiech.poker.CardPanel
getCardPanel5
private CardPanel getCardPanel5()
- Return the CardComponent5 property value.
- Returns:
- com.lotspiech.poker.CardPanel
getCreditLine
private JLabel getCreditLine()
- Return the CreditLine property value.
- Returns:
- javax.swing.JLabel
getDealButton
private JButton getDealButton()
- Return the DealButton property value.
- Returns:
- javax.swing.JButton
getHand
private TableColumn getHand()
- Return the TableColumn1 property value.
- Returns:
- javax.swing.table.TableColumn
getHandField
private JTextField getHandField()
- Return the JTextField1 property value.
- Returns:
- javax.swing.JTextField
getJAppletContentPane
private JPanel getJAppletContentPane()
- Return the JAppletContentPane property value.
- Returns:
- javax.swing.JPanel
getJLabel1
private JLabel getJLabel1()
- Return the JLabel1 property value.
- Returns:
- javax.swing.JLabel
getJScrollPane1
private JScrollPane getJScrollPane1()
- Return the JScrollPane1 property value.
- Returns:
- javax.swing.JScrollPane
getMachines
private JComboBox getMachines()
- Return the Machines property value.
- Returns:
- javax.swing.JComboBox
getMachinesBasicComboBoxRenderer
private BasicComboBoxRenderer getMachinesBasicComboBoxRenderer()
- Return the MachinesBasicComboBoxRenderer property value.
- Returns:
- javax.swing.plaf.basic.BasicComboBoxRenderer
getManualDealButton
private JButton getManualDealButton()
- Return the ManualDealButton property value.
- Returns:
- javax.swing.JButton
getPayoff
private TableColumn getPayoff()
- Return the TableColumn2 property value.
- Returns:
- javax.swing.table.TableColumn
getPayoffDefaultTableCellRenderer
private DefaultTableCellRenderer getPayoffDefaultTableCellRenderer()
- Return the PayoffDefaultTableCellRenderer property value.
- Returns:
- javax.swing.table.DefaultTableCellRenderer
getScrollPaneTable
private JTable getScrollPaneTable()
- Return the ScrollPaneTable property value.
- Returns:
- javax.swing.JTable
getScrollPaneTableDefaultTableColumnModel
private DefaultTableColumnModel getScrollPaneTableDefaultTableColumnModel()
- Return the ScrollPaneTableDefaultTableColumnModel property value.
- Returns:
- javax.swing.table.DefaultTableColumnModel
getStatusLine
private JLabel getStatusLine()
- Return the StatusLine property value.
- Returns:
- javax.swing.JLabel
handleException
private void handleException(Throwable exception)
- Called whenever the part throws an exception.
- Parameters:
- exception - java.lang.Throwable
init
public void init()
- Handle the Applet init method.
- Overrides:
- init in class Applet
initConnections
private void initConnections()
- Initializes connections
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Method to handle events for the ItemListener interface.
- Parameters:
- e - java.awt.event.ItemEvent
machines_ItemStateChanged
public void machines_ItemStateChanged(ItemEvent itemEvent)
- Comment
main
public static void main(String args[])
- main entrypoint - starts the part when it is run as an application
- Parameters:
- args - java.lang.String[]
pokerApplet_Init
public void pokerApplet_Init()
- Comment
showCredits
public void showCredits()
- This method was created in VisualAge.
All Packages Class Hierarchy This Package Previous Next Index