simple

Creating simple Calculator in Java

Introduction

This tutorial is about creating simple calculator which performs only four operations. For creating a simple Calculator we require two JTextFields where the user can enter two numbers, four JButton for four operations namely addition, subtraction,multiplication and division, a JLabel for displaying the result.

Implementation

Step 1: Creating a class which extends JFrame because we are going to create an Application. After this we have to define the constructor of the class as follows. Super() is used to give title to the frame.

Simple Image Viewer in vb.net

Image viewer in VB.NET Imports System.IO Public Class Form1 Dim index As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If bdialog.ShowDialog = Windows.Forms.DialogResult.OK Then TextBox1.Text = bdialog.SelectedPath index = 0 Me.listbox1.Items.Clear() For Each Image As String In My.Computer.FileSystem.GetFiles(TextBox1.Text