Archive

Posts Tagged ‘Tutorial’

Java ActionListener Tutorial

November 6th, 2008 No comments

This tutorial has two classes. ActionListener and Main class are seperated from each other.

  • ParamListener.java
  • BtnsListener.java

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* ParamListener.java
*/
public class ParamListener extends JFrame{
public ParamListener() {
JButton btn10 = new JButton("10");
JButton btn20 = new JButton("20");
JButton btn30 = new JButton("30");
JButton btn40 = new JButton("40");

btn10.addActionListener( new BtnsListener ("ten"));
btn20.addActionListener( new BtnsListener ("twenty"));
btn30.addActionListener( new BtnsListener ("thirty"));
btn40.addActionListener( new BtnsListener ("fourty"));

JPanel content = new JPanel();
content.add(btn10);
content.add(btn20);
content.add(btn30);
content.add(btn40);

setContentPane(content);
setTitle("A Tutorial");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
pack();
}

public static void main(String[] args) {
new ParamListener();

}

}

Read more…

VN:F [1.9.22_1171]
Rating: 1.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Categories: Java Tags: , , ,

Assembly (x86) Turbo Lecture Notes

June 16th, 2008 2 comments

Here is my microprocessors lecture notes. Also you can have information about assembly programming with TASM. All the 20 lectures are available.

Lecture 1

  1. Microcomputers and Microprocessors
  2. Evolution of Intel 80×86 Family Microprocessors
  3. Binary and Hexadecimal Number Systems

Lecture 2

  1. Brief History of 80×86 Family of Microprocessors
  2. Pipelining and Registers
  3. Introduction to Assembly Programming

Lecture 3

  1. Introduction to Assembly Programming (cont. from Lecture 2)
  2. Introduction to Program Segments

Lecture 4

  1. Memory Map of the IBM PC
  2. Pushing and Popping Operations (Stack)
  3. Flag Registers and bit fields

Lecture 5

  1. Flag Registers and bit fields
  2. 80×86 addressing modes.

Lecture 6

  1. Directives and sample programs
  2. Assemble, link and run a program

Lecture 7

  1. Control transfer instructions
  2. CALL statement
  3. Subroutines
  4. Data Types and Data Definition

Lecture 8

  1. Arithmetic and Logic Instructions and Programs
  2. Unsigned Addition and Subtraction

Lecture 9

  1. Unsigned Subtraction
  2. Unsigned Multiplication and Division
  3. Arithmetic and Logic Instructions and Programs

Read more…

VN:F [1.9.22_1171]
Rating: 10.0/10 (4 votes cast)
VN:F [1.9.22_1171]
Rating: +2 (from 2 votes)