Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,186 members, 7,822,007 topics. Date: Thursday, 09 May 2024 at 01:00 AM

Java Programming For Dummies - Programming (4) - Nairaland

Nairaland Forum / Science/Technology / Programming / Java Programming For Dummies (40499 Views)

Programming For Dummies. / Vb.net For Dummies: / Vb.net For Dummies: (2) (3) (4)

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (Reply) (Go Down)

Re: Java Programming For Dummies by skima(m): 6:05pm On Mar 03, 2006
The diagram

Re: Java Programming For Dummies by gbengaijot(m): 8:33pm On Mar 03, 2006
skima, i downloaded it(JDK only) i will integrate the IDE with it tonite and strt from the scratch.
Re: Java Programming For Dummies by skima(m): 3:41pm On Mar 04, 2006
okay Gbanga. while downloading the IDE u may try to compile ur helloworld program and see how lovely Java could be!
Re: Java Programming For Dummies by skima(m): 4:09pm On Mar 04, 2006
is this tutorial still on?
Re: Java Programming For Dummies by sbucareer(f): 12:56am On Mar 05, 2006


Skima, sorry I haven't had time to respond to your PM's and the things that I promised you, I will try and do it this week. Regarding your Class Diagram above it looks professional and meet the assignment criteria.

I will be looking forward of seeing your code plus the demonstration class. The rest that haven't done anything should endeavor to submit something. As soon as I see your code Skima, I will resume the tutorial, good work Skima and well done.

Re: Java Programming For Dummies by skima(m): 9:01pm On Mar 05, 2006
i will do so.
Re: Java Programming For Dummies by gbengaijot(m): 12:40am On Mar 08, 2006
I have succeded in compiling my first java codes. when i cliecked run, it shows me another dialog box asking for parameters, command and inital foilders, what do i do?

Re: Java Programming For Dummies by mimohmi(m): 1:55am On Mar 08, 2006
Good you are using TextPad. To run your HelloWorld application,
Click Tools --------> Run Java Application or just simply press Ctrl+2 on
your keyboard

Hope it helps.
Re: Java Programming For Dummies by gbengaijot(m): 7:50pm On Mar 08, 2006
After following your instructions @ MOMOH-MI this is what comes up

Re: Java Programming For Dummies by mimohmi(m): 11:19pm On Mar 08, 2006
Congratulations !! you have just succeeded in running you first java application.
Look at the first line of the output window (DOS).

