FlashCards
Class cMainFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
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 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 |
| 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 |
| 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 |
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
cMainFrame
cMainFrame()
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