Pages

How to insert images into database using JAVA SWING

Insert Images into any database using JAVA SWING APP

(Special Tutorial for beginners)

PART 1 - Basic handling of image



Fundamentals of Java Swing

JAVA SWING - Tutorial 1


     This tutorial will help you to understand basics of Java Swing. Mainly we use java swing to create GUI(Graphically User Interface) Applications. You can easily create your application using popular IDE's like Net Beans, Eclipse.etc. But in this tutorial i am going to use Text Editor to coding and cmd to compile my program. So, lets start...

      In this tutorial we are going to develop small login box using java swing.

    so, before start coding our application we need to import "javax.swing" library to our program. 

        import javax.swing.*

     Here is definitions of some keywords we frequently use in Java Swing,

  JFrame : Use this to create instance of JFrame. Simply this represent window of our application.
  JPanel  : This is same as <div> tag in HTML. Inside this, we can create Buttons, Text Fields, Forms.etc

Java Challenge - 1

Java Challenge - 1

     Welcome to newly event of my website! If you want to prove you are a JAVA PROFESSIONAL, here is chance for that. Gear up , find solution, Test the solution and beat the challenge! Best solution will display on the web site!

JAVA INPUT STREAM


     This tutorial will show to you how to read user inputs when you creating a console applications. Most of the time in programming we need to get user inputs. So in JAVA simplest way to read user input is System.console().

   class test1
    {
        public static void main()
        {
           System.out.println("Type your name");
           String name = System.console().readLine();
           System.out.println("Your name is :"+name);
        }
    }

     You can successfully run this method in "command Line" in windows. But if you use IDE like "Eclipse", it will generate errors.