Hello Word is your output from line 3. ie

 System.out.println("Hello World"wink;


.
Re: Java Programming For Dummies by skima(m): 10:29am On Mar 13, 2006


class LagosTemperature extends Temperature {


public LagosTemperature () {

this(0,0);

}

public LagosTemperature (int cel,int far) {

super(0,0);

}


public void rainy (){

int var=this.getCelsius();
var -=10;
this.setCelsius(var);
}

public void sunny (){

int var=this.getFarhenheit();
var +=10;
this.setFarhenheit(var);
}




}
Re: Java Programming For Dummies by skima(m): 10:32am On Mar 13, 2006

public class lagosTemperatureDemonstration {


LagosTemperature first= null;

//first =new LagosTemperature (10,6);


static private Temperature temp= null ;


public static void main (String args[]){

temp =new Temperature(6,9);

System.out.println("Celsius value: "+temp.getCelsius());
//System.out.println("Rainy in Lagos value: "+first.rainy());
}

}
Re: Java Programming For Dummies by sbucareer(f): 12:11am On Mar 14, 2006

Very good Skima, you have shown very keen interest and are learning fast. I will resume the tutorial now. Well done Skima.

Skima, I am so sorry about the DVD disk, I have been so busy lately you can't believe it. I have been going to conference upon conference and I just finished my three days BEA training my company sent me. I have burned the DVD as it is 3.8GB in size and have package it. I will send it this weekend, I cross my finger, don't be upset I feel bad about it myself please.
Re: Java Programming For Dummies by sbucareer(f): 12:21am On Mar 14, 2006


/*
* @(#)LagosRadio.java        1.00 22/02/2006
*
* Copyright (c) 2005-2006 Nairaland, Inc.
* Lagos, Nigeria.
* All rights reserved.
*
* This software is the confidential and proprietary information of nairaland Inc,
* ("Confidential Information"wink.  You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Nairaland.
*/

public class LagosRadio extends Radio{

/*
*Default constructor loads the frequency and volume to zero values
*
*/

  public LagosRadio ( ){
    this(0, 0);
  }//End LagosRadio default Constructor



/*
*Alternative constructor loads the frequency and volume to initial values
*
*/

  public LagosRadio (int freq, int vol ){
    super(freq, vol);
  }//End LagosRadio alternetive Constructor



/*
*Set the Frequency to  the FM channel
*
*/

  public void FM (){
    int temp = this.getFrequency( );
   temp += 10;
    this.setFrequency (temp);
  }//End FM method


/*
*Set the Frequency to  the AM channel
*
*/

  public void AM (){
    int temp = this.getFrequency( );
    temp -= 10;
    this.setFrequency (temp);
  }//End AM method
}//End LagosRadio class

Re: Java Programming For Dummies by skima(m): 10:53am On Mar 14, 2006
I understand. I will gladly wait to have those CDs.

hope we can continue the lecture,   though i've been learning the awt API . its been cool.
Re: Java Programming For Dummies by gbengaijot(m): 3:14pm On Mar 17, 2006
.
Re: Java Programming For Dummies by sbucareer(f): 8:44pm On Mar 17, 2006

Gbenga, you do not need to memorize anything just understand what I am doing and the syntax of java. Up until this moment if you were understanding the tutorial you should be able to develop at least a simple software like clock.

I will continue the tutorial after compiling a new one. It will be based on the previous tutorial. We will extend the Temperature to a GUI application by using buttons and commandButtons as Microsoft programmers calls it, controls.

Immediately after that we will go into Threads and exceptions handling and finished with a project, which I will post at the end of the tutorial. I will not continue with the C/C++ tutorial as gleyo is doing a fantastic job here.
Re: Java Programming For Dummies by skima(m): 10:38pm On Mar 17, 2006
ok SBU. pls continue with the tutorial.
Re: Java Programming For Dummies by gbengaijot(m): 3:01pm On Mar 21, 2006
Thanks man, i will try and keep up.
Re: Java Programming For Dummies by sbucareer(f): 6:23pm On Mar 21, 2006

I hope the small holidays has helped you in focusing and doing some revision on what we have done up till date. Well, I only hope it has. We will continue from where we stopped, which was building objects and developing software.

Software development is a crafty business and could be cumbersome or displeasing to some people, especially if you are migrating from another platform. I keep enumerating myself. Like I said before if you have done any programming before in the past learning Java is the most simplest language on earth today I know of!

I know many people will challenge me, but that is so true, java is easy to learn. I was at JavaUk06, I attended all the web tier development seminar and believe me every Java Evangelist should have been there. The next one is JavaUk07 in 2007.

Anyway lets continue with the tutorial. I will start the AWT (Abstract Window Toolkit). It is the API's used in developing graphical user interface in java (GUI).

Re: Java Programming For Dummies by sbucareer(f): 6:38pm On Mar 21, 2006


It is time now to introduce you to java API. Believe it or not, that is why I said java is easy. Java is the only programming language that the API is well documented. You can use Java Almanac to find any class you want to use.

This is how to use a class. I have define the meaning of class before at the beginning of the thread. First find out what that class does? and learn the methods that sets and gets the attributes of the class and other utility methods. Also find if the class has a father i.e. super class. In java we use the keyword extends to denote that a class has a father. Remember all the public and protected attributes of a super class is automatically inherited by the base class, hence child class.

The private keyword can only be seen or use by the class that implements it.  Let take example.

Re: Java Programming For Dummies by sbucareer(f): 6:57pm On Mar 21, 2006

Let say we want to use a class called PrintWriter. Let say we have never heard of PrintWriter and for some wired reason we decided we want to use it. First I will visit here and type PrintWriter in the search textfield and select search javaalmanac.com and click the Google Search button.

It will give you couple of hits to java almanac tutorial where PrintWriter has been used in an application development. It will also try to give you the definition of PrintWriter class. But to find the full usage of PrintWriter and all the attributes it supports and methods that it implements and if it is an interface or just a class that extends super class. We visit the API

You will need to learn how to search the API directory so you will not get bombadded with API's. First let look how to locate an API.

Java is packaged by sun under a directory structure called java. Every other package comes under java. It is also easy in java as the developer structured the directory in such a way that every utility is package into it intended usage name. i.e. awt, would be packaged under java\awt

In java application we don't say java\awt as it is used by the OS filling system to navigate to a directory structure. Java application uses java.awt. It simply means that java is a folder and awt is another folder under java.

The first box in API that is divided by frame says All Classes followed by Packages. Packages is another way in java to say directory structure i.e. java\awt. The second box says All Classes, they are organised in alphabetical order, so if you are looking for PrintWriter you have to scroll down to the first P and then find PrintWriter there.

I will give a small tutorial about Interface and why it is used in java

Re: Java Programming For Dummies by sbucareer(f): 7:18pm On Mar 21, 2006

Don't worry too much about interface, I never understood interfaces when I was learning java. It came to me when I started writing serious java apps.

"An interface is a specification that exists between software components that specifies a selected means of interaction, by means of properties of other software modules, which abstract and encapsulate their data" reference.

Basically, it helps in building modular apps. Many problem in todays application development is maintenance and versioning. Imagine, when you download a free software from the internet and install it into your system, after 6 months a new version came out with rich GUI and functionality, in the application you will go to window tab and click and select from the pull-down menu update. What happen then, it will install new features and replace all your interface with a new interface. When you shutdown the software and restart you will see a new GUI and new controls. This is achieved because the software is NOT hard coded into the application. The developer have used interface to connect every module to work as one. So when new version comes out it is easy for you to upgrade rather to de-install old one, download new one and install. Beside sometimes antivirus companies uses the same way to update your antivirus definition without re-installing new antivirus.

The point is that, it is a significant achievement in software development as requirements changes everyday. If requirement changes, you do not need to rewrite the software again, all you do is to replace the interface and plugin a new interface and the system is up and running in no time.

Re: Java Programming For Dummies by sbucareer(f): 7:48pm On Mar 21, 2006

I am very serious here people, DO NOT EVER develop a GUI application without drawing whatever you are planning to develop on a paper. Don't develop from your head. I know most of you are very intelligent programmers and would consider not to draw your application and dive into coding, it is wrong and could lead to software development abandoning.

Let say I want to develop my LagosRadio application into GUI. I will fisrt consider in my head how I would want it to be and draw it on a paper or project paper. Like this.

Re: Java Programming For Dummies by sbucareer(f): 8:12pm On Mar 21, 2006

Remember what I am doing here is to place all my attributes into the GUI application. Remember in my Radio class I have two attributes vloume and frequency and that is what I am modelling here and nothing else.

The textfield is to show the user the changes when he changes the frequency. I am not bother about volume as in real application the user would hear the increase in volume. I could model the volume to have a GUI to show the increase in volume. I will leave that for you to do.

Now, we have a picture of what we want to model. Another thing I would say but not emphasize is Layout management diagram. LayoutManager comes from Java API called LayoutManager.

Re: Java Programming For Dummies by sbucareer(f): 8:26pm On Mar 21, 2006

What am I doing on the above diagram. It is called Layout management diagram It is used to know in advance what Layout containers you would be using. There are many Layout containers in Java API. Some are simple and some are complex like GridbagLayout, when you are confident with LayoutManagers then try GridbagLayout.

The LayoutManagers I've used here are:

1. BorderLayout
2. GridLayout
3. FlowLayout

Other classes I used was JButton and JTextArea. These class can cause event to be generated i.e clicking and typing into the JTextArea or can implement listening interface, which will send action to the listening class if events happens.

Don't worry I will explain all these in due time.

Above diaggram the names means like example [B]BorderLayout:mainPanel[/b] means that that box is a container restricted with BorderLayout Manager and the name of the container in our application would be called mainPanel

Re: Java Programming For Dummies by sbucareer(f): 2:26pm On Mar 28, 2006


Note that I am using hand coding, if there is any code or syntax error try and correct it yourself as it is part of your learning if for any reason you cannot correct it let me know.

To facilitate modular software development. I will be using MVC to developing the LagosRadio artefact, hence software. Remember that MVC means Model View Controller

Model is application that make use of database or other external persistent facility or wrapper to a network or data model structure. Since we are not yet mapping our object to any external persistent like internet or database we will not be using Model on this application development.

View is the Visual representation of the artefact, hence software. It is is where you build and layout all the UI (User Interface) and presentations without any functionality.

The Controller is where all the functionality of the application is coded. Example when events are generated from the View it is registered to a Controller that will process it and send update UI back to View.

We are only going to use View and Controller. Our UI would be View and it would be called LagosRadioView.java class and our Controller will be class that processes the changes from the UI and we should call it LagosRadioController.java
Re: Java Programming For Dummies by sbucareer(f): 6:48pm On Mar 28, 2006

I have been on about API's and now you should all be familiar with Some few Java API. I would like the reader to demonstrate fluently the use of 10 API,s by the end of this week.

Like our Radio class we developed was an API. It does not, but if we use it in LagosRadio class it actually becomes a software. I would like you to look in Object API. You extends your Radio class to Object. I want you to tell me all the attributes and methods in Object class.

Now, let look at interfaces. Java do not support multiple inheritance like other language. In c/C++ a class can inherit many classes i.e.

class Point:: Public Circle, Public Triangle{
  public:
          Point( int=0, int =0);
          ~Point()
protected:
           int x, y;
};
}


