Drawing window help

can some one please help me i am trying to do my courswork on windows i need to use the drawing window but everytime i try to compile my code through command promt i get a message saying
D:\>javac DrawLine.java
DrawLine.java:1: package element does not exist
import element.*;
^
DrawLine.java:7: cannot find symbol
symbol : class ConsoleWindow
location: class DrawLine
ConsoleWindow c = new ConsoleWindow();
^
DrawLine.java:7: cannot find symbol
symbol : class ConsoleWindow
location: class DrawLine
ConsoleWindow c = new ConsoleWindow();
^
DrawLine.java:8: cannot find symbol
symbol : class DrawingWindow
location: class DrawLine
DrawingWindow d = new DrawingWindow();
^
DrawLine.java:8: cannot find symbol
symbol : class DrawingWindow
location: class DrawLine
DrawingWindow d = new DrawingWindow();
^
DrawLine.java:9: cannot find symbol
symbol : class Pt
location: class DrawLine
Pt pressPoint, releasePoint;
^
DrawLine.java:16: cannot find symbol
symbol : class Line
location: class DrawLine
d.draw(new Line(pressPoint,releasePoint));
^
7 errors
and this is the code that i am using
import element.*;
public class DrawLine
public static void main(String args[])
ConsoleWindow c = new ConsoleWindow();
DrawingWindow d = new DrawingWindow();
Pt pressPoint, releasePoint;
c.out.println("Press the mouse, drag out a line, and release!");
d.awaitMousePress();
pressPoint = d.getMouse();
d.awaitMouseRelease();
releasePoint = d.getMouse();
d.draw(new Line(pressPoint,releasePoint));
}

Re: getting the name right: check the documentation and make sure you have it right!
Re: the classpath, it depends on BlueJ. I have no idea how that works. But if it's like any other IDE I've ever seen, you have some kind of "project" attribute (to your IDE or project, not to the classes you're writing) or tab or menu item, and from there you can configure the project. One of the things you can configure is the class path. The element.* classes probably are in a jar file. So the IDE probably has a way to add that jar file to the class path.
Check your documentation.

Similar Messages

  • I have two faults! 1, an error comes up in Ps CC 2014 "could not apply the saved panel configuration, restring to default and my tools have disappeared completely and anything ive tried I cannot get them back not even the drop down menu in 'window' helps

    I have two faults! 1, an error comes up in Ps CC 2014 "could not apply the saved panel configuration, restring to default and my tools have disappeared completely and anything ive tried I cannot get them back not even the drop down menu in 'window' helps at all. And 2, Lr everytime I load it up it gives me the option to retry or switch to and it takes a while for me to even get anywhere with it I think it has something to do with the catalogs? I've been using these programs for a few years now on a Mac...no problem but when I use a PC when I'm away coz it's the (only) comp available these happen PC's are so useless! Please can anyone help??...

    I can give a few suggestions on Photoshop CC 2014, but Lightroom is a separate forum and you should ask Lr questions there.
    First close Photoshop.
    Then start Photoshop by double-clicking on it's icon and very quickly after that, hold down the ctrl-alt-shift keys until you see the reset dialog. answer "Yes" to delete settings, and let Photoshop continue to load.
    It's tricky to do and may take a few tries, but at least it should reset Photoshop CC 2014 to defaults.
    Gene

  • Disabling the F1 Windows Help and Support key

    Hello! I see there's lots of people that have been having this problem, but I felt I was in a unique (HA) position in that I have a Windows 8 OS, so the problem can't be solved following the steps to a Windows 7 solution. I've tried several things.
    First off, background; I have an HP 2000 laptop running Windows 8. I have wanted to use the function keys in a video game, but they were set as macromedia function priority. I went into BIOS and switched the action keys to DISABLED so that I could use FN+F
    Key in order to use the macromedia, and instead they revert to normal function. This is fine. BUT: It only worked for F2-F12. The F1 key is still mapped to open Windows Help and Support. I've tried to rename the helppane.exe (I am admin but only "Trusted
    Installer" can modify the file), and ran into problems. SO I tried to follow the steps to use regedit to block the helppane.exe, but the .exe isn't located where it is on a Windows 7 machine. 
    I have been working to try to find a solution to this problem for going on hours now, with no recourse. ANY solutions would be very welcome. Thank you. 

    You sure you already save after changing setting in BIOS
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=id&dlc=en&lc=en
    If yes, find your model in HP site and find the update BIOS, update your BIOS, and try again
    since this PC OEM. HP will provide better answer for you, and if you keyboard also comes with extra software I suggest to uninstall it first to check

  • Windows Help and Support screen glitch? And keyboard malfunction! Help!

    I have 3 problems. At the log in screen of my hp stream notebook 11, I wasn't able to complete my password due to a malfunction in one of the keyboard keys. I shut down the computer and came back later to try again. It worked but when I logged in, the Windows Help and Support screen kept repeatedly popping up even when x'd out. I would let it repeatedly pop up (like a glitch) and I would x it out and it would go away. Also as I was typing in anything (wordpad, internet, search), every other key letters and numbers were acting as shortcuts to different screens such as apps, the log in screen, control panel etc. then the Windows Help and Support screen would pop back up again as a glitch. Please help!

    Hi @aaliyah22 
    Welcome to the HP Support Forums!
    You mention three different issues, and I am happy to assist with this. Obviously we need to start with the keyboard. As it is just the one key you describe as  a problem, I would try a cleaning. You could see if some compressed air helps first as some debris may have gotten into it. Also you can look at these two pages and see if anything helps.
    Notebook Keyboard Troubleshooting (Windows 8)
    Cleaning your Notebook PC
    The other two problems sound a lot like something like a software or possibly a malware related issue, but you can start with trying a system restore to a point before the problem began and see if that helps.Using Microsoft System Restore (Windows 8)
    Then take a look at these.
    Resolving and Preventing Viruses on Your Computer (Windows 8)
    About Spyware, Adware, and Browser Hijacking Software
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Windows Help and Support Message box keeps popping up

    I am not really sure what happened but my keyboard stopped working.  It kept typing out random letters and not the ones I typed.   At the same this "Windows Help and Support" box started popping up.  So, I can't use my keyboard but the pop up window keeps interuping Netflix and vidoes and I can't watch them and  Word documents.  Pretty much anything I do gets interupted by this box and stops whatever I am trying to which is trying to build a website at the moment. 
    I uninstalled the support.   It no longer appears in my program list but the box still keeping popping up and stopping everything I am doing. 
    What I am suppose to do?  It doesn't say its the HP Support it says "Windows Help and Support" at the top of the box. 
    I have tried everything.

    Hey @c4yp ,
    Welcome to the HP Forums!
    I understand the keyboard on your notebook is not working properly, and the Windows Help and Support window keeps opening. 
    This popup is typically caused by a spyware or malware infection. Please follow the steps below and let me know if it helps.
    Perform a clean boot. See here for a guide to to this: How to perform a clean boot in Windows
    Run Malwarebytes Free scan.
    Run AdwCleaner scan.
    Use Step 3 and Step 5 of this guide for the steps to run Malwarebytes and AdwCleaner: Remove “Ads by GoSave” virus (Easy Removal Guide)
    Thanks!
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

  • HP D017TU Laptop - Windows Help ans Support window started popping up and i can't get ride of it

    Just purchased a brand new HP D017TU Laptop so nothing been done with it. I installed windows 7 on my HP D017TU laptop. it was working fine.
    Then 2 days ago the Windows Help ans Support window started popping up and now I can't get ride of it.
    I have tried the following things to get ride of the issue,
    1) Format windows 7 os
    2) Delete All partition and re-create
    3) Re-install windows 7
    Does anyone know how I can stop this happening.

    Hello SaravSB, welcome to teh HP Forums.
    I see that you're having an issue where the Windows help and support is popping up. I will try to help you with this.
    I've looked into this for you, it seems this was an issue from back when Windows 7 launched. Any "solutions" also seemed to vary user to user. You may want to try contacting Microsoft for support on this. I was able to find a couple of posts off the answers.microsoft.com forums.
    "SuperJbye replied on  July 14, 2013
    Hello
    I found a simple yet effective solution for this problem, my friend had the same issue so instinctively as a technician, I suspect this was a malware of somekind so I re-formatted and installed Win7 funny it's still there, so I did a Hard disk wipe using Dalvik's and re-partitioned and formatted again, to my surprise it still have the same problem.
    So I ask Mr. Goo' old Mr. Google for answer, but I've found more complications, sorry for the story, so without further a do, the solution.
    Boot to safe mode. (may also work in "normal mode")
    Go to Task Manager>
    Click the Services Tab>
    Right click "HelpPane.exe" or Help and support service>
    Select Properties>
    Click the Security tab>
    Click the Advanced tab (for permissions options)
    Then select the "permissions entries" one at a time>
    Click Change Permissions>
    Then click Edit>
    CLEAR ALL THE CHECK BOX FOR ALL ENTRIES
    This should prevent access to the HelpPane.exe to all users/programs.
    This resolved my friends Windows 7 "Help and Support thingy" issue, hope it does yours too.
    Message me for questions and/or clarifications/corrections.
    Thank you"
    "EddJosh replied on  April 29, 2014
     In reply to Danel...'s post on April 28, 2014
    To fix the problem of the help pane appearing everytime you start windows do the following:
    1. Run 'msconfig'
    2. Go to the 'Startup' tab
    3. One of your 'Startup items' is causing the pane to appear and you are going to have to find out which one it is!  Untick ALL the items and reboot.  The help pane will not appear harrah!  Rather than adding the Startup Items back in one at a time and rebooting a hundred times, tick half the programs back in and reboot.  You can find the culprit in about 5 reboots if you do it logically and add/remove half/quarter etc at a time.
    4.  Finally you will be left with all your Startup items ticked and the guilty program unticked (and that annoying help pane will no longer be appearing)
    5. Now delete the guilty Startup Item from the registry (which will also remove it from the msconfig startup tab.
    6. Open 'regedit'
    7. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg and delete the guilty program folder.  BACKUP YOUR REGISTRY FIRST!
    8.  You're welcome."
    Both of those, as well as other steps are located in this thread: Windows 7 "Help and Support" keeps popping up.
    You could try those suggestions and even give that thread a read over, other wise the best option would be contacting Microsoft as stated above.
    Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Using Excel 2008 for a Mac in my laptop and part of toolbar has disappeared (windows, help, view, etc) and Need to to freeze column headings

    Using Excel 2008 for a Mac on my laptop
    Part of toolbar has disappeared (windows, help, view, etc) --- want to restore
    Need to freeze column headings but freezing option was not working prior to disappearance of tool bar

    Hi Alveretta,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing developing issues on Windows platform. I suggest to get more effective response from
    Office for mac forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or
    learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use a Windows Help File (.hlp) - URGENT

    Hello!
    Can anybody tell me how to use a windows help file (.hlp) in my Java application? Is there any possiblity to reference a specific topic (by Help Context-ID)?
    Thanks in advance,
    Phil

    try calling the Runtime.exec() method
    pass the paramter String as <filename>.hlp
    i donno about the context
    regards
    rohan

  • How to call windows help files .hlp from Java program

    Hai all everybody
    How to call windows Help file that is xxx.hlp files from java programs
    any help great!!!!
    regards
    veeru

    How about
    Runtime.getRuntime().exec("start xxx.hlp");

  • File edit find view window help does nor appear on my new computer but it does on my old computer

    The line with file edit find view window help does not appear . the line does appear on my old computer

    Good day!
    Could you try hitting the F-key once or twice?
    Regards,
    Pfaffenbichler

  • Exit window help

    I am try to figure out how to have an action to close out the
    browser window.
    I want my button to play a sound then it will go to a certin
    frame in the timeline and when it hits the frame with the action I
    want it to close out the window.
    help Please

    Hi,
    I'm afraid I don't understand your answer. When I look at http://help.sap.com/saphelp_bw32/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm:
    I_STEP = 1
    Call up takes place directly before variable entry
    I_STEP = 2
    Call up takes place directly after variable entry. This step is only started up when the same variable could not be filled at I_STEP=1.
    SInce there wasn't any variable entry yet, I don't see when step 2 will be executed nor how to achieve things with a seperate 0calyear var when one doesn't want to see nor filter on 0calyear.
    Eddy

  • Getting Window help in Oracle Applications 11 and 11i.

    Hi
    I installed Oracle 11 on Windows NT. I have few problems.
    1) I am not getting window help for every screen.
    2) I am not able to install client on other machines. I am getting the welcome screen.
    3) The output from requests is not coming in the HTML window ie., Internet Explorer. It is giving "file not found" error.
    Please help me out.
    Thank you.
    Naren

    If I understand your question correctly, you are talking about accessing the help that is already provided with Oracle Applications, correct? This discussion forum is intended for help authors and developers who are implementing help systems using Oracle Help for Java (OHJ) and Oracle Help for the Web (OHW). Perhaps one of the Oracle E-Business Suite forums would be more helpful for you. For example, you might want to try E-Business Suite > Administration > Managing Oracle Applications.
    If you are indeed asking a question about OHJ or OHW, please respond to this message to correct my error!
    Ben Gelernter
    Oracle Help Technologies (Oracle Help for Java, Oracle Help for the Web)

  • I can't see the menu bar in PSE 9 Organizer.  Where File Edit View Window Help should be

    I can't see the menu bar in PSE 9 Organizer.  Where File Edit View Window Help should be

    Check your Windows Display Preferences, and make sure you're using the default, 100%, smaller screen fonts.
    Ken

  • The "File Edit View Window Help" menu disappears after opening Adobe Acrobat X Standard

    After installing Adobe Acrobat X Standard, when I run the program the "File Edit View Window Help" menu is visible for only a brief second then disappears.  I tried to press F11 or other functions keys to bring it back.  I also installed Adobe Acrobat X Pro which I also have a license for and it would do the exact same thing. Reinstalling the programs did not seem to resolve the problem.  Is there an issue inside the registry?

    Thank you for your comment.  However, F9 does not seem to work.
    When I press F9, the menu bar appears but the words "File Edit View Window Help" are still missing.  
    When I press F9 again the menu bar will close.
    This is a screen capture before the words "File Edit View Window Help" disappear.  After only about a second they are gone.

  • I lost the top toolbar that has Safari-File-Edit-View-History-Bookmarks-Window-Help

    I lost the top toolbar that has apple-safari file-edit-view-history-bookmarks-window help
    How do I restore it?

    View webpages in full screen
    In many applications on the Mac, including Safari, you can expand the window to fill your entire screen. You can make a webpage full-screen with one click, and switch to another webpage (or full-screen window in another application) with a swipe of the trackpad.
    IMPORTANT:Viewing in full screen, and the Mission Control feature, are available only if you have Mac OS X v10.7 Lion or later. For information on upgrading Mac OS X, go to the Mac OS X website.
    OS X website
    To enlarge a webpage so it uses the screen, click the arrows in the top-right corner of an application window:
    To move from one window to another in full screen view, swipe left and right, or press the arrow keys on your keyboard.
    To return to standard view, click the arrows in the window’s upper-right corner:
    If you prefer viewing webpages in full screen, Mission Control lets you see everything running on your Mac, including your full screen windows. Mission Control presents your full screen windows as thumbnail images, making it easy for you to move from one to another.

Maybe you are looking for

  • HT3696 is it possible to upgrade video card in mac book?

    Hi Folks, I'm a Mac Newbie, I was wondering if there is a way to upgrade video card on Mac Book? I'm trying to add final cut and it tells me my video card won't work with it, appreciate any suggestions. RTD

  • HP Photosmart Wireless B109n-z Offline

    I've had many problems with connectivity dropping out with this printer. Yesterday I thought I'd solved the problem by reading through some solutions and assigning a static IP address to the printer. Today my partner wanted to connect to the printer

  • Process Choreogaphy-- Staff Activity Problem

    Hi , I am using a staff activity in my BPEL. The client property of the Staff activity is Portal. Here we have to set the custom unique name and type also. But my problem is i want to set the Client property , i.e custom unique name dynamically. I us

  • Macbook Air for College?

    I'm thinking about getting a MBA for college in the fall. I do light/medium video/photo editing, a lot of multitasking, web surfing, etc. I like the idea of the AIr because it boots up so quickly and is much more convenient for work on the go. Has an

  • My traffic conditions dont show up on the notification even when it is turned on - ios 8

    my traffic conditions dont show up on the notification even when it is turned on - ios 8 I have tried hard resetting. I had a similar problem with the weather but got that resolved now. Any ideas on how to fix? Thanks