Help for a java Newbie please!

Hey guys I'm writing this program for my Java 1 class I can't seem to get it complie. This is the first time we've worked with building out own classes. And I have a feeling that I'm doing something small and silly. If someone could just take a look at it I'd be more than happy.
This is the Class we had to write it has 4 different fields of "employee information" This one looks fine.
public class Employee
   private String name;           
   private int idNumber;      
   private String department;
   private String position;
   public Employee(String theName, int theIdNumber, String theDepartment,
                    String thePosition)
         name = theName;
         idNumber = theIdNumber;
         department = theDepartment;
         position = thePosition;
   public void setName( String theName )
         name = theName;
   public void setIdNumber( int theIdNumber )
            idNumber = theIdNumber;
   public void setDepartment( String theDepartment )
            department = theDepartment;
   public void setPosition( String thePosition )
            position = thePosition;
   public String getName()
            return name;
  public int getIdNumber()
            return idNumber;
  public String getDepartment()
              return department;
  public String getPosition()
             return position;
} I think this one is good, it compiles just fine.
Now we had to write a program that accesses the class and store "employee information" for 3 different employees and recall it. It only recalls for one right now, it doesn't compile though... sad day. Any help would be AMAZING THANKS in advanced.
import javax.swing.JOptionPane;
public class EmployeeInfo
   public static void main(String[] args)
       String firstEmployeeName = "Susan Meyers";
       String secondEmployeeName = "Mark Jones" ;
       String thridEmployeeName = "Joy Rogers";
       int firstEmployeeId = 47899;
       int secondEmployeeId = 39119;
       int thirdEmployeeId = 81774;
       String firstEmployeeDepartment = "Accounting";
       String secondEmployeeDepartment = "IT";
       String thirdEmployeeDepartment = "Manufacturing";
       String firstEmployeePosition = "Vice President";
       String secondEmployeePosition = "Programmer";
       String thirdEmployeePosition = "Engineer";
       Employee Employee1 = new Employee();
       Employee1.setName(firstEmployeeName);
       Employee1.setIdNumber(firstEmployeeId);
       Employee1.setDepartment(firstEmployeeDepartment);
       Employee1.setPosition(firstEmployeePosition);
       Employee Employee2 = new Employee();
       Employee2.setName(secondEmployeeName);
       Employee2.setIdNumber(secondEmployeeId);
       Employee2.setDepartment(secondEmployeeDepartment);
       Employee2.setPosition(secondEmployeePosition);
       Employee Employee3 = new Employee();
       Employee3.setName(thirdEmployeeName);
       Employee3.setIdNumber(thirdEmployeeId);
       Employee3.setDepartment(thirdEmployeeDepartment);
       Employee3.setPosition(thirdEmployeePosition);
       JOptionPane.showMessageDialog(null, "Name          ID Number   " +
                                     "Department      Position     /n" +
                                     Employee1.getName() + "   " +
                                     Employee1.getIdNumber() + "   " +
                                     Employee1.getDepartment() + "      /n");
  System.exit(0);
}

Also the compiling error I get is
O:\HomeWork\CIS 260\Assignment 5\EmployeeInfo.java:28: cannot find symbol
symbol  : constructor Employee()
location: class Employee
       Employee Employee1 = new Employee();
                               ^
O:\HomeWork\CIS 260\Assignment 5\EmployeeInfo.java:39: cannot find symbol
symbol  : constructor Employee()
location: class Employee
       Employee Employee2 = new Employee();
                               ^
O:\HomeWork\CIS 260\Assignment 5\EmployeeInfo.java:50: cannot find symbol
symbol  : constructor Employee()
location: class Employee
       Employee Employee3 = new Employee();
                               ^
O:\HomeWork\CIS 260\Assignment 5\EmployeeInfo.java:52: cannot find symbol
symbol  : variable thirdEmployeeName
location: class EmployeeInfo
       Employee3.setName(thirdEmployeeName);
                            ^
4 errors