In the above C/C++ code we can see that Point class have inherited two classes Circle and Triangle. In java we cannot do this. We can only inherit one class at a time. i.e

public class Point extends Circle{
       public Point (int a, int b){
                a = 0;
                b = 0;
       }


If we want to inherit Triangle we'd done this

public class Triangle extends Point{
       public Triangle (int a, int b){
                a = 0;
                b = 0;
       }



Remember we can still access Circle from Triangle class because Triangle extends Point, which extends Circle. This is efficient so we can build a mudular and maintainable software not a spider sotware will classes modular heritance all over everywhere, well that is what people at sun microSystem thinks.

Another improvement in modularity was interface. Modularity is building software in modules. Remember our Radio class is one module and our LagosRadio is another module, we can build GlobalRadio, LondonRadio, USARadio and many more my extending to our one class Radio module.

The emphasis is focused on maintanenace. We do not need to change all our classes when Radio mmaintenances. Imagine in our Radio Module we change the frequency from int to double because of requirement change. If we have 12 thousand application using that Radio Module, we are in trouble in respect to changing every class fron int to double.

But if we had used interface we do not need this issue. " An interface is a specification that exists between software components that specifies a selected means of interaction, by means of properties of other software modules, which abstract and encapsulate their data.  "

This mean that an interface is just a specification not really and API. It just specify a way for interacting with other modules in the system, the way they interact is left for you to implement it.

Interface provides a methods signatures to components or modular interaction but do not provide implementation of the interaction. The implement ation is left for the developer|_
Here is an example of interface:

public interface Radio{
      public void setUpRadioStation();
}

Now if I want to setup a LagosRadio station I will use the interface called Radio like this

public class LagosRadio implements Radio{

