Activity Box problem

I am working on an Activity Box problem. I got some errors, Please Help and Thanks in advance!!!
My program likes:
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
/*ActivityBox Applet */
    public class ActivityBox extends Applet {
//Declarations
    String panelString = new String("News from the field.");
    String southString = new String("South Button");
    String infoString = new String("Type here.");
    String kbString = new String("East ");
    MousePanel cp = new MousePanel(100,100,panelString);
    MousePanel ep = new MousePanel(100,100, kbString);
    MousePanel np = new MousePanel(50,50);
    MousePanel sp = new MousePanel(100,100);
    MousePanel wp = new MousePanel(100,100,"West - Type here");
    TextField myText = new TextField(infoString);
    Button southButton = new colorChanger(southString);
    colorChanger Blues = new colorChanger(Color.blue);
    buttonListener Zap = new buttonListener(cp, myText, ep);
    kbListener Tap = new kbListener(ep, kbString);
//init
    public void init() {
     setLayout(new BorderLayout(5,5));
         np.addMouseListener(Blues);
     add("North",np);
         np.add(myText);
     np.setBackground(Color.Cyan);
         sp.addMouseListener(Blues);
         southButton.addActionListener(Zap);
     sp.add(southButton);
     add("South", sp);
     sp.setBackground(Color.Cyan);
         ep.addMouseListener(Blues);
     add("East",ep);
     ep.setBackground(Color.Cyan);
         wp.addMouseListener(Blues);
         wp.addKeyListener(Tap);
        add("West",wp);
     wp.setBackground(Color.Cyan);
         cp.addMouseListener(Blues);
     add("Center",cp);
     cp.setBackground(Color.Cyan);
/* MousePanel */
class MousePanel extends Panel {
    public String nameTag = "";
    Dimension myDimension = new Dimension(15,15);
//Constructor 1 - no name tag
    MousePanel(int h, int w) {
     myDimension.height = h;
     myDimension.width = w;
//Constructor2 - with name tag
    MousePanel(int h, int w, String nt) {
     myDimension.height = h;
     myDimension.width = w;
     nameTag = nt;
//paint
    public void paint(Graphics g) {
     g.drawString(nameTag,5,10);
//change text
    public void changeText(String s){
     nameTag = s;
     repaint();
    public Dimension getPreferredSize(){
     retrun myDimension;
//getMinimumSize
    public Dimension getMinimumSize(){
     return myDimension;
class colorChanger implements MouseListener {
    private Color oldColor = new Color(0,0,0);
    private Color changeColor = new Color(0,0,0);
    //constructor
    colorChanger(Color it){
     changeColor = it;
    //Methods required to implement MouseListener interface
    public void mouseEntered(MouseEvent e) {
     oldColor = e.getComponent().getBackground();
     e.getComponent().requestFocus();
    public void mouseExited(MouseEvent e) {
     e.getComponent().setBackground(oldColor);
     e.getComponent().transferFocus();
    public void mousePressed(MouseEvent e) {
    public void mouseReleased(MouseEvent e) {
    public void mouseClicked(MouseEvent e) {
class buttonListener implements ActionListener {
    private MousePanel it1 = new MousePanel(0,0,"");
    private MousePanel it2 = new MousePanel(0,0,"");
    private TextField from = new TextField("");
    private String words = new String("");
    //constructor
    buttonListener(MousePanel target1, TextField source, MousePanel target2){
     it1 = target1;
     from = source;
     it2 = target2;
    //Methods required to implement ActionLIstener interface
    public void actionPerformed(ActionEvent e) {
     words = from.getText();
     it1.changeText(words);
     from.setText("");
     it2.changeText("");
}//end buttonListener
class kbListener implements KeyListener {
    private MousePanel it = new MousePanel(0,0,"");
    private String putString = new String("");
    //constructor
    kbListener(MousePanel target, String display){
        it = target;
     putString = display;
    //Methods required to implement KeyListener interface
    public void keyPressed(KeyEvent e) {
    public void keyReleased(KeyEvent e){
    public void keyTyped(KeyEvent e){
     putString = putString + e.getKeyChar();
     it.changeText(putString);
}When I compiled it, I got:
ActivityBox.java:18: cannot resolve symbol
symbol  : constructor colorChanger (java.lang.String)
location: class colorChanger
    Button southButton = new colorChanger(southString);
                         ^
ActivityBox.java:24: cannot resolve symbol
symbol  : constructor BorderLayout (int,int)
location: class BorderLayout
        setLayout(new BorderLayout(5,5));
                  ^
ActivityBox.java:28: cannot resolve symbol
symbol  : variable Cyan
location: class java.awt.Color
        np.setBackground(Color.Cyan);
                              ^
ActivityBox.java:33: cannot resolve symbol
symbol  : variable Cyan
location: class java.awt.Color
        sp.setBackground(Color.Cyan);
                              ^
ActivityBox.java:36: cannot resolve symbol
symbol  : variable Cyan
location: class java.awt.Color
        ep.setBackground(Color.Cyan);
                              ^
ActivityBox.java:40: cannot resolve symbol
symbol  : variable Cyan
location: class java.awt.Color
        wp.setBackground(Color.Cyan);
                              ^
ActivityBox.java:43: cannot resolve symbol
symbol  : variable Cyan
location: class java.awt.Color
        cp.setBackground(Color.Cyan);
                              ^
ActivityBox.java:72: cannot resolve symbol
symbol  : class retrun
location: class MousePanel
        retrun myDimension;
        ^
.\BorderLayout.java:8: setLayout(java.awt.LayoutManager) in java.awt.Container c
annot be applied to (BorderLayout)
        p.setLayout(new BorderLayout ());
         ^
.\BorderLayout.java:9: cannot resolve symbol
symbol  : variable NORTH
location: class BorderLayout
        p.add("North", BorderLayout.NORTH);
                                   ^
.\BorderLayout.java:10: cannot resolve symbol
symbol  : variable SOUTH
location: class BorderLayout
        p.add("SOUTH", BorderLayout.SOUTH);
                                   ^
.\BorderLayout.java:11: cannot resolve symbol
symbol  : variable EAST
location: class BorderLayout
        p.add("EAST", BorderLayout.EAST);
                                  ^
.\BorderLayout.java:12: cannot resolve symbol
symbol  : variable WEST
location: class BorderLayout
        p.add("WEST", BorderLayout.WEST);
                                  ^
.\BorderLayout.java:13: cannot resolve symbol
symbol  : variable CENTER
location: class BorderLayout
        p.add("CENTER", BorderLayout.CENTER);
                                    ^
14 errors

Again compile ur code .... I don't seem to get all those errors

Similar Messages

  • Microsoft Visio IDEF0 Activity Box Formatting Problem

    I am not able to change the height off the IDEF0 Activity Box for my A-0 sheet.  How can I fix this? If I need to use Shape Sheet editor, guidance on how to use Shape Sheet would be great. I want the height to be 2 inches. I would also like to know
    how to change the height to any size if possible so that I have the option to try other sizes too.
    I don't know how the internal shapes work but I think changing the top box height would provide a solution.
    Thanks,
    Dominic Meyer

    Hi,
    This issue might be caused by the Shape protection (It's a grouped shape and its vertical size is protected and set to the sum of two of the internal shapes.)
    . Please see the below image:
    Uncheck the height property.
    If we want to change the size in "Shape Sheet", please try the following steps:
    Select the Use Case shape.
    On the Window menu, click Show Shapesheet.
    Click the Height cell in the Shape Transform
    section.
    Remove the word GUARD in the Formula line (above the drawing page), and type the 2 in.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in
    Office programs.

  • Spry Vertical Submenu - Expanding Box Problem, white background

    Hello everyone. I've recently incorporated a Spry Vertical Menu on my site for the first  time and I'm experiencing problems with the submenu in IE7. (Things look  fine in FF, Safari, and Opera.) A white box appears behind the text area  (the "bios" and "contact us" links).  And....In IE6 the entire menu bar becomes a horizontal mess.
    I've come to learn that this is called an Expanding Box Problem but I  don't know how to fix it. Perhaps this is seperate issue from the white panel issue altogether. I dunno. Can anyone be of assistance? I've been trying  to solve this problem for days.
    http://www.exposedproductionsnyc.com
    Below is the CSS:
    /* The outermost container of the Menu Bar, a fixed width box with no margin or padding */
    ul.MenuBarVertical
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: 8em;
        padding-top: 0px;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 31.5px;
        background-color: #000;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are same fixed width as parent */
    ul.MenuBarVertical li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 160px;
        background-color: #000;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarVertical ul
        margin: -5% 0 0 95%;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: absolute;
        z-index: 1020;
        cursor: default;
        width: 8.2em;
        left: -1000em;
        top: 0;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarVertical ul.MenuBarSubmenuVisible
        left: 0;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarVertical ul li
        width: 100px;
        padding-left: 29px;
        padding-top: 3px;
        margin-top: 1px;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Outermost menu container has borders on all sides */
    ul.MenuBarVertical
    /* Submenu containers have borders on all sides */
    /*ul.MenuBarVertical ul
        border: 1px none #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarVertical a
        display: block;
        cursor: pointer;
        background-color: #000;
        padding: 0.5em 0em;
        color: #FFF;
        text-decoration: none;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
        background-color: #000;
        color: #6CC3D7;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
        background-color: #000;
        color: #6CC3D7;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarRight.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
        background-color: transparent;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarRightHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
        background-color: transparent;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarVertical li.MenuBarItemIE
        display: inline;
        f\loat: left;

    Long answer =  z-index
    http://www.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/
    Nancy O.

  • What is the point of the Mail Activity box?

    At the bottom left of the Apple Mail app. window, there is a Mail Activity box. This used to be very useful back in the days of, I think, Tiger, or maybe Leopard, but since upgrading to Lion, nothing has ever appeared in that box. If I want to see Activity I have to open a new window.
    Why does this box still exist? Is there any way to get Activity to appear in that box as it used to, and, I suppose, as it is supposed to?

    I think it serves two purposes... first it blocks visability from your archive mail box and two some networks dont use the internet so if you are getting mail and you have to go through a bunch of nonsense it shows up. LIke if you work for a company or goverment agency, their networks may not be connected to the out side world like using dialup, dsl, or high speed internet like you and me do.
    Message was edited by: Carlo TD

  • After 6.0 update I can't get at synchronization activity boxes

    Hello, can anybody help me?  I have a Torch running 6.0.  it updated last night and ever since then the synchronization activity boxes appear to the top left hand side mostly off screen on my laptop.  This makes it almost impossible to accept/reject synchronization changes to calendar and contacts etc.
    I've tried grabbing and dragging but they won't move. Can anybody suggest how I can correct this?
    Best Regards and Merry Christmas

    Hello jms277 and welcome to the BlackBerry Support Community Forums.
    Try doing a clean uninstall of the BlackBerry Desktop Manager as shown in KB02206.
    Download a new copy of the Desktop Manager from www.blackberry.com/software/desktop and reinstall it.
    Let me know how you make out.
    Thanks!
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Activation lock problem!

    Hello,
    I just got a new iPhone 4s from a friend and I can't get into it because of an activation lock problem. I've already tried to restore it in recovery mode but than I still have to log in to his account. Now i've logged in to his iCloud account and deleted the iPhone using the following instructions:
    Sign in to their iCloud account at www.icloud.com/find.
    Click All Devices to open a list of devices linked to their account, then select the device to be removed. It should show a gray dot or the word “Offline” next to the device name.
    Click "Remove from Account" to remove the device from their account.
    But it seems that I have should done the following instructions, because the iPhone wasn't completely erased yet:
    Sign in to their iCloud account at www.icloud.com/find.
    Click All Devices to open a list of devices linked to their account, then select the device to be removed.
    Click the Erase button to erase all content and settings from the device. When prompted, don't enter a phone number or message. Click Next until the device is erased.
    When the erase is complete, click "Remove from Account" to remove the device from the account.
    The problem is that it's too late for that now, because I already deleted the iPhone from his iCloud... Please help me out here, what can I do to still erase it from iCloud?!
    Greets

    Were you, by chance, running a beta version of iOS 7 on your phone?
    If so, this will be the problem. You will need to log Into the private developers forum athttps://developer.apple.com/support/ios/
    If you are not a developer, you will need to seek help by way of your favourite search site.

  • "Dialog box "PROBLEM WITH SHORTCUT"

    When my T40 p starts up I keep getting the following message, over and over again until I close the system tray IBM Connect bar. 
    "Dialog box “PROBLEM WITH SHORTCUT”
    The drive or network connection that the shortcut IBM Access Support.lnk refers to is unavailable.  Make sure that the disc is properly inserted to the network resource is available, and then try again. "
    Help!

    You'll need to find your iTunes folder. It's usually located on your main hard disk under My Documents/My Music/iTunes. Copy this whole folder to another hard drive (if possible) or burn it on a CD (probably will take more than one--depending upon how large your library is) or DVD. Once you have a good backup of your library, try downloading and reinstalling iTunes.

  • Fail-box problem

    Hi!
    I have some problem and I need help..
    fail-box problem with lokal and network system.
    I dont know how to solve it'
    Thank you...

    Are you still facing the same issue ? if yes then please post the screenshot of exact error and few details such as if you are getting this error while opening a specific file or on double click on Muse itself ?
    Thanks,
    Sanjit

  • Expanding Box Problem

    I have been working all morning to add a horizontal spry menu
    bar to the menu_bar section of the Mother Earth Template (
    http://www.webshapes.org/template/details/id/200702247034127204)
    from Webshapes (
    http://www.webshapes.org/)
    Anyway, I had to do some crazy positioning to get the
    submenus to lign up with the menus and now the submenus will not
    display in IE because of an 'expanding box problem' All of the
    problems are associated with either my "ul.MenuBarHorizontal ul" or
    my "ul.MenuBarHorizontal ul ul"
    Can anyone help me with this? I am a beginner with
    Dreamweaver and have been having a lot of troubles with it.
    Thanks.

    Hello Tom, Is it a template related error message?
    I would suggest you to use percentages when setting the width
    and height values.

  • Blue line around active boxes disappears, cannot figure out why....

    Hi ... hope you can help me with this, it's a minor irritation but it's driving me nuts. I'm writing a report that has several boxes with imported graphics in it.
    The active boxes have a light blue line around it, with tiny clear boxes in the corners and side mid-points. I can drag any of those tiny boxes to resize the image, or use the metrics inspector to enter the dimensions numerically. But sometimes, when I make the boxes larger, the blue line around the active box disappears.
    Those blue lines lining the active box are useful for aligning the graphics boxes, so it would be nice if they stopped disappearing on me.
    Anyone know why that happens?
    Thanks!
    shireen,
    new to iWorks

    I don't have any troubles selecting and aligning text boxes and graphics since I stopped sending them all the way to the back (arrange menu/send to back). There are times when you want them back there but most of the time you don't. Pages uses layers and one of the layers is the default text layer. Anything behind this text layer is difficult to select.
    You can select items behind the text layer by clicking in the area outside the margins and drag the pointer over to the graphic without releasing the mouse. If you use the 'send backward' command the object still remains easy to select.
    Some objects that have transparent areas (PDF's created from eps files for example) can only be selected by the click and drag method described above or by carefully positioning the pointer over a black or colored area until the pointer turns from a cursor to a pointer.
    Kurt

  • Setting up Abode Digital Editions, when I try to Authorize with my Abode id information I get the message "Activation Server Problem - check connection to the internet" when I clearly am connected to the internet ?

    Hi can anyone help me please this is driving me crazy ! I download and install Abode Digital Editions and when I try to Authorize with my Abode ID information I get the message " Activation Server Problem - check connection to the internet when I clearly am connected to the internet ?

    <moved from Downloading, Installing, Setting Up to Adobe Digital Editions>

  • Expanding box problem in some browsers

    My bottom three dividers are having an expanding box problem in some browers. Any idea how to fix? This is my first website and I am clueless.....
    www.privateinsurancebrokers.com
    Source Code:
    V <div id="container">
        <div id="main_image"><img src="Images/ThreeArch.jpg" width="960" height="400" alt="Kenneth G. Harris Insurance Agency" /></div>
        <div id="left_colum">
            <strong><a href="employeebenefits.html"><img src="Images/Website_EmployeeBenefits.jpg" width="310" height="127" alt="Employee Benefits Orange County" /></a>Employee Benefits
          </strong><br />
          Since 1972, Kenneth G. Harris Insurance Agency has advocated for our clients in the process of securing the highest value employee benefit program. <a href="employeebenefits.html" target="_new">Learn More»</a> </div>
        <div id="center_column"><strong><a href="HealthInsurance.html"><img src="Images/Family and Individual Insurance.jpg" alt="Family and Individual Insurance Services" width="310" height="127" align="top" /></a>Individual & Family Insurance Services
        </strong>Kenneth G. Harris Insurance Agency will work with our insurance and financial partners to assist you with all aspects of your personal insurance needs. <a href="individualinsurance.html" target="_new">Learn More»</a></div>
        <div id="right_column"><a href="news.html"><img src="Images/blog.jpg" width="310" height="127" alt="Health and Life Insurance News Orange County" /></a>
          <strong>Information</strong> <br />
    Keep up-to-date with the latest employee benefits and private insurance news. Let us serve as your resource for health care  reform news and<a href="article2.html" title="Kenneth G. Harris Insurance Agency Group Health and Individual Insurance" target="_new"> more»</a></div>
    </div>

    Your CSS Layout has a provision for clearing floats but I don't see it in your HTML markup.
    Insert a float clearing <br> <p> or <hr> right above your footer division like so:
    <hr class="clearfloat" />
      <div class="footer">
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • "Mail Activity" Box Strange???

    This morning I opened Mail,,, It got about three new messages. All normal so far,,
    While I was reading the new mail I noticed that the "Mail Activity" box located down in the lower left side of the window was showing a download of 761, yes 761 messages.... it took several minutes to complete and I did not get any new messages......
    What the devil is going on,,,,, I think this has happened before, but I just did not catch it.
    Also, even when things seem normal, I always get a down load number of new mail that is twice the amount that actually shows up. Any ideas??
    Am I going crazy??? Been using Mail for several years now,,,,,,

    Mike,
    You probably deleted your Autoexec.bat file!!! Miss you, brother!
    ron

  • 10.4.7 MLTE black box problem

    Hi all
    Anyone get a black MLTE box problem after the 10.4.7 upgrade?
    The multilingual text engine in the open source game Aleph One after the upgrade to 10.4.7 - shows a black box in the chat area. It is not always a problem - about 30% of the games I start seem to have it.
    Thanks

    I just recieved an email from F-Secure, after I told them, that no attachments sent from Mail (after 10.4.7) go through to F-Secure / Windows users.
    They have investigated the problem and reported this:
    The attachments MIME header has the following fields: name and filename.
    For some reason Mail removes the blank spaces from the name field but leaves the filename field untouched. These differences in the fields make F-Secure remove the attachment (alarm).
    One "fix" is removing the blank spaces from the filename, for example File 1.pdf >> File1.pdf. But this in not easy computing. Everything works just fine with 10.4.6 and before, but 10.4.7 >> is causing the problems.
    PowerMac Dual Core G5/2,3GHz | 250Gb | SD | 23 Cinema • PB G4/1,67GHz | 15,2 | 8   Mac OS X (10.4.7)   AppleFarmer

  • Activity Monitor problems increase CPU and power burn

    Migration Assistant worked very nicely, transferring from a Powerbook G4 with 30GB of files and data in about 45min via Firewire.
    However, after 2 days of usage, the CPU was still running at 80% and applications were incredibly sluggish. My battery calibration at full charge only showed a little over 1 hour. Activity Monitor also would not show any processes -- the list was completely blank.
    The solution was to rename the Preferences folder, allowing programs to create a new Preferences folder. I then selectively populated the new folder with the main old preferences for mail, Safari, etc. This not only solved the Activity Monitor problem, but immediately drove down the CPU usage to about 10% where I'd expect it. Now the battery shows over 2.5 hrs on a full charge with the screen on full brightness (and it's BRIGHT!)
    Also, Microsoft Word/Powerpoint/Excel/Entourage: trial software on the MacBookPro will mess up your migration, so delete the trial software BEFORE MIGRATION ASSISTANT.
    Hope this helps some of you out there!

    Another thing users who run Migration Assistant should know is that many of your background processes and helpers may slow down the Macbook.
    For example, I notice that a bunch of PowerPC menu items running under Rosetta slowed things down. Also, the Microsoft Office Autoupdate background process, which is started from System Preferences > Accounts > Login Items constituted one Rosetta process running all of the time.
    When I remove/disabled these background processes, I noticed a significant difference.

Maybe you are looking for