I just upgraded to CP 5. Need help with drawing objects.

I am trying to put a simple drawing object around a word.  Like a square.  I can't figure out how to not have any fill, just the outline of the box.  Any suggestions?  I was able to do this in CP 4.

Hi there
Personally, I'd use a Highlight Box to accomplish this. But that's just me.
Here are the steps for a square drawing object. I'll assume you have already inserted the object and placed it and all you want are instructions for dealing with the fill.
Look inside the properties inspector at the Fill & Stroke section. Click the Fill color and configure Alpha to 0%.
Cheers... Rick
Helpful and Handy Links
Begin learning Captivate 5 moments from now! $29.95
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcererStone Blog
Captivate eBooks

Similar Messages

  • Hi, I just upgraded to mavericks and need help!

    When I purchaced the mac I was married and my ex set it up using her apple id. I have no idea what her id is. Can anyone help or did I throw away my cpu because I upgraded.

    Purchases and downloads made via the App Store are tied to an Apple ID and you don't have one.
    How did you download Mavericks? Her old ID?
    Then you'll need to revert the machine to its "original" OS (the version it shipped with), Get your own Apple ID and download Mavericks again.

  • Just coming from Win and need Help with bootcamp/parallels+general osx stuf

    Well I absolutely love my Mac. I'm just having some problems affording it financially, but when I compare this new MacBook Pro to other like computers, there's a very very small difference in the hardware, and Im usually building laptops that are similiar to this for around 2k anyways. So I'm not 100% sure if I'll keep this or not, and maybe settle for cheaper PC that's under 1.5k (because Apple charges you a 10% open box fee) and buy a mac when I'm in a better position, or just keep this and see what I can do.
    But a few of the things that are making me miss a PC might push me toward a cheaper PC. And so maybe someone here can help me out before I make a decision.
    First off, is there anything that's the equivalent to a disk defragmentor for OSX?
    Second, is the graphics card really powerful in this Macbook 15 inch 2.4 ghz (the newest one)
    Im also having a problem with this keyboard and my favorite game. Basically I need to hold down certain keys (control, alt, shift and space) in order to use skills. But for some reason when I hold down any of these buttons, it only reads it once. So I have to push it every time I'd say, want to heal myself or hit a monster... and that might not seem like a lot but if you play a game for 1 hour + (I'd usually play around 4 hours) it's going to absolutely kill my fingers and make playing the game take a lot longer.
    Now I'm using parallels (the only way to play my game) and whenever I try to install a new KB, because I've found out that the way a KB is wired will determine whether or not you can spam a key or not (Like a cheap USB one wont work, but a more expensive logitech one allows you to) but it either
    1) Crashes Parallels and my Win VM
    or
    2) It sets up whatever kb I use to be used with Mac OSX's drivers which means no matter what the KB is, ctrl alt space and shift cant be spammed.
    I'm also unable to use FRAPS, a PC video capturing program used for games while running parallels. My FPS constantly dips to 0 which lags me in the game, and I can't find a good recording program thats OSX side and that works while Parallels is running (I emailed parallels about what vid they used in their demo but no response)
    Now if use bootcamp, will I have nothing to worry about? Will all of the hardware act like it should act natively on a PC? As in will my nVidia graphics card act like it normally would on a PC instead of it being some kind of virtualized hardware or something like on parallels?
    Thanks for the help guys... 2 weeks to decide on whether or not I keep th is laptop....
    Wii code: 2053-8430-7334-7335
    MGO Name: Crim, [BBB]Crim, Pacifist, Kaze, oSoiFong, A NOOB.

    The graphics card is a higher performance GPU than the X1600 in the previous MBP models. As for "really powerful" you don't provide any basis for comparison. Visit the ATI site to find out the specifications for the model.
    Well I understand that much. I just mean as far as a graphics card in general goes, is it strong enough to support a variety of games (both PC and Mac)? This is my first computer without a crappy intergrated graphics card which could barely handle games from the late 1990s.
    As for keyboard shortcuts I'm not sure if you're referring a Mac or a PC game. However, this reference may help. If the game is a Mac version you'll need to contact the game's developer about any problems with how to use the game on a Mac. If you read the Parallels documentation it will explain how to generate any special keyboard characters when in Windows.
    Umm it's not that. Like I first figured out this problem with all electronics in general when I was a kid playing with one of those press and speak books. What I found out was that, let's pretend there were 3 buttons. One was cow going moo, one was a cat meowing and one was a dog barking. If you held down the Cow button and pressed the Cat button, the cow would still Moo. If you held down the Cow and press the dog button, the cow would still moo. However if you pressed and held the cat button, then pressed the cow button the cat would stop meowing, and the moo would override it.
    That same principle applies to keyboards from what I've seen. I know there are some keyboards where I can use the control button and the alt button at the same time, and some keyboard I can't use. I can't blame the game, because there ARE keyboards that work the way I want it to. And I'm not talking about keyboard shortcuts. Pressing Control+Alt isn't a shortcut in a game, just two different commands. Like one is jump, one is attack. In the game you can Jump and Attack with some keyboards, some keyboards only let you jump or attack.
    Another example is if I put my jump key on the letter "a" and if I hold a, I jump over and over until I let go. but if I put jump to my space bar, I jump once then stop. For some reason it won't repeat keys while in a game. Same goes for other buttons, ctrl, shift, and alt.
    Does that make things a little more clear?
    but what I'm going to do is try my mac keyboard on a PC and see if it has the same limitations.
    If Parallels is crashing either you have a faulty installation, your OS X installation is corrupted, or you have not allocated sufficient RAM for the VM. You need at least 2 GBs of installed RAM to use virtualization software and should allocate at least 384 MBs or RAM to Windows XP and 512 MBs to Vista. If you have only 1 GB of RAM installed your system won't be very stable when you try to run Parallels with Windows on 384 or 512 MBs of RAM.
    I have the newest 15 inch which has gigs. And I've tried setting Parallels to both 1 and 512 (windows xp) and I worded the problem wrong. Parallels doesnt crash, parallels runs fine. What happens is Windows XP gets the blue screen of death whenever I try to install a usb device. Since I can't find a logitech keyboard that has drivers/software for a mac, I tried using a Windows one and tried installing it on my XP... and thats when I got the BSOD
    Parallels uses all the native Mac hardware via the virtualization software. No special Mac drivers are required nor special Windows drivers.
    If you cannot run a Windows program in Parallels it's not a problem with OS X. Complain to Parallels.
    It's not that a program isn't running. It's running fine, it's just my FPS gets really low. What I'm trying to figure out is if my graphics card isn't good enough in general, or if it's not good enough to handle parallels and osx and a game with a video capture all at once.
    Boot Camp runs Windows natively on the hardware just as if you were using any other dedicated Windows hardware. "Will I have nothing to worry about?" I don't know. Boot Camp provides the necessary Windows drivers for all currently produced Intel Macs. You can install Windows XP with Service Pak 2 or Vista. Read the Boot Camp documentation to find out more.
    Well I meant will I have nothing to worry about as in, will my graphics card be as effective on my bootcamped win XP as it would be if it was a native XP laptop, or will it be slightly less effective since it was based for a mac intel computer... does that make sense or do I need to reword it?

  • Just started Livecycle yesterday. Need help with Javascripting

    I'm new to scripting in general, but have figured out enough to be dangerous in Acrobat. Unfortunately, Acrobat no longer fulfills the need I have for dynamic forms and I have started trying to figure out Livecycle. Is the scripting in Livecycle THAT different from Acrobat that I need to relearn the scripting I figured out in Acrobat? Below is an example. It is in a table where I am trying to determine height of instrument (HI) from the elevation (Ele) and the difference between back (BS) and fore sights (FS). Any help is greatly appreciated. Thanks!
    This is the script I used in Acrobat and it worked:
    if(this.getField("BSRow2").value) {
      var add = this.getField("BSRow2").value + this.getField("EleRow1").value
      this.getField("HIRow2").value = add;
    } else {
      var height = this.getField("HIRow1").value
      this.getField("HIRow2").value = height;
    This is the script I used in Livecycle and it doesn't
    if(this.getField(BS).value) {
      var add = this.getField(BS).value + this.getField(Row1.Ele).value
      this.getField(this).value = add;
    } else {
      var height = this.getField(Row1.HI).value
      this.getField(this).value = height;

    Hi i just started programming in java.
    im running j2se 1.5.0 on windows xp
    im on the subject of classes and objects.
    here is my simple little code im trying to get to
    compile
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();
    }now here are the error messages i get:
    --------------------Configuration:
    <Default>--------------------
    C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5:
    cannot find symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new
    Greeter();
    ^
    s\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find
    symbol
    symbol : class Greeter
    location: class Newprog
    Greeter myObjectGreeter = new
    Greeter();
    ^
    get this error message alot....well actually just
    about everytime..
    I got it working just once using texteditor but have
    no clue how i did it that time...now nomatter what i
    try i get this error
    I have my enviornmental variable set at
    path = C:\Program Files\Java\jdk1.5.0_07\bin;
    i am using JCreator Le
    i downloaded exact codes from websites and they still
    compile with this error..
    if anybody with patience could tell me what i need to
    do
    would i have to configure java some more with
    variables?
    is my installation wrong?
    do i have to save the work on a different file?
    thanks in advance
    Well here is all that goes
    As you said you were pretty new
    I suspect the following error done by most of the novice programmers in JAVA
    Where is the Greeter class ??
    ok may be you must have defined it somewhere else
    Mostly the Java Compiler hasnt found out your Greeting class
    Try locating that " Greeter.java"
    or mention it in an other file located in the same folder as "Newprog.java"
    public class Newprog
         public static void main(String[] args)
              Greeter myObjectGreeter = new Greeter();
              myObjectGreeter.sayHello();

  • JUST BOUGHT WRT54G LINKSYS ROUTER, NEED HELP WITH SET UP PLEASE!

    I've tried everything to get my WRT54G to work but no matter what I do I can't get past step ten on the CD. It asks for my password and when i type and confirm type it then press next it comes up with,  Router Configuration Error. Would you like to try again?
    I've been stuck at this for over two hours now, please help me
    Madi-Liu

    I had the same problem this past weekend.  The CD is the problem.  It is much easier to go to www.linksys.com/connect and first update the firmware (if applicable), and then use the EasyLink Connect tool.  I works very well.
    Good luck,
    Mike

  • I need help with a Object Array

    I am having trouble and this maybe really simple seeing that I am fairly new to java but I have text that is being broken down in to preset part with those parts stored in Object arrays.
    Now I also have a object array inside my object array. Within the second object array are the broken down parts of the text and I want to compare this text with another string so for example this is what I am trying
    boolean found = false;
    for (int i = 0; i < FirstObjectArray.length ;i++)
         Object[] SecondObjectArray = (Object[]) FirstObjectArray;
         if(SecondObjectArray[0] == "string")
              found = true;
              break;
         else
              found = false;
    }Help would be very appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    astlanda wrote:
    Sure, you're right.
    [public boolean equals(Object obj)|http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals%28java.lang.Object%29]
    sharkura said all the OP needs at the moment. I just wanted to clarify a bit why You don't use == 99.999% of the time with objects, and never with String.
    I have argued elsewhere in these forums that it is inappropriate to tell anyone that you never use == to compare objects. This has not always been accepted. I have, on rare occasions, known experienced developers to blindly compare two objects with equals(), and cite the professor that taught them, 15 years iin the past, that object references are never compared using ==, but always with equals().
    However, the cases where == is appropriate and equals() is not are indeed rare, but not, in my experience, non-existent. In my statement, I probably exaggerated. And String is a case where I can probably accept that you will probably never go wrong with equals(). If the String has been pooled (see String::intern()), you can actually use either. From the javadocs: "*It follows that for any two strings s and t, s.intern() == t.intern() is true if and only if s.equals(t) is true.*"
    ¦ {Þ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need help with class object? Please somoen

    hey guys,
    It's been few days since i'm working on making a small bingogame program but i'm getting stuck frequantly.
    I've different classes, in the main class i'm asking the user to input number of players who would like to play then i'm asking the player's name and how many bingoCards each player wants.
    I'm stroing all that info in a BingoPlayer class's array object. But for some reason when i get out from the loop and try to retrive the info from that array it only gives me the last input entry (player's name & number of cards) at any index of the array.
    Can please someone tell me how i can store the given information for each player in that object array on different indices of the array?
    I'm providing the code where i've the problems:
    public class BingoGame
        public static BingoPlayer players[] = new BingoPlayer[5];
        public static void main() throws IOException {
            int numPlayers = 0;
            int numCards [] = new int [5];
            String name [] = new String[4];
            BufferedReader input = new BufferedReader (new InputStreamReader(System.in)); //allows input
    // ask for the number players who wants to play
            System.out.print("Please enter the number of players in this game (2-5): ");
            numPlayers = Integer.parseInt(input.readLine());
    // make sure the entered value is within range
            while (numPlayers < 2 || numPlayers > 5) {
                System.out.println("Invalid number of players ");
                System.out.print("Please enter the number of players in this game (2-5): ");
                numPlayers = Integer.parseInt(input.readLine());
            System.out.println();
    //ask for the names and numebr of cards for entered number of players
    // and make sure the number of cards are within the range,
    //and assign the players that many cards using the BingoPlayer object 
            for (int i = 1; i <= numPlayers; i++) {
                System.out.print("Please enter name of player " + i + " : ");
                name[i] = input.readLine();
                System.out.println();
                System.out.print("Please enter the number of cards (1-5) for player " + i + " : ");
                numCards[i] = Integer.parseInt(input.readLine());
                while (numCards[i] < 1 || numCards[i] > 5) {
                    System.out.println("Invalid number of cards for the player " + i);
                    System.out.print("Please enter the number of cards (1-5) for player " + i + " : ");
                    numCards[i] = Integer.parseInt(input.readLine());
                System.out.println();
                players[i] = new BingoPlayer(name, numCards[i]);
    * here it only prints out the information for the last player, instead it should return the information for both of the player
    for (int k = 1; k <= numPlayers; k ++) {
    System.out.println(players[k]);
    //players[k].genCards();
    for example if i enter 2 players:
    Player1: name: Jami, number of cards 1
    Player2: name: Joey, number of cards 2
    in the last loop it just prints out :"Joey, 2" 2 times instead of printing out: "Jami, 1" & "Joey, 2"
    Please someone help! i really need to complete this within 2 days. Thanks in advance

    Without seeing BingoPlayer's implementation, all it
    would be would be a guess.
    My guess: The name and numCards members of that class
    are declared as static, so all instances share the
    same values.Thanks it worked, declaring them static was the main probelm..thank you very much

  • Need help with Drawing applet

    im in the process of making a network whiteboard as a project for college and i was wondering if anyone could help me with a problem im having. When my application minimises or a window is placed over the application the drawing is erased, even if a window is placed over a certain part of the application it erases the part it covers is there any way to stop this from happening i cant seem to fix it, any help is appreciated, thanks

    You should be buffering what the whiteboard is to draw, either as a BufferedImage or in some
    data structure so that you can refresh when asked to repaint. Are you doing that, or are you
    just drawing new graphics as it arrives from the server?

  • Need Help with drawing in Photoshop CC

    I am drawing a picture and want to select and copy an element but don't know how.  Can someone help me please?

    If element is on it's own layer, from Layers panel right click and select duplicate layer.
    Nancy O.

  • Need help with drawing shape and scrollbar

    Hi everybody, I am newbie at java just started learning it. I have a few questions to ask.
    1. Can anyone show me to how to draw a equilateral penatgon, octagon, ( 5-10 sized shape) with polar cordinate.
    2. How to make the scrollbar back to their default state( work alone not together) after you use the "scrollbar1.setModel(scrollbar2.getModel())" method. For example I only want the scrollbar to work together when I choose circle as a shape after that I want the scrollbar to be back to normal when I pick another shape rectangle for example. When the scrollbar work together, how do I the make it so that the scrollbar move from bottom to top for vertical bar and from left to right for the horizontal bar when they work together instead of the default bar move from left(0) to right(max) for horizontal bar and from top(0) to bottom(max) for the vertical bar.

    Here's some code that builds regular polygonal icons.
    import java.awt.*;
    import javax.swing.*;
    class PolygonIcon implements Icon
         protected int height, width;
         protected int iheight, iwidth;
         protected int left, top, xc, yc, diam, idiam;
         protected Color background, foreground;
         protected double fract;
         protected int sides;
         protected int[] xp;
         protected int[] yp;
         PolygonIcon(int h, int w,  Color fc, Color bc, double fr, int s, boolean sym )
              sides = s;
              // save constructor args
              width = w;
              height = h;
              foreground = fc;
              background = bc;
              fract = fr;
              // define basic geometry
              diam = (width<height)?width:height;     // diameter
              xc = width/2;                              // x centre
              yc = height/2;                              // y centre
              int border = (int)(diam*.5*(1-fract));     // size of border
              idiam = diam-(border+border);                    // icon diameter
              if(sym)                                        // symetric case
                   top = (height-idiam)/2;               // top offset
                   left = (width-idiam)/2;               // left offset
                   iheight = idiam;                    // image height
                   iwidth = idiam;                         // image width
              else                                        // assymetric case
                   top = border;                         // top offset
                   left = border;                         // left offset
                   iwidth = width-(left+left);          // image width
                   iheight = height -(top+top);     // image height
              double srad = Math.toRadians(360.0/sides);
              int xs, ys;
              if(sym)xs = ys = diam/2;
              else
                   xs = iwidth/2;
                   ys = iheight/2;
              xp = new int[sides];
              yp = new int[sides];
              double rad;
              for(int i = 0; i<sides; i++)
                   rad = srad*i;
                   xp[i] = xc+(int)(Math.sin(rad)*xs);
                   yp[i] = yc+(int)(Math.cos(rad)*ys);
         // set colors
         public void setForeground(Color fg){foreground = fg;}
         public void setBackground(Color bg){background = bg;}
         // methods required for Icon interface
         public int getIconWidth(){return width;}
         public int getIconHeight(){return height;}
         public void paintIcon(Component c, Graphics g, int x, int y)
              if(background != null  && c.isEnabled())
                   g.setColor(background);
                   g.fillRect(x,y,x+width,y+height);
              if(foreground != null)
                   int [] xn = new int[sides];
                   int [] yn = new int[sides];
                   for(int i = 0; i<sides; i++)
                        xn[i] = x+xp;
                        yn[i] = y+yp[i];
                   Polygon p = new Polygon(xn,yn,sides);
                   g.setColor(foreground);
                   g.fillPolygon(p);
    and an example of their use
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TestI extends JFrame
         TestI()
              addWindowListener(new WindowAdapter()
              {public void windowClosing(WindowEvent evt){System.exit(0);}});
              JLabel lbl1 = new JLabel(new PolygonIcon(50,100,Color.RED,Color.YELLOW,.90,6,true));
              JLabel lbl2 = new JLabel(new PolygonIcon(150,80,Color.BLUE,Color.GREEN,.75,8,true));
              JLabel lbl3 = new JLabel(new PolygonIcon(150,80,Color.BLUE,Color.GREEN,.75,3,false));
              Container cp = getContentPane();
              cp.setLayout(new FlowLayout());
              cp.add(lbl1);
              cp.add(lbl2);
              cp.add(lbl3);
              pack();
         public static void main(String[] args)
              new TestI().show();

  • I need help with comparing Objects of an ArrayList

    Hi,
    I am trying to compare a certain variable of objects which are stored in an arrayList.
    for example i have a class called AuctionBid(String bidderID, BitSet itemSet, int bidValue)
    and i have another class called AuctionBidFactory which creates AuctionBid objects and stores them into an arrayList
    I have another Gui class which acts as a user interface where the user can create bids but then i want to compare the itemSet of the AuctionBid which is created by the user to the itemSets of the AuctionBid objects which already exist in the arrayList and if that itemSet does not exist in the arraylist then will add the new AuctionBid to the arrayList.
    I have the following method in the AuctionBidFactory which is supposed to compare the itemSets of the AuctionBids in the arrayList and it does not work:
    public boolean containsItem(AuctionBid auctionBid) {
              if (auctionBids.contains(auctionBid.itemSet)) {
                   return true;
              return false;
    where auctionBids is the arrayList where the AuctionBid objects are stored
    I hope the information above is enough to see where the problem is.
    many thanks

    Amit, unfortunately I dont have a different object for the user bids. Basically I just have the AuctionBid(String bidder,BitSet items, int value) and the reason why im using bitSet is that im modelling a combinatorial auction where the bidder can bid on combination of items.
    now when the user puts a bid that bid is added to an arrayList of ArrayList<AuctionBid>
    then once all the bidings have finished i want to create autoBids for those single items only for which there are no bids. so for example lets say there are 6 items for auction and if there are the following bids in the arrayList:
    AuctionBid(bidder1,{1},5)
    AuctionBid(bidder2,{5},8)
    i want to create autobids as follow:
    AuctionBid(autoBid,{0},0)
    AuctionBid(autoBid,{2},0)
    AuctionBid(autoBid,{3},0)
    AuctionBid(autoBid,{4},0)
    and then i want to add these created bids to the same arrayList where all the bids are.
    but if I use the arrayList.contains() method it will compare the whole objects to each other rather than just comparing the bitSets(items) in each bid.
    so i dont know whether i can still do this without overriding the equals() method in the AuctionBid class or not
    regards
    Arneh

  • Need help with Calling objects

    I have created an object named "user" and I currently have 1 Frame in my program. The first frame is called "LogonFrame" and the second is called "UserDataFrame".
    In the main method of the application I declare a "User" object as user and then call LogonFrame to retreive the logon_name and password from the user. The logon_name and password will be placed in the User object to be accessed throughout the application.
    When I compile the application I receive the following error message:
    Error: (85) variable user not found in class GL2.LogonFrame
    *I know that 85 is the line number that the error is located
    *GL2 is the name of the package.
    Has anyone ever encountered this error before, and if so how can I fix this error.
    *Listed below is the code used in the User object if it helps at all.
    Jason Franz
    // Copyright (c) 2003 Jason T. Franz
    package GL2;
    * A Class class.
    * <P>
    * @author Jason T. Franz
    public class User extends Object {
    private static int user_id;
    private static String first_name;
    private static String last_name;
    public static void User(){
    user_id = 0;
    first_name = "";
    last_name = "";
    //sets the user ID
    public static void setUserID(int newID){
    user_id = newID;
    //Returns the User ID
    public static int getUserID(){
    return user_id;
    //Sets the User First Name
    public static void setFirstName(String newFirstName){
    first_name = newFirstName;
    //Gets the Users First Name
    public static String getFirstName(){
    return first_name;
    //Sets the Users Last Name
    public static void setLastName(String newLastName){
    last_name = newLastName;
    public static String getLastName(){
    return last_name;
    //Resets all data in the User Class
    public static void reset(){
    user_id = 0;
    first_name = "";
    last_name = "";

    The code below is a small portion of the program.
    If it helps at all I am useing Oracle JDeveloper version 3.2.3 with JDK1.2.2_JDeveloper
    This section is the User object
    // Copyright (c) 2003 Jason T. Franz
    package GL2;
    * A Class class.
    * <P>
    * @author Jason T. Franz
    public class User extends Object {
      private String first_name;
      private String last_name;
      public User(){
        first_name = "Jason";
        last_name = "Franz";
      //Sets the User First Name
      public void setFirstName(String newFirstName){
        first_name = newFirstName;
      //Gets the Users First Name
      public String getFirstName(){
        return first_name;
      //Sets the Users Last Name
      public void setLastName(String newLastName){
        last_name = newLastName;
      public String getLastName(){
        return last_name;
      //Resets all data in the User Class
      public void reset(){
        first_name = "";
        last_name = "";
        logon_name = "";
        user_password = "";
    }Here is the main method.
    // Copyright (c) 2003 Jason T. Franz
    package GL2;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * GL2.DevilsHead
    * <P>
    * @author Jason T. Franz
    public class DevilsHead {
      public User user = new User();
       * Constructor
      public DevilsHead() {
        AddUserFrame frame = new AddUserFrame();
        //Center the window
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = frame.getSize();
        if (frameSize.height > screenSize.height) {
          frameSize.height = screenSize.height;
        if (frameSize.width > screenSize.width) {
          frameSize.width = screenSize.width;
        frame.setLocation((screenSize.width - frameSize.width)/2, (screenSize.height - frameSize.height)/2);
        frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } });
        frame.setVisible(true);
       * main
       * @param args
      public static void main(String[] args) {
        try  {
          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        catch (Exception e) {
          e.printStackTrace();
        new DevilsHead();
    }and here is the Frame which calls the user object to display the Information.
    // Copyright (c) 2003 Jason T. Franz
    package GL2;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    * A Swing-based top level window class.
    * <P>
    * @author Jason T. Franz
    public class AddUserFrame extends JFrame {
      BorderLayout borderLayout1 = new BorderLayout();
      JPanel jPanel1 = new JPanel();
      Button button1 = new Button();
       * Constructs a new instance.
      public AddUserFrame() {
        super();
        try  {
          jbInit();
        catch (Exception e) {
          e.printStackTrace();
       * Initializes the state of this instance.
      private void jbInit() throws Exception {
        this.getContentPane().setLayout(borderLayout1);
        this.setSize(new Dimension(400, 300));
        button1.setLabel("button1");
        button1.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            button1_actionPerformed(e);
        this.setTitle("Add a User");
        this.getContentPane().add(jPanel1, BorderLayout.CENTER);
        jPanel1.add(button1, null);
      void button1_actionPerformed(ActionEvent e) {
        System.out.println(user.getFirstName());
        System.out.println(user.getLastName());
    }The error I receive is
    Error: (51) variable user not found in class GL2.AddUserFrame

  • Need help with moving objects

    Hello, i'm new to java and i'm building applets with eclipse. I'm stuck on how to move and object to the left of the screen i can move it right of the screen with the
    blueTriangle.slowMoveXPosition(50);
    but how do i move it back again say 50. I know this easy stuff for you guys.
    Do i have to put something on negative positions in the triangle class file?
    Any help is much appreciated.
    Thanks.

    Hello, i'm new to java and i'm building applets with
    eclipse. I'm stuck on how to move and object to the
    left of the screen i can move it right of the screen
    with the
    blueTriangle.slowMoveXPosition(50); What class is this 'blueTriangle' reference talking about?
    I doubt it's a standard one which anyone here would know about. I bet it's something your school provided instead, or another 3rd-party. So ask them.

  • I need help with File Object in Java

    Hello Experts.
    I am learning Java 2 now. I have trouble with reading a JTextField and save it to a file. I have some errors that I dont know what they are. I would like someone please help me to write a short sample program to see how it work. The code from the book I have dont execute at all. And I want to use FileOutputStream and ObjectOutputStream. Thank you very much
    Quoc

    import java.io.*;
    public class FileTest {
      public static void main(String[] arg) throws Exception{
        FileOutputStream fileOut = new FileOutputStream("test.txt");
        fileOut.write("Test file".getBytes());
        fileOut.close();

  • Need help with upgrading my OS from 10.5.8

    Need help with upgrading my OS. I havent upgraded the OS since I bought it and have version 10.5.8. Now I cant download Mountain Lion- or even Snow Leopard. When i downloaded the first version of SL- 10.6.1 it says i have to have 10.6 first and I cant find that.

    Start by checking if you can run Snow Leopard:
    Requirements for OS X 10.6 'Snow Leopard'
    http://support.apple.com/kb/SP575
    Whilst Apple withdrew Snow Leopard from their stores, you can still get it from Apple by calling 1-800-MY-APPLE (if you are in the USA) and they will supply the SL DVD for $20 for a single user, or $30 for a family pack that covers up to 5 Macs.  You can also purchase the code to use to download Lion from the same number (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
    http://www.apple.com/osx/specs/
    If you are outside the US call your national Apple Helpline:
    http://support.apple.com/kb/HE57
    If you're in the UK, use this number: 0871 508 4400
    When you have installed it, run Software Update to download and install the latest updates for Snow Leopard.
    UPDATE:
    OS 10.6 Snow Leopard is once again available from the Apple Store:
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    and in the UK:
    http://store.apple.com/uk/product/MC573/mac-os-x-106-snow-leopard
    but nobody knows for how long it will be available.
    To use iCloud you have to upgrade all the way to Mountain Lion:
    http://support.apple.com/kb/HT4759

Maybe you are looking for

  • System Center keeps changing Microsoft Updates to previous upstream server

    1. Previously we configured the SCCM2012 R2 to talk to an upstream server which has now been decommissioned. 2. We did the following to tell the SCCM2012R2 to go to Microsoft Update for updates by a. Clicking on Administration Workspace > Site Config

  • Can't move regions all at once anymore, why?

    I am working on a very large orchestral score and before I was able to move all tracks at once around in the arranger, but now even with all regions in all tracks selected, only the track on which my mouse is, is being moved, Why is this?

  • Send button dead on texts

    On certain phone numbers can't send texts.

  • Downloading Photos to Walgreens

    I have downloaded my photos to iphoto and can pull them up by clicking the iphoto icon at the bottom of my screen - but - when I want to download those pictures to Walgreens for storage, printing, sharing I can't find them. Walgreen's asks me where t

  • Migration from 2003 to 2008R2 - Questions from a first-timer

    How is everybody doing.  I'm managing for the very first time a WSUS server. Right now there's a WS2003x64 SP2 STD handling this role. The issue is that this server has gotten out of control: MMC crashes all the time due to different causes. For exam