  public LagosRadio(){
  }

  public void setUpRadioSation(){
     , My implementation go here
  }
}

If anything changes in Radio interface, it is nothing to do with LagosRadio because my implementation was supplied by me. and many other application can use Radio interface.

Re: Java Programming For Dummies by sbucareer(f): 7:18pm On Mar 28, 2006

We are going to use one interface in this our application development. We are going to use a class called ActionListener. What this interface does it listen to events that are registered to it, like clicks.

When our LagosRadioView class fire an event to a registered components like button, the implementing class will process the events and return and update UI for us.

ActionListener only have one method in it called actionPerformed. If an interface specify any number of interface you MUST implement all the interface unless there is an Adapter class that can allow you to implement just one method. We will cover that later.

This is an action Listener API


/*
* @(#)ActionListener.java 1.16 03/12/19
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/

package java.awt.event;

import java.util.EventListener;

/**
* The listener interface for receiving action events.
* The class that is interested in processing an action event
* implements this interface, and the object created with that
* class is registered with a component, using the component's
* <code>addActionListener</code> method. When the action event
* occurs, that object's <code>actionPerformed</code> method is
* invoked.
*
* @see ActionEvent
* @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/eventmodel.html">Tutorial: Java 1.1 Event Model</a>
* @see <a href="http://www.awl.com/cp/javaseries/jcl1_2.html">Reference: The Java Class Libraries (update file)</a>
*
* @author Carl Quinn
* @version 1.16 12/19/03
* @since 1.1
*/
public interface ActionListener extends EventListener {

