Reference no: EM133620274
Java Swing Component Presentation
Introduction: Later in this class we will be developing a user interface using Java Swing. We need to start becoming familiar with how Java Swing works. Java Swing has components that can be used to build screens. Examples of components are buttons, labels, text fields and many more.
The assignment to build a user interface is later in the course. But we can use this time to become familiar with building screens in Java Swing. Let's help each other learn how to use the components by each one of us taking a component, research it and give a presentation on it.
Instructions: Select a Java Swing component from the list below and create a presentation for the class about the component. A presentation can be made up of any of the following formats or combinations of formats:
- Power Point
- Video
- Screen Cast
- Audio
If given in a classroom setting the presentations would be about 5 to 10 minutes each. That should give you an idea of how much content should be in the presentations. Your presentations should cover:
- The purpose of the component. What is it used for?
- What are the common properties and methods for the component? Don't tell us about all of the properties and methods; many of them are advanced. We don't have time to learn every property and method. We need to know the basics. For example JText Field has a property called Text with methods getText() and setText(). They allow you to put text in the Text Field and if the user changes it, read what text is in the Text Field. These are commonly used properties. On the other hand, JText Field also has an opaque property with a setOpaque() method. Setting opaque will make the JText Field semi- transparent. This would not be a common property and method. So, concentrate on the hand-full of common functionality.
- Include some simple coding examples if possible. Make them small.
- Any alternate uses for the component.
There are many resources available for learning about Java Swing components. Here are a few good ones. Javaranch.com
Java.com
When you are finished with your presentation you will post it in an assigned discussion thread. Please monitor the thread and respond to questions and comments.
Major Java Swing Components:
- JFrame
- JLabel
- JToggle Button
- JRadio Button
- JCombo Box
- JButton
- JCheck Box
- JButton Group
- JList
- JText Field
- JTest Area
- JTable
- JTree
- JMenu (including Menu Bar, Item, etc.)
- JTabbed Pane
- JTool Bar
- JScroll Pane
- JProgress Bar
- JFormatted Field
- JSpinner
- JPane
- JSeperator
- JPopup Menu
- JFile Chooser
- JIntenral Frame
- JDesktop Pane
- JEditor Pane
- JText Pane