archive-za.com » ZA » P » PITMAN.CO.ZA

Total: 183

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • JLabel
    this constructor if you want to set the alignment to something other than left aligned Method Summary void debug int level void draw Draws the border of the component if there is one int getHeight Dimension getSize This may be wrong but it ll do for now java lang String getText int getWidth boolean isFocusTraversable This component will not receive focus when Tab or Shift Tab is pressed Dimension minimumSize void processKeyEvent KeyEvent ke The JLabel class ignores key events void requestFocus The JLabel component never gets the keyboard input focus void setLength int length void setText java lang String label java lang String toString Methods inherited from class charvax swing JComponent getBorder getInsets setBorder Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide invalidate isDisplayed isEnabled isTotallyObscured isValid isVisible processEvent processFocusEvent processMouseEvent repaint requestSync setBackground setBounds setBounds setBounds setEnabled setForeground setLocation setLocation setName setParent setVisible show validate validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll wait wait wait Constructor Detail JLabel public JLabel Construct an empty label JLabel public JLabel java lang String text Construct a JLabel with the specified text JLabel public JLabel java lang String text int align Use this constructor if you want to set the alignment to something other than left aligned Method Detail setLength public void setLength int length minimumSize public Dimension minimumSize Specified by minimumSize in class Component draw public void draw Description copied from class JComponent Draws the border of the component if there is one Overrides draw in class JComponent getSize public Dimension getSize This may be wrong but it ll do for now Specified by getSize in class Component getWidth public int getWidth Specified by getWidth in class

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/JLabel.html (2015-12-05)
    Open archived version from archive

  • JList
    a Vector and then applies setModel to it void setModel ListModel model Sets the model that represents the contents of the list and clears the selection void setSelectedIndex int index Select the item at the specified index void setSelectionMode int mode Sets the flag that determines whether this list allows multiple selections void setSelectionModel ListSelectionModel model Sets the selection model of the JList to an implementation of the ListSelectionModel interface void setVisibleRowCount int rows Set the maximum number of rows that can be displayed at a time by the JScrollPane which contains this JList Methods inherited from class charvax swing JComponent getBorder getInsets setBorder Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide invalidate isDisplayed isEnabled isFocusTraversable isTotallyObscured isValid isVisible processEvent processFocusEvent repaint requestSync setBackground setBounds setBounds setBounds setEnabled setForeground setLocation setLocation setName setParent setVisible show validate validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Methods inherited from interface charva awt Scrollable getLocation Field Detail currentRow protected int currentRow Offset from start of list of the item under the cursor i e the item that will be selected deselected if the user presses ENTER selectionModel protected ListSelectionModel selectionModel The ListSelectionModel used by this JList listModel protected ListModel listModel The ListModel that holds the items that are displayed by this JList Constructor Detail JList public JList Constructs a JList with 5 rows 10 columns wide JList public JList ListModel model Construct a JList that displays the elements in the specified non null model JList public JList java lang Object items Construct a JList containing the items in the specified array JList public JList java util Vector items Construct a JList containing the items in the specified Vector Method Detail setListData public void setListData java lang Object listData Constructs a ListModel from an array of Objects and then applies setModel to it setListData public void setListData java util Vector listData Constructs a ListModel from a Vector and then applies setModel to it setModel public void setModel ListModel model Sets the model that represents the contents of the list and clears the selection getModel public ListModel getModel Returns the data model that holds the list of items displayed by this JList setVisibleRowCount public void setVisibleRowCount int rows Set the maximum number of rows that can be displayed at a time by the JScrollPane which contains this JList getVisibleRowCount public int getVisibleRowCount setColumns public void setColumns int cols Set the number of columns INSIDE the list getSize public Dimension getSize Specified by getSize in class Component getWidth public int getWidth Specified by getWidth in class Component getHeight public int getHeight Specified by getHeight in class Component getPreferredScrollableViewportSize public Dimension getPreferredScrollableViewportSize Returns the size of the viewport needed to display visibleRows rows Specified by getPreferredScrollableViewportSize in interface Scrollable setSelectionModel public void setSelectionModel ListSelectionModel model Sets the selection model of the JList to an implementation of the ListSelectionModel interface getSelectionModel

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/JList.html (2015-12-05)
    Open archived version from archive

  • JMenu
    color of this JMenu and all its contained JMenuItems that do not yet have their background color set void setForeground Color color Sets the foreground color of this JMenu and all its contained JMenuItems that do not yet have their foreground color set void setPopupMenuVisible boolean visible Displays this menu s popup menu if the specified value is true hides the menu if it is false java lang String toString Methods inherited from class charvax swing JMenuItem requestFocus Methods inherited from class charvax swing AbstractButton addActionListener addItemListener doClick fireItemStateChanged getActionCommand getLabel getLabelString getMnemonic getText isSelected keyPressed keyReleased keyTyped processEvent processMouseEvent removeItemListener setActionCommand setLabel setMnemonic setSelected setText Methods inherited from class charvax swing JComponent getBorder getInsets setBorder Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide invalidate isDisplayed isEnabled isFocusTraversable isTotallyObscured isValid isVisible processFocusEvent processKeyEvent repaint requestSync setBounds setBounds setBounds setEnabled setLocation setLocation setName setParent setVisible show validate validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll wait wait wait Constructor Detail JMenu public JMenu Constructs a new JMenu with no text the text can be set later with the setText method of the superclass JMenu public JMenu java lang String text Constructs a new JMenu with the specified string as its text JMenu public JMenu java lang String text int mnemonic Constructs a new JMenu with the specified text and the specified mnemonic character which must appear in the text Method Detail add public JMenuItem add JMenuItem item Add a JMenuItem or JMenu to the end of this JMenu Returns the JMenuItem that was added addSeparator public void addSeparator Add a horizontal separator to the end of the menu add public JMenuItem add java lang String text Create a

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/JMenu.html (2015-12-05)
    Open archived version from archive

  • JMenuBar
    menu bar Method Summary JMenu add JMenu menu Appends the specified menu to the end of the JMenuBar void debug int level Output a text description of the menubar void draw Draw this menubar int getHeight JMenu getMenu int index Returns the menu at the specified index JMenu getMenu java lang String text Returns the menu that has the specified text label int getMenuCount Returns the number of menus in the menubar Dimension getSize int getWidth Dimension minimumSize void processKeyEvent KeyEvent ke Processes key events occurring on this object by dispatching them to any registered KeyListener objects java lang String toString Methods inherited from class charva awt Container add add doLayout getComponent getComponentAt getComponentAt getComponentCount getComponents getCurrentFocus getInsets invalidate isFocusTraversable isValid nextFocus previousFocus remove requestFocus setBackground setFocus setForeground setHeight setLayout setSize setSize setWidth validate Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide isDisplayed isEnabled isTotallyObscured isVisible processEvent processFocusEvent processMouseEvent repaint requestSync setBounds setBounds setBounds setEnabled setLocation setLocation setName setParent setVisible show validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll wait wait wait Constructor Detail JMenuBar public JMenuBar Create a new menu bar Method Detail add public JMenu add JMenu menu Appends the specified menu to the end of the JMenuBar Parameters menu the menu to be added Returns the menu that was added getMenuCount public int getMenuCount Returns the number of menus in the menubar getMenu public JMenu getMenu int index Returns the menu at the specified index getMenu public JMenu getMenu java lang String text Returns the menu that has the specified text label draw public void draw Draw this menubar Overrides draw in class Container processKeyEvent public void processKeyEvent KeyEvent ke Processes key events occurring

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/JMenuBar.html (2015-12-05)
    Open archived version from archive

  • JMenuItem
    String text int mnemonic Create a menu item with the specified text and the specified mnemonic Method Summary void debug int level Outputs a textual description of this component to stderr void draw Draws the border of the component if there is one int getHeight Dimension getSize int getWidth Dimension minimumSize void requestFocus This method should be invoked by all subclasses of Component which override this method because this method generates the FOCUS GAINED event when the component gains the keyboard focus java lang String toString Methods inherited from class charvax swing AbstractButton addActionListener addItemListener doClick fireActionPerformed fireItemStateChanged getActionCommand getLabel getLabelString getMnemonic getText isSelected keyPressed keyReleased keyTyped processEvent processMouseEvent removeItemListener setActionCommand setLabel setMnemonic setSelected setText Methods inherited from class charvax swing JComponent getBorder getInsets setBorder Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide invalidate isDisplayed isEnabled isFocusTraversable isTotallyObscured isValid isVisible processFocusEvent processKeyEvent repaint requestSync setBackground setBounds setBounds setBounds setEnabled setForeground setLocation setLocation setName setParent setVisible show validate validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll wait wait wait Field Detail size protected Dimension size Constructor Detail JMenuItem public JMenuItem Create a menu item without text JMenuItem public JMenuItem java lang String text Create a menu item with the specified text JMenuItem public JMenuItem java lang String text int mnemonic Create a menu item with the specified text and the specified mnemonic Parameters text the label to be displayed in this menu item mnemonic an ASCII character The first occurrence of this character in the text label will be shown underlined and pressing this key will invoke the menu item Method Detail draw public void draw Description copied from class JComponent Draws the border of the component if

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/JMenuItem.html (2015-12-05)
    Open archived version from archive

  • JOptionPane
    the initial value that is to be enabled the Component that has the focus when the pane is initially displayed void setInputValue java lang Object value Sets the initial value of the text field for the user to modify void setOptions java lang Object newOptions Sets the options this pane displays in the button panel at the bottom void setWantsInput boolean newvalue If newvalue is true a JTextField will be displayed for the user to provide text input static int showConfirmDialog Component parent java lang Object message java lang String title int optiontype Brings up a dialog where the number of choices is dependent on the value of the optiontype parameter static java lang String showInputDialog Component parent java lang Object message java lang String title int messagetype Brings up a dialog that allows the user to input a value static void showMessageDialog Component parent java lang Object message Brings up a confirmation dialog titled Confirm static void showMessageDialog Component parent java lang Object message java lang String title int msgtype Brings up a confirmation dialog with the specified title Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll toString wait wait wait Field Detail message protected java lang Object message messagetype protected int messagetype optiontype protected int optiontype Determines which option buttons to display unless an array of options is explicitly specified with setOptions wantsInput protected boolean wantsInput If true an TextField will be displayed for the user to provide input inputValue protected java lang String inputValue options protected java lang Object options Array of options to display to the user in the bottom button panel The objects in this array can be any combination of Strings or components which are subclasses of AbstractButton Buttons are just added to the bottom button panel Strings are wrapped in a JButton which is then added to the button panel initialValue protected java lang Object initialValue Option that should be initially selected in options value protected java lang Object value The currently selected option ERROR MESSAGE public static final int ERROR MESSAGE See Also Constant Field Values INFORMATION MESSAGE public static final int INFORMATION MESSAGE See Also Constant Field Values WARNING MESSAGE public static final int WARNING MESSAGE See Also Constant Field Values QUESTION MESSAGE public static final int QUESTION MESSAGE See Also Constant Field Values PLAIN MESSAGE public static final int PLAIN MESSAGE See Also Constant Field Values DEFAULT OPTION public static final int DEFAULT OPTION See Also Constant Field Values YES NO OPTION public static final int YES NO OPTION See Also Constant Field Values YES NO CANCEL OPTION public static final int YES NO CANCEL OPTION See Also Constant Field Values OK CANCEL OPTION public static final int OK CANCEL OPTION See Also Constant Field Values YES OPTION public static final int YES OPTION See Also Constant Field Values NO OPTION public static final int NO OPTION See Also Constant Field Values CANCEL OPTION public static final int CANCEL OPTION See Also Constant Field

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/JOptionPane.html (2015-12-05)
    Open archived version from archive

  • JPanel
    ALIGNMENT LEFT ALIGNMENT RIGHT ALIGNMENT TOP ALIGNMENT Constructor Summary JPanel The default constructor sets the layout manager to FlowLayout JPanel LayoutManager layout Use this constructor if you want to use a layout manager other than the default FlowLayout Method Summary void debug int level void draw Draws the border of the panel if there is one plus all the contained components Border getBorder Insets getInsets void setBorder Border border java lang String toString Methods inherited from class charva awt Container add add doLayout getComponent getComponentAt getComponentAt getComponentCount getComponents getCurrentFocus getHeight getSize getWidth invalidate isFocusTraversable isValid minimumSize nextFocus previousFocus processKeyEvent remove requestFocus setBackground setFocus setForeground setHeight setLayout setSize setSize setWidth validate Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide isDisplayed isEnabled isTotallyObscured isVisible processEvent processFocusEvent processMouseEvent repaint requestSync setBounds setBounds setBounds setEnabled setLocation setLocation setName setParent setVisible show validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll wait wait wait Constructor Detail JPanel public JPanel The default constructor sets the layout manager to FlowLayout JPanel public JPanel LayoutManager layout Use this constructor if you want to use a layout

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/JPanel.html (2015-12-05)
    Open archived version from archive

  • JPasswordField
    Summary JPasswordField JPasswordField int length Use this constructor when you want to leave the text field empty but set its length JPasswordField java lang String text Use this constructor when you want to initialize the value JPasswordField java lang String text int length Use this constructor when you want to set both the initial value and the length Method Summary void debug int level void draw Called by this JPasswordField s parent container boolean echoCharIsSet Get the flag which indicates whether the echo character has been set char getEchoChar Get the echo character for this text field char getPassword Returns the password value as an array of chars java lang String getText Deprecated Replaced by getpassword void setEchoChar char echochar Set the echo character for this password field java lang String toString Returns a String representation of this component Methods inherited from class charvax swing JTextField addActionListener getActionCommand getColumns getHeight getSize getWidth isEditable minimumSize postActionEvent processEvent processKeyEvent processMouseEvent requestFocus setActionCommand setBounds setBounds setBounds setColumns setEditable setFont setText Methods inherited from class charvax swing text JTextComponent getCaretPosition getDocument setCaretPosition setDocument Methods inherited from class charvax swing JComponent getBorder getInsets setBorder Methods inherited from class charva awt Component addFocusListener addKeyListener contains contains getAlignmentX getAlignmentY getAncestorWindow getBackground getBounds getCursesColor getForeground getLocation getLocationOnScreen getName getParent hasFocus hide invalidate isDisplayed isEnabled isFocusTraversable isTotallyObscured isValid isVisible processFocusEvent repaint requestSync setBackground setEnabled setForeground setLocation setLocation setName setParent setVisible show validate validateCursesColor Methods inherited from class java lang Object clone equals finalize getClass hashCode notify notifyAll wait wait wait Constructor Detail JPasswordField public JPasswordField JPasswordField public JPasswordField java lang String text Use this constructor when you want to initialize the value JPasswordField public JPasswordField int length Use this constructor when you want to leave the text field empty but set its length JPasswordField public JPasswordField java lang String

    Original URL path: http://www.pitman.co.za/projects/charva/api/charvax/swing/JPasswordField.html (2015-12-05)
    Open archived version from archive



  •