    /**
     * Invoked when an action occurs.
     */
    public void actionPerformed(ActionEvent e);

}

Re: Java Programming For Dummies by sbucareer(f): 8:37pm On Mar 28, 2006

These two class is the class we will be working on from now. To run the application use the LagosRadioController to run it and to build the UI, we use the LagosRadioView.

As the code stands now it compiles and run. there is the output of the LagosRadioController

Re: Java Programming For Dummies by sbucareer(f): 8:40pm On Mar 28, 2006


Below are the two classes.



LagosRadioView

/*
* @(#)LagosRadioView.java      0.1 28/03/06
*
* Copyright 2006 Niaraland.com. All rights reserved.
* Nairaland PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/

package radio;


/**
* The class building LagosRadio UI.

* @author Valentine Obih
* @version 0.1 28/03/06
* @since 0.0
*/

import javax.swing.JPanel ;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.event.DocumentListener;
import javax.swing.UIManager;


import java.awt.Font;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionListener;


public class LagosRadioView extends JPanel {

    private ActionListener listener;
    private DocumentListener documentListener;
 
    private JPanel         mainPanel;
    private JPanel         mainPanelNorth;
    private JPanel         mainPanelCenter;
    private JPanel         mainPanelSouth;
   
    private JTextArea      jtDisplay;
   
    private JTextField     jtfrequency;
    private JTextField     jtVolumeUp;
    private JTextField     jtVolumeDown;
   
    private JButton        volumeUp;
    private JButton        volumeDown;
    private JButton        frequencyUp;
    private JButton        frequencyDown;

    //Constructor, construct all the component to initial values
    public LagosRadioView(ActionListener listener, DocumentListener documentListener){
   
        try{
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName() );   
        }catch (Exception e ){
            e.getMessage( );
        }//End
   
        this.listener = listener;
        this.documentListener = documentListener;
       
        this.setLayout ( new BorderLayout() );
       
        mainPanel = new JPanel();
        mainPanel.setLayout (new GridLayout(3,1,2,2) );
       
        mainPanelNorth    = new JPanel ();
        mainPanelCenter   = new JPanel();
        mainPanelSouth    = new JPanel();
       
        mainPanelNorth.setLayout  ( new FlowLayout() );
        mainPanelCenter.setLayout ( new GridLayout( 2, 2, 2, 2) );
        mainPanelSouth.setLayout  ( new FlowLayout() );
       
        jtDisplay    = new JTextArea ("96.9", 5, 37);
        jtfrequency  = new JTextField( );
        jtVolumeUp   = new JTextField( );
        jtVolumeDown = new JTextField( );
       
        jtfrequency.setText  ( "Adjust Frequency" );
        jtVolumeUp.setText   ( "increase volume" );
        jtVolumeDown.setText ( "Decrease volume" );
        jtVolumeDown.setEditable( false);
        jtVolumeUp.setEditable (false );
        jtfrequency.setEditable ( false );
       
       
        volumeUp      = new JButton();
        volumeDown    = new JButton();
        frequencyUp   = new JButton();
        frequencyDown = new JButton();
       
        //Register each to an action listener
        volumeUp.setActionCommand( "Up" );
        volumeDown.setActionCommand( "Down" );
        frequencyUp.setActionCommand( "+" );
        frequencyUp.setActionCommand ("-" );
       
        volumeUp.addActionListener     ( this.listener );
        volumeDown.addActionListener   ( this.listener );
        frequencyUp.addActionListener  ( this.listener );
        frequencyDown.addActionListener( this.listener );
        jtDisplay.getDocument().addDocumentListener( documentListener );
       