Similar Messages

  • Urgent help for extremely new newbie - please.

    I have been asked to set up a Labview program to graph and log
    thermocouple temperature measurements from two Keithley 2001 Multimeters
    and a DC voltage from HP 34420A nano Volt/Micro Ohm Meter. All three are
    instruments are IEEE interfaced to a Windows 98 machine running Labview
    (version 5.0 I think.) I have a couple of weeks to get the job done.
    The problem is that I have never used Labview. I am an experienced C,
    Fortran, BASIC programmer but this graphical system is completely new.
    My situation is complicated because I am told the experienced person who
    was originally going to set this up left under bad circumstances and
    took many of the manuals. I would greatly appreciate any and all help I
    can get.
    Please feel free to send responses directly to me.
    [email protected]
    Thanks,
    Stan Thomas

    In article
    <[email protected]>,
    Stan Thomas
    wrote:
    > I have been asked to set up a Labview program
    to graph and log
    > thermocouple temperature measurements from two
    Keithley 2001 Multimeters
    > and a DC voltage from HP 34420A nano Volt/Micro
    Ohm Meter. All three are
    > instruments are IEEE interfaced to a Windows 98
    machine running Labview
    > (version 5.0 I think.) I have a couple of
    weeks to get the job done.
    > The problem is that I have never used Labview.
    I am an experienced C,
    > Fortran, BASIC programmer but this graphical
    system is completely new.
    > My situation is complicated because I am told
    the experienced person who
    > was originally going to set this up left under
    bad circumstances and
    > took man
    y of the manuals. I would greatly
    appreciate any and all help I
    > can get.
    >
    > Please feel free to send responses directly to
    me.
    >
    > [email protected]
    >
    > Thanks,
    >
    > Stan Thomas
    >
    >
    All manuals are available at
    http://www.natinst.com/manuals/
    They also have an example program database at
    http://www.natinst.com/support/epd/
    Sten Karlson
    D/A Production AB
    SWEDEN
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

  • Help for a Mac newbie please!

    Hi all,
    I just got my lovely MacBook Pro yesterday... and could use some help with these 2 problems...
    1 - on my Windows PC I have a VPN connection to 1 of my clients. When I tried to set it up on the Mac it's asking for an IPSEC shared secret? Is there any way to disable this requirement, or does my client have to set a key on his server?
    2 - I am having a problem connecting to my windows laptop through my home network...if I enable the Guest account on windows XP, the MacBook connects no problem. If however [as I really want to] I try to connect as a "proper" user with username and password, the Mac keeps telling me the username or password is wrong...which it definitely isn't!
    My thought is regarding the "domain"...I don't have one set up at home...just a workgroup called "home"...so when I try to login I am only typing in the username...the tooltip for the usernae field says domain\username...do I need to put anything here for domain, and if I do, what...as there isnt one!
    Thanks,
    Nige

    Try my post
    http://discussions.apple.com/thread.jspa?threadID=1359723&tstart=0

  • Help for an Apple newbie please???

    Hi all, I have just acquired my first Apple computer which is an older PowerPC G3 running OS X 10.1.2
    I would like to know how I go about upgrading the OS to a later version please? For example can I simply purchase a copy of OS X 10.3 or 4 and install it or do I need to go through the intermediate versions (10.2 to 10.3 etc)?
    Does anyone know if these later OS are even compatible with the PowerPC G3?
    Sorry for the basic questions, but as I say I am a complete novice with Apple computers and your guidance would be greatly appreciated.
    thanks,
    Graham
    PowerPC G3   Mac OS X (10.1.x)  

    Hi Graham,
    you have to buy the retail full install disks, regardless whether you upgrade to 10.3. or 10.4. Please also post the exact model of G3 you have. Not all G3s are compatible with 10.3 and only a few can run 10.4. You might want to check out the system requirements:
    Requirements for Mac OS X 10.3
    Requirements for Mac OS X 10.4
    Be aware that you cannot upgrade directly from 10.1.x to 10.4! You either have to upgrade to 10.2 or 10.3 first or you perform an Erase&Install.
    Most likely you will need a firmware upgrade prior to the upgrade: Firmware Upgrades
    If this answered your question please consider granting some stars: Why reward points?

  • Help for a java newbie - JPanel

    Well, im in my 3rd year of university and just started java... After 2 years of Ada, im quite happy ;)
    My problem is when creating a class for drawing a train. I extend JPanel and have a paint component,. However when i extend the class for drawing a train, it doesnt call the new paint component!!!
    Does anyone know what im doing wrong. I suspect it may be due to drawpane only being in the superclass... ?
    <CODE>
    * This code is based on a Swing tutorial example that was
    * in turn based on an example program provided by John Vella.
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    class DrawTrain extends JFrame
    public DrawPane drawArea; //PRIVATE // Provides the drawing area.
    private RSUnit[] train;
    public int scaleFactor = 1; //PRIVATE
    private class WindowHandler extends WindowAdapter
    public void windowClosing (WindowEvent we)
    // dispose(); // Frees program frame resources.
    System.exit(0); // Stops the program normally.
    } //windowClosing
    } //class WindowHandler
    protected class DrawPane extends JPanel
    protected void paintComponent (Graphics g)
    super.paintComponent(g);
    g.setColor(Color.BLUE);
    int offset = 20;
    for (int i = 0; i < train.length; i++) {
    int tempLOB = 250;
    int tempHMX = 100;
    g.fillRect(offset, 20, scaleFactor*tempLOB,scaleFactor*tempHMX);
    offset = offset + tempLOB + 20;
    // System.out.println(offset);
    // System.out.println(tempLOB);
    // System.out.println(tempHMX);
    // for (int i = 0; i < train.length; i++) {
    // System.out.println((train.desc).lob);
    // System.out.println((train.desc).hmx);
    } //paintComponent
    } //class DrawPane
    public DrawTrain (RSUnit[] train)
    this.train = train;
    setTitle("ScrollDemo");
    //ovalBool = false;
    JPanel mainPane= new JPanel();
    mainPane.setOpaque(true);
    setContentPane(mainPane);
    // Sets-up the instruction pane:
    JPanel instructPanel= new JPanel(new GridLayout(0,1));
    JLabel instructMain=
    new JLabel("Click main mouse button to place a circle.");
    JLabel instructAlt=
    new JLabel("Click alt. mouse button to clear drawing area.");
    instructPanel.add(instructMain);
    instructPanel.add(instructAlt);
    // Sets-up the drawing area:
    drawArea= new DrawPane();
    drawArea.setBackground(Color.white);
    drawArea.setPreferredSize(new Dimension(10000,10000));
    // Puts the drawing area in a scroll pane:
    JScrollPane scroller= new JScrollPane(drawArea);
    scroller.setPreferredSize(new Dimension(500,500));
    // Lays-out the main panel:
    mainPane.setLayout(new BorderLayout());
    mainPane.add(instructPanel,BorderLayout.NORTH);
    mainPane.add(scroller,BorderLayout.CENTER);
    addWindowListener(new WindowHandler());
    pack();
    setVisible(true);
    } //constructor
    public static void main (String args[])
    RSUnit[] train2=
    new Loco (TTDescs.ldesc),
    new Tender(TTDescs.tdesc),
    new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc)
    DrawTrain DD = new DrawTrain(train2);
    DD.scaleFactor =2;
    DD.drawArea.repaint();
    try {
    Thread.sleep(100); } catch(InterruptedException ie) {}
    DD.scaleFactor =3;
    DD.drawArea.repaint();
    try {
    Thread.sleep(100); } catch(InterruptedException ie) {}
    DD.scaleFactor =2;
    DD.drawArea.repaint();
    try {
    Thread.sleep(100); } catch(InterruptedException ie) {}
    DD.scaleFactor =3;
    DD.drawArea.repaint();
    } //main
    } //class SimpleScrollDemo
    </CODE>
    <CODE>
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    class DrawOvalOnTrain extends DrawTrain {
    private Pos2D ovalPos;
    private boolean ovalBool;
    private class DrawOvalOnPane extends DrawTrain.DrawPane {
    protected void paintComponent (Graphics g) {
    super.paintComponent(g);
    System.out.println("Hi");
    if (ovalBool) {
    g.drawOval((int)(ovalPos).x, (int)(ovalPos).y, 5, 5);
    protected class MyMouseListener extends MouseInputAdapter
    public void mouseReleased (MouseEvent me)
    if (SwingUtilities.isRightMouseButton(me))
    ovalBool = false;
    else
    int x= me.getX();// - dia/2; if (x < 0) x= 0;
    int y= me.getY();// - dia/2; if (y < 0) y= 0;
    //fix to do between each train
    //perhaps, if clicked again and ovalBool = true, then take away circle
    if ((x >= 270) && (x < 370) && (y >=20) && (y <=120)) {
    ovalPos = new Pos2D((float)x,(float)y);
    ovalBool = true;
    System.out.println(ovalPos);
    // Saves the new rectangle.
    } //if
    drawArea.repaint();
    } //mouseReleased
    } //class MyMouseListener
    DrawOvalOnTrain(RSUnit[] train) {
    super(train);
    drawArea.addMouseListener(new MyMouseListener());
    ovalBool = false;
    public static void main (String[] args) {
    RSUnit[] train2=
    new Loco (TTDescs.ldesc),
    new Tender(TTDescs.tdesc),
    new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc)
    new DrawOvalOnTrain(train2);
    System.out.println("HI");
    </CODE>

    It looks like you're doing this the wrong way round, extending DrawPane, but creating an instance of DrawPane,
    instead of DrawOvalOnPane.
    see if this small example makes any sense
    (switch between creating instances of DrawPanel and DrawPanelTwo, and see the difference)
    import java.awt.*;
    import javax.swing.*;
    class Testing extends JFrame
      DrawPanel dp = new DrawPanel(); //toggle these to see the difference
      //DrawPanelTwo dp = new DrawPanelTwo();
      public Testing()
        setLocation(200,100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(600,300);
        getContentPane().add(dp);
      public static void main(String[] args){new Testing().setVisible(true);}
    class DrawPanel extends JPanel
      public void paintComponent(Graphics g)
        super.paintComponent(g);
        g.drawRect(50,50,250,150);
    class DrawPanelTwo extends DrawPanel
      public void paintComponent(Graphics g)
        super.paintComponent(g);
        g.drawOval(350,50,150,150);
    }

  • Help for a java newbie

    Well, im in my 3rd year of university and just started java... After 2 years of Ada, im quite happy ;)
    My problem is when creating a class for drawing a train. I extend JPanel and have a paint component,. However when i extend the class for drawing a train, it doesnt call the new paint component!!!
    Does anyone know what im doing wrong. I suspect it may be due to drawpane only being in the superclass... ?
    <CODE>
    * This code is based on a Swing tutorial example that was
    * in turn based on an example program provided by John Vella.
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    class DrawTrain extends JFrame
    public DrawPane drawArea; //PRIVATE // Provides the drawing area.
    private RSUnit[] train;
    public int scaleFactor = 1; //PRIVATE
    private class WindowHandler extends WindowAdapter
    public void windowClosing (WindowEvent we)
    // dispose(); // Frees program frame resources.
    System.exit(0); // Stops the program normally.
    } //windowClosing
    } //class WindowHandler
    protected class DrawPane extends JPanel
    protected void paintComponent (Graphics g)
    super.paintComponent(g);
    g.setColor(Color.BLUE);
    int offset = 20;
    for (int i = 0; i < train.length; i++) {
    int tempLOB = 250;
    int tempHMX = 100;
    g.fillRect(offset, 20, scaleFactor*tempLOB,scaleFactor*tempHMX);
    offset = offset + tempLOB + 20;
    // System.out.println(offset);
    // System.out.println(tempLOB);
    // System.out.println(tempHMX);
    // for (int i = 0; i < train.length; i++) {
    // System.out.println((train.desc).lob);
    // System.out.println((train[i].desc).hmx);
    } //paintComponent
    } //class DrawPane
    public DrawTrain (RSUnit[] train)
    this.train = train;
    setTitle("ScrollDemo");
    //ovalBool = false;
    JPanel mainPane= new JPanel();
    mainPane.setOpaque(true);
    setContentPane(mainPane);
    // Sets-up the instruction pane:
    JPanel instructPanel= new JPanel(new GridLayout(0,1));
    JLabel instructMain=
    new JLabel("Click main mouse button to place a circle.");
    JLabel instructAlt=
    new JLabel("Click alt. mouse button to clear drawing area.");
    instructPanel.add(instructMain);
    instructPanel.add(instructAlt);
    // Sets-up the drawing area:
    drawArea= new DrawPane();
    drawArea.setBackground(Color.white);
    drawArea.setPreferredSize(new Dimension(10000,10000));
    // Puts the drawing area in a scroll pane:
    JScrollPane scroller= new JScrollPane(drawArea);
    scroller.setPreferredSize(new Dimension(500,500));
    // Lays-out the main panel:
    mainPane.setLayout(new BorderLayout());
    mainPane.add(instructPanel,BorderLayout.NORTH);
    mainPane.add(scroller,BorderLayout.CENTER);
    addWindowListener(new WindowHandler());
    pack();
    setVisible(true);
    } //constructor
    public static void main (String args[])
    RSUnit[] train2=
    new Loco (TTDescs.ldesc),
    new Tender(TTDescs.tdesc),
    new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc)
    DrawTrain DD = new DrawTrain(train2);
    DD.scaleFactor =2;
    DD.drawArea.repaint();
    try {
    Thread.sleep(100); } catch(InterruptedException ie) {}
    DD.scaleFactor =3;
    DD.drawArea.repaint();
    try {
    Thread.sleep(100); } catch(InterruptedException ie) {}
    DD.scaleFactor =2;
    DD.drawArea.repaint();
    try {
    Thread.sleep(100); } catch(InterruptedException ie) {}
    DD.scaleFactor =3;
    DD.drawArea.repaint();
    } //main
    } //class SimpleScrollDemo
    </CODE>
    <CODE>
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    class DrawOvalOnTrain extends DrawTrain {
    private Pos2D ovalPos;
    private boolean ovalBool;
    private class DrawOvalOnPane extends DrawTrain.DrawPane {
    protected void paintComponent (Graphics g) {
    super.paintComponent(g);
    System.out.println("Hi");
    if (ovalBool) {
    g.drawOval((int)(ovalPos).x, (int)(ovalPos).y, 5, 5);
    protected class MyMouseListener extends MouseInputAdapter
    public void mouseReleased (MouseEvent me)
    if (SwingUtilities.isRightMouseButton(me))
    ovalBool = false;
    else
    int x= me.getX();// - dia/2; if (x < 0) x= 0;
    int y= me.getY();// - dia/2; if (y < 0) y= 0;
    //fix to do between each train
    //perhaps, if clicked again and ovalBool = true, then take away circle
    if ((x >= 270) && (x < 370) && (y >=20) && (y <=120)) {
    ovalPos = new Pos2D((float)x,(float)y);
    ovalBool = true;
    System.out.println(ovalPos);
    // Saves the new rectangle.
    } //if
    drawArea.repaint();
    } //mouseReleased
    } //class MyMouseListener
    DrawOvalOnTrain(RSUnit[] train) {
    super(train);
    drawArea.addMouseListener(new MyMouseListener());
    ovalBool = false;
    public static void main (String[] args) {
    RSUnit[] train2=
    new Loco (TTDescs.ldesc),
    new Tender(TTDescs.tdesc),
    new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc), new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc),
    new Wagon (TTDescs.wdesc)
    new DrawOvalOnTrain(train2);
    System.out.println("HI");
    </CODE>

    First, use the [url http://forum.java.sun.com/features.jsp#Formatting]format tags to find the tags for formatting code.
    As for your problem with the new paintComponent, you never create an instance of DrawOvalOnPane. The main panel is still just a DrawPane unless you specifically add the new one. However, with the way you have set this up, just calling the DrawTrain constructor in your subclass will result in a normal DrawPane to be used. You'll have to tell the scrollpane to change it's viewport component to be an instance of the subclassed pane.
    I hope that wasn't too confusing. Best of luck!
    -JBoeing

  • Help for a Bluetooth Newbie please!

    Hi
    I have just got a Nokia 6230i (which looks like i may have alot of problems with according to your forums!).
    I am trying to connect up to my PC. I have a very basic question which is, how do i know if my computer has bluetooth on it? it is Windows XP.
    When i installed the PC Suite disc i got with the phone it said it said my available connections were bluetooth, serial cable and USB, which i took to meaning i had bluetooth on my computer! Am i completely wrong?
    I am completely new to all this bluetooth stuff sorry. i have made my phone visible (if this is the same as 'unhiding' it.) and urned it on, but when i try to connect through the PC Suite software, it say it cannot be connected.
    Help!!

    Yes, the other phrase is "dongle", typically what is sold are small Bluetooth adapters (dongles) that can be attached to the USB port in your PC.
    There are certainly many options available. If you go to a store I would try to make sure form the sales person that the dongle supports Microsoft Windows XP Bluetooth.
    Microsoft has Bluetooth sw in Windows in Windows XP, but the Service Pack needs to be 2. YOu can check you system setup easily by:
    Right click on the "phone icon" in your Windows Tray (area in bottom right in your screen) Select "about PC Suite" from the list and click. Windows opens, select "system info" and you can see what Windows version you have.
    If you have something like this visible:
    Operating system:
    Microsoft Windows XP
    Build 2600
    Service Pack 2
    Bluetooth stack:
    Microsoft Bluetooth stack
    Version 5.1.2600.2180
    Then it will be relatively easy to take Bluetooth into use in your PC.
    Just attach the dongle to USB port and let Windows guide you through the Bluetooth dongle driver install process.
    Then you will have the possibility to connect your phone and Nokia PC Suite over Bluetooth.

  • Desperate need of HELP for a Java GUI !

    Hy people,
    I am working on a project trying to display a GUI where its output is dependant on the user's input.
    Here is a brief example of what Im trying to do:
    You have a GUI that contains 2 panels. buttonPanel and DisplayPanel.
    buttonPanel contains:
    a dropdown list: includes choices of colors,
    2 textfields: the length: (can enter from 1 to 100),
    the width: (can enter from 1 to 100),
    a checkbox: random
    and a start button.
    Now when I enter ALL the information needed in the components and then press start button, it should display its result in the DisplayPanel.
    In my case, I want to display just one rectangle to start off. That will have its color changed by the dropdown choice made. Now Im forgetting about the length and width textfield for now cause that will be incorporated for something else later on.
    I created a buttonLitener for the start button and an ItemListener for the dropDown List.
    I declared and drew a rectangle specific to the color chosen by the user in a class I created called DrawingCanvas that extends Canvas and that overrides the paint method.
    BUT My problem is that it does not display the rectangle I created in my DisplayPanel when I press on the Start button.
    I provided a screenshot of the GUI interface, and my 2 java files. Is someone brave enough to fix my problem or even tell me what Im doing wrong ?!
    ScreenShot:
    http://www.hybrid.concordia.ca/~boumbo/GUIProblem.jpg
    Java Files:
    http://www.hybrid.concordia.ca/~boumbo/GUI.zip]Java Files
    PLEASE I am not Amazing with Java, and pulling my hair out in figuring out my problem.
    Thank you.

    Seriously, look at the first reply in the following thread. It gives a pretty good idea of generally accepted good practices in the forum.
    http://forum.java.sun.com/thread.jspa?threadID=603683
    It is probably better to post code directly on the forum than to try to get people to take the extra steps to download, unzip, and compile your code. That way, they can just cut and paste to try to compile. Be sure to use [code][/code] tags to make your code easier to use. And, try to provide a small example of your problem if the code is very long or complex.
    Another piece of advice. Don't try to challenge the regulars in this forum to prove that they are smart enough, brave enough, whatever enough to tackle YOUR problem. The regulars here include software engineers, authors, and generally very smart and experienced people They don't need to prove themselves to anyone.
    What they want to see is that you have genuinely tried to understand your problem, rather than just running to the forum the first time you get a compiler error.
    You seem to have been working on this problem. Go ahead and create a test case that shows what the problem is. Quite frequently, just doing that will help you solve the problem yourself.
    Good luck.
    RD-R
    � {�
    Mon Mar 07 00:57:45 EST 2005
    Pseudo-random saying number 257 of 635
    For every complex problem, there is a solution that is simple, neat,
    and wrong.
                    -- Henry Louis Mencken

  • Help with the java system, please !!

    Each time i execute the following statement,
    create or replace java system;
    I get the following errors:
    VM: Killing process oracle
    end-of-file on communication channel
    Can anyone help me with this problem, please?

    My platform is Linux - Red Hat 6.2 -.
    I did the changes in the sizes of the java_pool and shared_pool and I got the same problem.
    But, I've just fixed the problem b increasing the size of the swap partition. I changed it from 100 MB to 1000 MB. Then, I got everything very clean.
    Thanks a lot for your help and your consideration.

  • Need help for downloading java at mac book retina

    i want to download java at my mac book pro retina but everytime we downloaded its not working..i need this because im going to use it to open my bank account...everytime i gonna check my bank account i need to use another computer not this my mac.why?? can you help me please.

    Banks do NOT use Java-in-a-Browser for anything, at all. If you have received a suggestion to conduct banking with JAVA enabled in your Browser, someone is attempting to commit a crime, with you as the intended victim.  You are being scammed and should report it to the Police.

  • Need help for a java assignment

    i am having trouble with my java assignment, so i thought i will give it a try here and hope that i will get some help. ^^
    the method is to load a file and try to create an object out of it. but even though the sequence of loading is correct, the method still doesn't work. there is no error in compilation and the coding seems correct to me. help?
    the codes are below and if any other code is needed. ask me for it. =)
    public void saveToFile(String fileName)
    try
    File f = new File(fileName);
    PrintWriter p = new PrintWriter(f);
    p.println(fileName);
    p.println("***");
    for(int i =0; i<categories.length; i++)
    if(categories[i] != null)
    p.print(categories.getCatNum());
    Car[] x = categories[i].getListOfCars();
    for(int q=0; q<x.length;q++)
    if(x[q] != null)
    if(x[q] instanceof EconomyCar)
    p.print("Economy Car");
    x[q].getCarNum();
    x[q].getBrand();
    x[q].getPrice();
    else if(x[q] instanceof LuxuryCar)
    p.print("Luxury Car");
    x[q].getCarNum();
    x[q].getBrand();
    x[q].getPrice();
    else if(x[q] instanceof SportCar)
    p.print("Sport Car");
    x[q].getCarNum();
    x[q].getBrand();
    x[q].getPrice();
    p.println(x[q].getCarNum());
    p.println(x[q].getBrand());
    p.println(x[q].getPrice());
    p.close();
    catch(IOException e)
    System.out.println("IO Error");
    public void loadFromFile(String fileName)
    try
    File file = new File(fileName);
    Scanner sc = new Scanner(file);
    String shopName = sc.nextLine();
    CarMart Cm = new CarMart(shopName);
    while(sc.hasNextLine());
    String line = sc.nextLine();
    while(line.equals("***"));
    int CateNum = sc.nextInt(); sc.nextLine();
    Category Cate = new Category(CateNum);
    String typeOfCar = sc.nextLine();
    if(typeOfCar.equals("Economy Car"))
    String CarNum = sc.nextLine();
    String brand = sc.nextLine();
    double price = sc.nextDouble(); sc.nextLine();
    EconomyCar e = new EconomyCar(CarNum, brand, price);
    else if(typeOfCar.equals("Luxury Car"))
    String CarNum = sc.nextLine();
    String brand = sc.nextLine();
    double price = sc.nextDouble(); sc.nextLine();
    LuxuryCar l = new LuxuryCar(CarNum, brand, price);
    else if(typeOfCar.equals("Sport Car"))
    String CarNum = sc.nextLine();
    String brand = sc.nextLine();
    double price = sc.nextDouble(); sc.nextLine();
    SportCar s = new SportCar(CarNum, brand, price);
    sc.close();
    catch(FileNotFoundException a)
    System.out.println("Filename not found");

    morgalr wrote:
    erm. its supposed to save a file containing all the data of a car. then the loadFromFile method is supposed to load that file and create a car out of it.I want one, could you please make mine a Dodge Viper.A fascinating insight into your secret worries about your masculinity :)

  • Help for using java class in forms 9i

    hi
    i have been trying to use java class in forms9i but unable to execute ,i have encountered exceptions,for which exception handlers have been declared like ora_java.java_error and exception_thrown but failed to handle run time errors , i have tried all ways from my side.
    my java class returns a simple string
    i need help on various work arounds
    thanks in advance
    yash

    sir
    i have written a simple java class which returns a string hello imported using a java importer in forms 9i
    and i call my class in when button press trigger
    i have also imported java.lang.Exception for my exception handlers,i have no compile errors,but when i run my forms i get run time error and my exception handlers fail to trap it . ihave no idea how to proceed .
    should i use bean area in form and call the class using fbean from custom item rigger if so please explain
    can i get sample code example for calling a java class methods from forms.
    thanks
    yash

  • Compression help for skateboard web movie, please....

    hi,
    can anyone help me here?
    ok,here is the situation.
    i want to get the best compression (file size,quality etc) for a 6 min fast moving skateboard film with graphics and slow motion sequences.
    i have compressor and quicktime pro too.
    please give me some advice on whats best.
    i would like to get near the quality of a normal mpeg comression.
    thanks

    I would stick with David's suggestion. You're going to have to compromise size and quality. Any time you're dealing with web media you need to be sensitive to file size and download times. In order to accommodate an acceptable file size that caters to your market you'll have to compress the video which in turn will degrade quality. If your not happy with 800 kbps h.264 try again with a slightly higher or lower bit rate.

  • Safari display help for a Mac newbie!

    Hi everyone,
    I have never used Macs before so I hope this question isn't too ridiculous...!
    When using Safari, all the web pages I open are either half or three-quarters the size of the screen even when I use the little plus (maximize) button in the top left hand corner.
    Only one page has ever fitted the full screen. Is there any way to make all pages opened with safari full-screen size? I've fiddled around with the settings but to no avail...
    Any help would be greatly appreciated!

    The easiest way I have found to do this is to high light and drag the following java script to your bookmarks menu bar. Name it any thing you want. I called mine re-size. Click it and it will expand the window full page. It works with Safari 2, safari 3 beta, FireFox, Omni-wed, and SeaMonkey.
    Full screen script for browsers
    javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);

  • Help for a total newb with e65

    Hi All,
    Please help, I got the E65 and good posts about getting the wlan working.
    But I got the navigator app with it, and I really dont get all this GPS stuff , with it working off satellite, but charging my mobile with data chrages, software that works with recievers and phones, some symbian.
    Somebody explain it all in lamens terms please.
    Cheers

    Hi kiltedscot
    Can I use this analogy, if you buy a TomTom car navigation unit the package includes the hardware (processor + GPS receiver) and navigation software for a fixed but known cost (there is no charge for receiving data from GPS satellite system owned by the US Government)
    You have purchased the processor (E65), you need to purchase a Bluetooth GPS receiver to get positional data, the Symbian navigation software is provided free and if you download maps via your PC there is no need to incur GPRS data charges. If however you want a full talking navigation option, you do need to purchase a licence which in UK is just over £40 for 3 years.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

Maybe you are looking for

  • OAS 4.0.8 & Developer Server 6.0

    Hi, I 've installed on WindowsNT Workstation 4.0/SP5 1.) Developer Server Rel.6.0 2.) OAS 4.0.8.0.0 When I open a HTML file which has a reference to Forms executable (.fmx) I get the Oracle Developer Server logo and nothing happens. Java console show

  • Moving app from one screen to another fails very often

    I'm using the feature to manually move apps from one screen to another on iPhones. It works very smooth without any problem on these devices. On my iPad 3 I've some trouble with that feature. 1 out of 20 tries works. It makes no difference if moved s

  • My G5 Power mac keep shutting down

    Hi, All of a sudden My mac keeps shutting down, I have installed nothing recently no changes nothing for months and all of a sudden it keeps shutting down. Check the hard disk using disk utility and it says it appears to be okay CPUs running at 60 to

  • Connecting ipod to new PC

    hello, recenlty I purchased a new PC. Previously had an IMAC (bubble base,flat screen). Anyway, my 20 gig ipod is full, and I wanted to transfer all my tunes, to my new PC. When I plugged in the ipod to the new PC, I rcvd a msg saying this ipod was o

  • Cannot import or open CS6 files in CC

    I am aware and understand that many NLE systems are not backwards compatible. Forward compatible is another story in most cases. I have and love Adobe Premiere CS6.  I had to reformat ther other day, went to look for Adobe Premiere Pro CS6 to downloa