|
|
|
Online course
Java jGrasp
In this Java jGrasp Training Course we will see a introducing to this development environment used to write Java programs. We will see over the course classes, how to create them, what they contain, and how to create objects in the main method. We will also discuss constructors, getters and setters, and many more.
|
Classes and Objects
Components
Vídeo
4) JList Swing
Description: In this video I start my discussion on Swing components, specifically we will be talking about JList.
We will create a ListFrame and build a list and a label within it. The list will contain numbers that
represent the font (from 6 to 18). The list will be added to the North portion of the frame and the
label will be added to the center portion. |
[Mark this item as viewed]
|
Vídeo
5) JTable Swing
Description: In this video, I am going to discuss how to create a simple JTable. It is simple because the data displayed
within the table is static. We start by creating a JTable, adding the JTable to a JScrollPane, and finally
adding the JScrollPane to the frame. |
[Mark this item as viewed]
|
Tables
Vídeo
6) DynamicTable
Description: In this video I extend the discussion on tables by creating a table the inherits the functionalities
of the AbstractTableModel. The table slots will be filled using the formula Math.pow(r,c) where r is the
row and c is the column. |
[Mark this item as viewed]
|
JTree
Vídeo
7) JEditorPane
Description: In this video we will build a JTree. The frame is composed of two sections: left (BorderLayout.WEST) and center (BorderLayout.CENTER). The left section contains a tree of categories (news, sports, and technology).
The user will be able to expend and collapse the tree. |
[Mark this item as viewed]
|
Vídeo
8) Hashtable
Description: We continue our JTree discussion in this video. In part 1 we stopped at building the tree. Here we add the
Hashtable that contains the tree names and the URLs as key/value pairs. we built a JEditorPane that displays
the web sites. Finally, we added the actions associated with the leaf nodes. |
[Mark this item as viewed]
|
Serialization
Vídeo
9) ArrayList
Description: Description: In this video we continue our discussion on overloading/overriding by creating classes for employees
and managers. Then we move into serialization. We need a way to write objects into a permament store. However,
it is very tedious to write the objects one field at a time. |
[Mark this item as viewed]
|
Vídeo
10) writeObject
Description: Here we finish the application by providing a complete menu driven application that prompts
the user for options. Based on the user's selection, we trigger methods that save the ArrayList to a file using
writeObject in the ObjectOutputStream class, and retrieve the data from the file using readObject in the
ObjectInputStream class and display the result on the screen. |
[Mark this item as viewed]
|
|