FlashCards
Class cMainFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by FlashCards.cMainFrame
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

 class cMainFrame
extends javax.swing.JFrame
implements java.awt.event.ActionListener, java.awt.event.WindowListener

to generate the documentation for this package, go into the directory FlashCards and then run terminal from there /media/sda6/Data/Miscellaneous/Archives/2007/7/22/FlashCards# javadoc -d doc -private *.java To compile into jar file, change current directory to outside of FlashCards here include the manifest.mf make sure that manifest ends with new line character here is an example of manifest file Manifest-Version: 1.0 Created-By: 1.5.0_11 (Sun Microsystems Inc.) Main-Class: FlashCards.cFlashCards run the following command jar cmf manifest.mf FlashCards.jar FlashCards here c stands for creating new jar file, m stands for inclusion of custom manifest file, f stands for the file or directory to be included don't ever attempt to repack the jar file with standard zip files as jar file is not a zip (although it certainly looks so)


Nested Class Summary
(package private)  class cMainFrame.cCardsFrame
           
(package private)  class cMainFrame.CmpAdapter
           
(package private)  class cMainFrame.cNotesFrame
           
(package private)  class cMainFrame.cResultsFrame
           
(package private)  class cMainFrame.SearchFactory
           
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  javax.swing.JTextArea answerTextArea
           
(package private)  javax.swing.JButton btnAddCard
           
(package private)  javax.swing.JButton btnAnswerImagePath
           
(package private)  javax.swing.JButton btnCheck
           
(package private)  javax.swing.JButton btnContinue
           
(package private)  javax.swing.JButton btnCorrect
           
(package private)  javax.swing.JButton btnGoto
           
(package private)  javax.swing.JButton btnIncorrect
           
(package private)  javax.swing.JButton btnNextCard
           
(package private)  javax.swing.JButton btnNotes
           
(package private)  javax.swing.JButton btnPostStart
           
(package private)  javax.swing.JButton btnPrevCard
           
(package private)  javax.swing.JButton btnQuestionImagePath
           
(package private)  javax.swing.JButton btnRemoveCard
           
(package private)  javax.swing.JButton btnSaveCard
           
(package private)  javax.swing.JButton btnSearch
           
(package private)  javax.swing.JButton btnStart
           
(package private)  javax.swing.JButton btnStop
           
(package private)  javax.swing.JButton btnZeroCard
           
(package private)  java.awt.Container contentPane
           
(package private)  FlashCard currentCard
           
(package private)  ModeEnum currentMode
           
(package private)  Question currentQuestion
           
(package private)  java.lang.String defaultPath
           
(package private)  javax.swing.JPanel designPanel
           
(package private)  javax.swing.JTextField fieldAnswerPath
           
(package private)  javax.swing.JTextField fieldGoto
           
(package private)  javax.swing.JTextField fieldQuestionPath
           
(package private)  java.util.Vector<FlashCard> flashCardsSet
           
(package private)  java.util.Vector<FlashCard> flashCardsToQuiz
           
(package private)  java.awt.Graphics g1
           
(package private)  java.awt.Graphics g2
           
(package private)  PersistentPanel imageAnswer
           
(package private)  javax.swing.JPanel imagePanel
           
(package private)  javax.swing.JPanel imagePathPanel
           
(package private)  PersistentPanel imageQuestion
           
(package private)  javax.swing.JSplitPane imageSplitPane
           
(package private)  java.awt.Image imgA
           
(package private)  java.awt.Image imgQ
           
(package private)  boolean isRunning
           
(package private)  boolean isSaved
           
(package private)  javax.swing.JMenuItem itemAbout
           
(package private)  javax.swing.JMenuItem itemFavoriteList
           
(package private)  javax.swing.JMenuItem itemListCards
           
(package private)  javax.swing.JMenuItem itemLoadBinary
           
(package private)  javax.swing.JMenuItem itemSaveBinary
           
(package private)  javax.swing.JMenuItem itemSaveBinaryAs
           
(package private)  javax.swing.JScrollPane jscrollPaneAnswer
           
(package private)  javax.swing.JScrollPane jscrollPaneQuestion
           
(package private)  javax.swing.JTextArea jtextAreaAnswer
           
(package private)  javax.swing.JTextArea jtextAreaQuestion
           
