-
UNIT I INTRODUCTION TO OOP AND JAVA FUNDAMENTALS 0/1
Object Oriented Programming – Abstraction – objects and classes – Encapsulation- Inheritance – Polymorphism- OOP in Java – Characteristics of Java – The Java Environment – Java Source File Structure – Compilation. Fundamental Programming Structures in Java – Defining classes in Java – constructors, methods -access specifiers – static members -Comments, Data Types, Variables, Operators, Control Flow, Arrays , Packages – JavaDoc comments.
-
Lecture1.1
-
Lecture1.2
-
Lecture1.3
-
Lecture1.4
-
Lecture1.5
-
Lecture1.6
-
Lecture1.7
-
Lecture1.8
-
Lecture1.9
-
Quiz1.1
-
-
UNIT II INHERITANCE AND INTERFACESÂ 0/1
Inheritance – Super classes- sub classes –Protected members – constructors in sub classes- the Object class – abstract classes and methods- final methods and classes – Interfaces – defining an interface, implementing interface, differences between classes and interfaces and extending interfaces – Object cloning -inner classes, ArrayLists – Strings
-
Lecture2.1
-
Lecture2.2
-
Lecture2.3
-
Lecture2.4
-
Lecture2.5
-
Lecture2.6
-
Lecture2.7
-
Lecture2.8
-
Lecture2.9
-
Quiz2.1
-
-
UNIT III EXCEPTION HANDLING AND I/OÂ 0/1
Exceptions – exception hierarchy – throwing and catching exceptions – built-in exceptions, creating own exceptions, Stack Trace Elements. Input / Output Basics – Streams – Byte streams and Character streams – Reading and Writing Console – Reading and Writing Files
-
Lecture3.1
-
Lecture3.2
-
Lecture3.3
-
Lecture3.4
-
Lecture3.5
-
Lecture3.6
-
Lecture3.7
-
Lecture3.8
-
Lecture3.9
-
Quiz3.1
-
-
UNIT IV MULTITHREADING AND GENERIC PROGRAMMINGÂ 0/0
Differences between multi-threading and multitasking, thread life cycle, creating threads, synchronizing threads, Inter-thread communication, daemon threads, thread groups. Generic Programming – Generic classes – generic methods – Bounded Types – Restrictions and Limitations.
-
Lecture4.1
-
Lecture4.2
-
Lecture4.3
-
Lecture4.4
-
Lecture4.5
-
Lecture4.6
-
Lecture4.7
-
Lecture4.8
-
-
UNIT V EVENT DRIVEN PROGRAMMINGÂ 0/1
Graphics programming – Frame – Components – working with 2D shapes – Using color, fonts, and images – Basics of event handling – event handlers – adapter classes – actions – mouse events – AWT event hierarchy – Introduction to Swing – layout management – Swing Components – Text Fields , Text Areas – Buttons- Check Boxes – Radio Buttons – Lists- choices- Scrollbars – Windows –Menus – Dialog Boxes.
-
Lecture5.1
-
Lecture5.2
-
Lecture5.3
-
Lecture5.4
-
Lecture5.5
-
Lecture5.6
-
Lecture5.7
-
Lecture5.8
-
Lecture5.9
-
Lecture5.10
-
Lecture5.11
-
Quiz5.1
-
Swing Buttons and Check Boxes and Radio Buttons in Java
How to Use Buttons, Check Boxes, and Radio Buttons
To create a button, you can instantiate one of the many classes that descend from theÂ
AbstractButton
 class. The following table shows the Swing-definedÂ
AbstractButton
 subclasses that you might want to use:
Class Summary Where Described JButton
A common button. How to Use the Common Button API and How to Use JButton Features JCheckBox
A check box button. How to Use Check Boxes JRadioButton
One of a group of radio buttons. How to Use Radio Buttons JMenuItem
An item in a menu. How to Use Menus JCheckBoxMenuItem
A menu item that has a check box. How to Use Menus and How to Use Check Boxes JRadioButtonMenuItem
A menu item that has a radio button. How to Use Menus and How to Use Radio Buttons JToggleButton
Implements toggle functionality inherited by JCheckBox
 andÂJRadioButton
. Can be instantiated or subclassed to create two-state buttons.EXAMPLE PROGRAM
import java.awt.BorderLayout; import java.awt.Container; import java.awt.GridLayout; import javax.swing.BorderFactory; import javax.swing.ButtonGroup; import javax.swing.JCheckBox; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.border.Border; public class ARadioCombo { public static void main(String args[]) { JFrame frame = new JFrame("Radio/Combo Example"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel(new GridLayout(0, 1)); Border border = BorderFactory.createTitledBorder("Radio Buttons"); panel.setBorder(border); ButtonGroup group = new ButtonGroup(); JRadioButton aRadioButton = new JRadioButton("4 slices"); panel.add(aRadioButton); group.add(aRadioButton); aRadioButton = new JRadioButton("8 slices", true); panel.add(aRadioButton); group.add(aRadioButton); aRadioButton = new JRadioButton("12 slices"); panel.add(aRadioButton); group.add(aRadioButton); aRadioButton = new JRadioButton("16 slices"); panel.add(aRadioButton); group.add(aRadioButton); Container contentPane = frame.getContentPane(); contentPane.add(panel, BorderLayout.WEST); panel = new JPanel(new GridLayout(0, 1)); border = BorderFactory.createTitledBorder("Check Boxes"); panel.setBorder(border); JCheckBox aCheckBox = new JCheckBox("Anchovies"); panel.add(aCheckBox); aCheckBox = new JCheckBox("Garlic", true); panel.add(aCheckBox); aCheckBox = new JCheckBox("Onions"); panel.add(aCheckBox); aCheckBox = new JCheckBox("Spinach"); panel.add(aCheckBox); contentPane.add(panel, BorderLayout.EAST); frame.setSize(300, 200); frame.setVisible(true); } } OUTPUTRadio button, ComboBox
![]()