Help For a (Somewhat) Newbie

First, with all the Posts I see here, this topic may very well have already been covered, so I apologize in advance if it has.
I recently purchased a Linksys WRT54G Wireless Router. I am currently using a Linksys BEFSR41 (wired) Router, so I am somewhat familiar with how they work.
I purchased the Linksys WRT54G Wireless Router so that I could connect with my Son's Dell Laptop (wirelessly). Right now, there's a 50 foot cable leading from the BEFSR41 to his bedroom.
The BEFSR41 installed flawlessly, as I recall. Just hook the cable modem to the proper port, 1 cable to my computer, and 1 to his, install the software, and it works flawlessly.
When I tried to install the WRT54G, I ran the software, hooked the cable modem to the [proper] port, then hooked the cable to my computer and.....NOTHING! No cable connection, Zilch! I even tried using the Network Connection Wizard (WinXP w/ all current SP's).
One thing I didn't do. I didn't purchase a separate network or USB antenna for the laptop, as it has wireless networking built in. Second, I'm using "Pure Networks Port Magic," a little gift which materialized from AOHell at some point in time.
I've never gone into the inner workings of either Router, other than type the classic 132.168.1.1 or whatever just to see what was in there. I've never "tinkered" with any of the settings.
Any help appreciated. The directions seem pretty straightforward and lead me to believe that it practically sets itself up.
Bob

Many cable ISPs lock down the internet connection to a single device at a time. For that they remember the MAC address of the router or computer which is connected to the modem. They usually reset this after some time of inactivity or sometimes when you power down and up everything again.
Thus you could just power down everything and wait a night to see if the WRT connects then.
The alternative is to change the MAC address on the WRT to the MAC address of the BEF. You can use the MAC address clone function in the router through http://192.168.1.1/ Clone the MAC address of the BEF which should be printed underneath the router.
Another alternative could be to set the WRT up as access point behind the BEF. (Be sure to deactivate the MAC address clone on the WRT again if you tried it before!) See this post for how to setup the WRT as access point behind the BEF.
This kind of setup has the advantage for you that you are more free to position the WRT in the best location for your whole home.
As you are running a cable at the moment anyway: if your son does some gaming or other bandwidth intensive things he will probably more happy with the wired connection than the wireless. Depending on the obstacles between router and computer and other wireless networks in the proximity the wireless signal can degrade quickly leaving you with 1 Mb/s or less. For any online game that will be not enough...

Similar Messages

  • 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

  • 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

  • Help for an Oracle Newbie???

    Hi there,
    Sorry for probably a ridiculously stupid question but my boss has asked me to ask on here! Here goes -
    We have a network with around 100 users. Previously we have used MS Access to report on our database, the users then logged into Access Reports and ran the required report. We are now looking at using Oracle Discoverer or similar. We have installed the developer suite and have downloaded Oracle Application Server 10g. We are able to create queries using discoverer and reports using the report builder.
    My question is this - once i have created my reports (in .jsp format i believe), is it possible to host these using the application server?
    The users need to log into a website or similar and select the report they need to run.
    Any help would be appreciated - as i say, sorry for probably a silly question!!
    Many thanks,
    James.

    Hi!
    The answer is yes and the details on how is in the docs, see the link below.
    http://download-east.oracle.com/docs/cd/B14099_19/bi.1012/b14048/toc.htm
    It would be a too lengthy thread trying go through all the details...
    You can also publish your Discoverer Workbooks using Portal as the frontend publishing platform
    http://download-east.oracle.com/docs/cd/B14099_19/bi.1012/b14465/toc.htm
    /Mikael

  • Basic help for an Iphone newbie - (Sorry!)

    Hi there,
    I am thinking about getting an Iphone but I simply cannot find definitive answers for the following.
    Can you guys help?
    Am I right in saying that the iphone does NOT have the following:-?
    Bluetooth
    Video Camera
    MMS Facility
    Sat Nav Facility
    Also if anybody can advise if it is actually worth all the hype and money then feel free to let me know.
    I really hope it is!!
    Thanks in advance for your time.
    Steve

    While it's true that the iPhone lacks some of those things that many people have come to expect, for me it is definitely worth the hype. I bought mine an hour after they went on sale here in the US, and haven't come close to regretting it for one second. It's not a PERFECT phone, it has it's flaws, but it's is so much sweeter than anything else I've had that I can't even describe it. I was in Best Buy yesterday and from curiosity I browsed through the cell phone section. I found myself and scratching my head at almost every phone there. I can't imagine going back to any of those. The thing that surprised me the most was the smartphones with the tiny keyboards. I had to wonder why all the talk about the iPhone's touchscreen keyboard vs. the other smartphones "tactile" keyboard. My thought is that the only reason so many people say they prefer having actual buttons to push is simply because that is what they've become used to. I've never used a smartphone, but when I picked up the blackberry's and whatnot, I realized immediately that those would be no easier to use for me, starting from scratch, than the iPhone's keyboard. Matter of fact, I might even give the edge in ease of use to the iPhone keyboard. Again, this is from someone who had never used either before June 29th. Bottom line, iPhone has flaws. It's not perfect, it's not a "Jesus phone", but it's still pretty **** sweet.

  • 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

  • Help for a new newbie

    i've just tried to compile my very first Java program, and i get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: saluton
    i have no idea what this means, if its any help i'm running win 2000
    i'd be greatfull of anyhelp given

    Jos
    i bow down to you, thank you i have no idea what -cp is but it workedThat -cp flag tells the java virtual machine where it can find .class files, i.e. it
    defines the ClassPath. Suppose those two .class files are stored in, say,
    c:\usr\Stu000 and suppose your current directory is somewhere else, say, you're
    roaming around in c:\tmp.
    From within that c:\tmp directory, you can do this:java -cp c:\usr\Stu000 Salutonand it will simpy work. BTW, you can define more than one directory as the ClassPath,
    you simply supply more dirs and separate them with a semi-colon. The Java
    virtual machine will look in all those directories for the specified .class file to run.
    i have now compiled and run my first Java programCongrats.
    kind regards,
    Jos

  • 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 clueless newbie...

    I have just got my very first Blackberry (Curve 9300). I want to use it with my old vodafone sim rather than the one it came with. I am on the pay as you go free web and text freebee package. My problems are as follows: How do I sync my sim and my phone? I feel I am missing something obvious there but I just cant figure it out and the tutorials they have on the webside just baffle me! Also I would like to make use of the facebook and instant messinger apps on the phone but I am told that they are not activated/enabled. How do I go about doing this and does it require me switching to a contract?
    I am sure this is all simple stuff, but as there is no manual with the phone and I have never before had a  smart phone that works I really dont know where to begin! I would be forever greatful to anyone who could point me in the right direction.

    Thank you for the advice- it seems my trouble with my sim is because for whatever reason it appears to have been wiped of all my numbers... Fortunately I still have them stored on my old phone as well though, so I can transfer them manually at least.
    How do I go about getting a Blackberry data plan? Also, for whatever reason I cant seem to be able to use my free mobile internet package I get. Is there a setting I need to adjust? Everything works fine on my wrireless at home.

  • Select statement help for sql/oracle newbie

    I have a db for a fake airline. i have a route table that has columns for "FIRST_CLASS_FARE", "COACH_FARE", and "ECONOMY_FARE". I then have a flight table that references the route#, then a trip table that references the flight#. I also have a passenger table and a reservation table that has the passenger # in it. The reservation table also has a column called "reservation class" that has a 'f' for first class fare, 'c' for coach fare, 'e' for economy fare.
    What I am trying to do is create a fill for each individual passenger that shows the total amount they spent on all of their reservations.
    Any suggestions on how to join the tables to create this bill?
    Thanks in advance!

    Is it the way the passenger table has columns and is populated,
    for a passenger A, takes a route - 1 with First class fare - $2500 on flight- B123, to a trip - t1 and reserved for class - 'f'
    If this is the way, then you get the bill from the fare column

  • Help for an apple newbie ... Alternative to iWeb?

    Guys
    I just moved over to the 'Mac side of life' ... loving the simplicity of everything. But in for a tiny surprise. I wanted to start using iWeb for my personal site .. lo and behold - I am told that iWeb is officially discontinued. A bit of let down.
    Any other decent alternatives that any of you have tried? ... or can i still get iWeb ... not avaialble anywhere on the app store
    cheers ....

    As you now know iWeb, and iDVD, has been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. HOWEVER, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    I found that if I published my site to a folder on my hard drive and then uploaded with a 3rd party FTP client subscriptions to slideshows and the RSS feed were broken.  If I published directly from iWeb to the FPT server those two features continued to work correctly.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    In addition the iLife suite of applications offered on disc is now a discontinued product and the remaining supported iApps will only be available thru the App Store from now on.
    HOWEVER, the iLife 11 boxed version that is still available at the online Apple Store (Store button at the top of this page) and those copies still on the shelves of retailers will include iWeb and iDVD.
    This may be of some interest to you: Life After MobileMe.
    Happy Holidays

  • 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

Maybe you are looking for

  • Bluetooth Headset Crashes ...

    after opening a .pdf in preview, An incredible Noise is the only thing i hear after i open a .pdf in preview. I have to shut down bluetooth to get it back to normal. Any one else facing problems like this? Regards, René Macbook Air 11, Mid2013 1,3GHz

  • Segment Creation in Mapping

    Hi All, I have used a few conditions to create the node in the mapping. But I dont know how do we come to whether the node is created or not after executing the mapping. I wnat to know how do we come to know whether a segment or node is created or no

  • Elements 10 won't allow actions

    Elements 10 won't allow actions (copy background ect..) on my new computer with correct activation key.

  • Doubts on ALE Distribution Configuration

    Hi, Yes , Exactly And also in XI we need to create the Port, to send the data through XI to the Target application Regards Seshagiri

  • My organizer won't open on photoshop 10 elements

    organizer wont open