(package private)  java.util.concurrent.ArrayBlockingQueue<java.lang.String> listFavoriteFiles
           
(package private)  javax.swing.JMenuBar mainMenu
           
(package private)  javax.swing.JSplitPane mainSplitPane
           
(package private)  javax.swing.JMenu menuAbout
           
(package private)  javax.swing.JMenu menuEdit
           
(package private)  javax.swing.JMenu menuFile
           
(package private)  java.lang.String notes
           
(package private)  cMainFrame.cNotesFrame notesFrame
           
(package private)  javax.swing.JProgressBar progressBar
           
(package private)  javax.swing.JProgressBar progressBarCorrect
           
(package private)  javax.swing.JPanel progressBarPanel
           
(package private)  javax.swing.JPanel questionPanel
           
(package private)  java.util.Vector<Question> questionsAsked
           
(package private)  javax.swing.JTextArea questionTextArea
           
(package private)  javax.swing.JPanel runPanel
           
(package private)  cMainFrame.SearchFactory searchFactory
           
(package private)  javax.swing.JLabel statusLabel
           
(package private)  javax.swing.JPanel statusPanel
           
(package private)  javax.swing.JSplitPane textSplitPane
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
cMainFrame()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          This is the major router method, whatever the event is happening on the frame, it will invoke appropriate subroutine
(package private)  void addFavoritePath(java.lang.String path)
           
(package private)  void addNewCard()
           
(package private)  void checkQuestion()
           
(package private)  void continueTesting()
           
(package private)  void gotoCard()
           
(package private)  void loadBinary(java.lang.String path)
           
(package private)  void loadFavoriteList()
           
(package private)  void makeNewQuestion()
           
(package private)  void openFileDialog(FileDialogEnum fd)
           
(package private)  void processResults()
           
(package private)  void properExit()
           
(package private)  void registerQuestion(boolean isCorrect)
           
(package private)  void removeCard(FlashCard fc)
           
(package private)  void reset()
           
(package private)  void saveBinary(java.lang.String path)
           
(package private)  void saveCurrentCard()
           
(package private)  void saveFavoriteList()
           
(package private)  void search()
           
(package private)  void showAbout()
           
(package private)  void showCard(FlashCard f, boolean showAnswer)
           
(package private)  void showCard(int index, boolean showAnswer)
           
(package private)  void showExceptionMessage(java.lang.Throwable exc)
           
(package private)  void showExceptionMessage(java.lang.Throwable exc, java.lang.String message)
           
(package private)  void showFavoriteList()
           
(package private)  java.lang.String showImageSelector()
           
(package private)  void startPostTest()
           
(package private)  void startTesting()
           
(package private)  void stopTesting()
           
(package private)  void updateStatusLine()
           
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

imagePanel

javax.swing.JPanel imagePanel

imagePathPanel

javax.swing.JPanel imagePathPanel

questionPanel

javax.swing.JPanel questionPanel

designPanel

javax.swing.JPanel designPanel

runPanel

javax.swing.JPanel runPanel

statusPanel

javax.swing.JPanel statusPanel

progressBarPanel

javax.swing.JPanel progressBarPanel

contentPane

java.awt.Container contentPane

mainMenu

javax.swing.JMenuBar mainMenu

menuFile

javax.swing.JMenu menuFile

menuAbout

javax.swing.JMenu menuAbout

menuEdit

javax.swing.JMenu menuEdit

itemFavoriteList

javax.swing.JMenuItem itemFavoriteList

itemLoadBinary

javax.swing.JMenuItem itemLoadBinary

itemSaveBinary

javax.swing.JMenuItem itemSaveBinary

itemSaveBinaryAs

javax.swing.JMenuItem itemSaveBinaryAs

itemAbout

javax.swing.JMenuItem itemAbout

itemListCards

javax.swing.JMenuItem itemListCards

imageQuestion

PersistentPanel imageQuestion

imageAnswer

PersistentPanel imageAnswer

statusLabel

javax.swing.JLabel statusLabel

imgQ

java.awt.Image imgQ

imgA

java.awt.Image imgA

btnQuestionImagePath

javax.swing.JButton btnQuestionImagePath

btnAnswerImagePath

javax.swing.JButton btnAnswerImagePath

btnPrevCard

javax.swing.JButton btnPrevCard

btnZeroCard