        volumeUp.setText("+"wink;
        volumeDown.setText("-"wink;
        volumeUp.setFont( new Font ("Dialog",Font.BOLD, 24) );
        volumeDown.setFont( new Font ("Dialog",Font.BOLD, 24) );
        jtfrequency.setFont( new Font ("Dialog",Font.BOLD, 24) );
        jtVolumeUp.setFont( new Font ("Dialog",Font.BOLD, 24) );
        jtVolumeDown.setFont( new Font ("Dialog",Font.BOLD, 24) );
        jtDisplay.setFont( new Font ("Dialog",Font.ITALIC, 14) );
       
        frequencyUp.setText("Up"wink;
        frequencyDown.setText( "Down" );
       
        //Set all the component into the mainPanel and position them nicely
       
        mainPanelNorth.add ( jtDisplay );
        mainPanel.add (mainPanelNorth, BorderLayout.NORTH);
       
        mainPanelCenter.add ( volumeUp );
        mainPanelCenter.add ( jtVolumeUp );
        mainPanelCenter.add ( volumeDown );
        mainPanelCenter.add (jtVolumeDown );
        mainPanel.add (mainPanelCenter, BorderLayout.CENTER);
       
       
       mainPanelSouth.add ( frequencyUp );
       mainPanelSouth.add ( jtfrequency );
       mainPanelSouth.add ( frequencyDown );
       mainPanel.add ( mainPanelSouth, BorderLayout.SOUTH );

        this.add( mainPanel);
    }//End Constructor
   
    public String getTextArea ( ){
        return jtDisplay.getText();
    }//End getTextArea
   
    public void setJTextArea( int toSet){
        double defaultText = Double.parseDouble( getTextArea());
        double d = defaultText - (double )toSet;
        String set = Double.toString( d );
        jtDisplay.setText( set );
    }//End setTextArea   
}//End LagosRadioView


LagosRadioController

/*
* @(#)LagosRadioView.java      0.1 28/03/06
*
* Copyright 2006 Niaraland.com. All rights reserved.
* Nairaland PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/

package radio;


/**
* The class building LagosRadio UI.

* @author Valentine Obih
* @version 0.1 28/03/06
* @since 0.0
*/

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.event.DocumentListener;
import javax.swing.event.DocumentEvent;
import javax.swing.JApplet;
import javax.swing.JFrame;
import LagosRadioView;
import LagosRadio;


public class LagosRadioController extends JApplet implements ActionListener, DocumentListener {

    private LagosRadioView lagosRadioView;
    private LagosRadio radio;
   
    public LagosRadioController( ){
   
        lagosRadioView = new LagosRadioView( this, this );
        radio          = new LagosRadio ( );
    }//End Constructor
   
    public void init(){
        this.getContentPane().add( lagosRadioView );
    }//End init
   
    //Any class that implements ActionListener
    //interface MUST implement this method
    public void actionPerformed(ActionEvent e){
        String event = e.getActionCommand();
        if (event.equals( "Up" ) ){
            radio.setFrequency( 1 );
            radio.FM();
            lagosRadioView.setJTextArea ( radio.getFrequency() );
        }if (event.equals( "Down" ) ){
            radio.setFrequency( 1 );
            radio.AM();
            lagosRadioView.setJTextArea ( radio.getFrequency() );
        }if (event.equals( "+" ) ){
            radio.setVolume( 1 );
        }if (event.equals( "-" ) ){
            radio.setVolume( 1 );
        }
       
    }//End actionPerformed
   
    //DocumentListener implement three methods, insertUpdate, changedUpdate. removeUpdate
    public void changedUpdate (DocumentEvent ev ){
    }//End changedUpdate
   
    public void insertUpdate (DocumentEvent ev){
    }//End insertUpdate
   
    public void removeUpdate (DocumentEvent ev ){
    }//End removeUpdate
   
    public static void main (String args[]){
        JFrame frame = new JFrame ("Radio for Lagos people"wink;
        LagosRadioController demo = new LagosRadioController();
        frame.getContentPane().add ( demo );
        demo.init();
        frame.pack();
        frame.show();
        frame.setLocation(500, 100);
        frame.setSize(430, 600);
        frame.setVisible(true);
       
    }//End main
       
}//End LagosRadioController



Remember that these classes will be modified to look like this

Re: Java Programming For Dummies by skima(m): 9:08pm On Mar 28, 2006
Am going over the tutorial online, I will bring my flash to download it.

@sbu how about my request concernnig the softwares?

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (Reply)

Nigerian Software Engineer given test to prove he is an engineer at JFK Airport / Facebook Is Suing Me For This / Learning To Program With Java by the Fulaman

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 88
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.