Question:
how many components present in java awt and swing?
anonymous
2011-08-09 07:13:51 UTC
how many components present in java awt and swing?
Three answers:
?
2011-08-10 03:54:17 UTC
Java AWT Components



Java's Abstract Windowing Toolkit provides many of the user interface objects we find in the Windows environment. These are called "Components" of the Java AWT. The applet below contains most of the components we will use to create a graphical user interface (GUI) for our applets. It simply initializes and creates the components but does not handle any of the events they trigger. Click on the hyperlink to the right of the component in order to see an example of the code that includes the event handlers.



1. Labels place text on the screen

2. Buttons are used very often to trigger actions and other events.

3. Check Boxes allow choices

4. Radio Buttons are a special case of check boxes.

5. List Boxes are ideal for interacting with arrays of Strings

6. Choice Boxes are similar to list Boxes but conserve Space.

7. Text Areas allow the user to enter data.

8. Scroll bars are ideal for providing access to an integer index.





Using Swing Components



1. Buttons and Labels

2. Checkboxes and Radio Buttons

3. Lists and Combo Boxes

4. Borders

5. Menus

6. The PopupMenu Class

7. The JScrollPane Class

8. The JSplitPane Class

9. The JTabbedPane Class

10. Scrollbars and Sliders

11. Dialogs
deonejuan
2011-08-09 09:25:55 UTC
awt

interfaces 16

classes 98

enums 7

exceptions 4

errors 1



swing

interfaces 24

classes 128

enums 7

exceptions 1



swing.event

interfaces 24

classes 24

enum 1



swing.undo

interfaces 2

classes 5

exceptions 2



also

swing.border

swing.colorchooser

swing.filechooser

swing.plaf /.basic /.metal /.multi /.synth

swing.table

swing.text /.html /.html.parser /.rtf

swing.tree



awt.Component

.Button

.Canvas

.Checkbox

.Choice

.Dialog

.FileDialog

.Frame

.Label

.List

.Panel

.Scrollbar

.ScrollPane

.TextArea

.TextComponent

.TextField

.Window

// note: menus and popup are not components



swing.JComponent

// note: the Swing widgets extend awt.Component, awt.Container

.AbstractButton

.Box

.CellRendererPane*

.JApplet

.JButton

.JCheckBox

.JCheckBoxMenuItem

.JColorChooser

.JComboBox

.JDesktopPane

.JDialog*

.JEditorPane

.JFileChooser

.JFormattedTextField

.JFrame*

.JInternalFrame

.JLabel

.JLayeredPane

.JList

.JMenu // note it subclasses JMenuItem

.JMenuBar

.JMenuItem

.JOptionPane

.JPanel

.JPasswordField

.JPopupMenu

.JPopupMenu.JSeparator

.JProgressBar

.JRadioButton

.JRadioButtonMenuItem

.JRootPane // consult Java 6 api for diagram

.JScrollBar

.JScrollPane

.JSeparator

.JSlider

.JSpinner

.JSplitPane

.JTabbedPane

.JTable

.JTextArea

.JTextField

.JTextPane

.JToggleButton

.JToolBar

.JToolTip

.JTree

.JViewport

.JWindow

*// does not descend from JComponent

// note some JComponent do not descend from Container





And, believe it or not, I once met a Java Programmer from India that had the whole Java API memorized. The above is not the whole API
?
2016-10-18 03:44:14 UTC
are u particular your utilising tables properly? in case you do no longer try this... then that is going to look weird and wonderful attempt something like tr 626726e6bd1215f36719a308a25b798row a million, cellular 1626726e6bd1215f36719a308a25b798 626726e6bd1215f36719a308a25b798row a million, cellular 2626726e6bd1215f36719a308a25b798 tr tr 626726e6bd1215f36719a308a25b798row 2, cellular 1626726e6bd1215f36719a308a25b798 626726e6bd1215f36719a308a25b798626726e6bd1215f36719a308a25b798 tr /table

This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...