javax.swing.JButton btnZeroCard

btnNextCard

javax.swing.JButton btnNextCard

btnAddCard

javax.swing.JButton btnAddCard

btnRemoveCard

javax.swing.JButton btnRemoveCard

btnSaveCard

javax.swing.JButton btnSaveCard

btnCheck

javax.swing.JButton btnCheck

btnCorrect

javax.swing.JButton btnCorrect

btnIncorrect

javax.swing.JButton btnIncorrect

btnStart

javax.swing.JButton btnStart

btnContinue

javax.swing.JButton btnContinue

btnStop

javax.swing.JButton btnStop

btnPostStart

javax.swing.JButton btnPostStart

btnNotes

javax.swing.JButton btnNotes

btnGoto

javax.swing.JButton btnGoto

btnSearch

javax.swing.JButton btnSearch

progressBar

javax.swing.JProgressBar progressBar

progressBarCorrect

javax.swing.JProgressBar progressBarCorrect

fieldQuestionPath

javax.swing.JTextField fieldQuestionPath

fieldAnswerPath

javax.swing.JTextField fieldAnswerPath

fieldGoto

javax.swing.JTextField fieldGoto

jtextAreaQuestion

javax.swing.JTextArea jtextAreaQuestion

jtextAreaAnswer

javax.swing.JTextArea jtextAreaAnswer

jscrollPaneQuestion

javax.swing.JScrollPane jscrollPaneQuestion

jscrollPaneAnswer

javax.swing.JScrollPane jscrollPaneAnswer

questionTextArea

javax.swing.JTextArea questionTextArea

answerTextArea

javax.swing.JTextArea answerTextArea

flashCardsSet

java.util.Vector<FlashCard> flashCardsSet

flashCardsToQuiz

java.util.Vector<FlashCard> flashCardsToQuiz

questionsAsked

java.util.Vector<Question> questionsAsked

currentQuestion

Question currentQuestion

currentCard

FlashCard currentCard

isSaved

boolean isSaved

isRunning

boolean isRunning

currentMode

ModeEnum currentMode

g1

java.awt.Graphics g1

g2

java.awt.Graphics g2

defaultPath

java.lang.String defaultPath

searchFactory

cMainFrame.SearchFactory searchFactory

listFavoriteFiles

java.util.concurrent.ArrayBlockingQueue<java.lang.String> listFavoriteFiles

notes

java.lang.String notes

notesFrame

cMainFrame.cNotesFrame notesFrame

mainSplitPane

javax.swing.JSplitPane mainSplitPane

imageSplitPane

javax.swing.JSplitPane imageSplitPane

textSplitPane

javax.swing.JSplitPane textSplitPane
Constructor Detail

cMainFrame

cMainFrame()
Method Detail

search

void search()

openFileDialog

void openFileDialog(FileDialogEnum fd)

loadFavoriteList

void loadFavoriteList()

updateStatusLine

void updateStatusLine()

showFavoriteList

void showFavoriteList()

showImageSelector

java.lang.String showImageSelector()

addFavoritePath

void addFavoritePath(java.lang.String path)

saveFavoriteList

void saveFavoriteList()

properExit

void properExit()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
This is the major router method, whatever the event is happening on the frame, it will invoke appropriate subroutine

Specified by:
actionPerformed in interface java.awt.event.ActionListener

gotoCard

void gotoCard()

removeCard

void removeCard(FlashCard fc)

startPostTest

void startPostTest()

addNewCard

void addNewCard()

showCard

void showCard(FlashCard f,
              boolean showAnswer)

showCard

void showCard(int index,
              boolean showAnswer)

saveCurrentCard

void saveCurrentCard()

saveBinary

void saveBinary(java.lang.String path)

loadBinary

void loadBinary(java.lang.String path)

showExceptionMessage

void showExceptionMessage(java.lang.Throwable exc)

showAbout

void showAbout()

showExceptionMessage

void showExceptionMessage(java.lang.Throwable exc,
                          java.lang.String message)

startTesting

void startTesting()

continueTesting

void continueTesting()

stopTesting

void stopTesting()

checkQuestion

void checkQuestion()

registerQuestion

void registerQuestion(boolean isCorrect)

makeNewQuestion

void makeNewQuestion()

processResults

void processResults()

reset

void reset()

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener