Need help getting my applets to work on web pages!

I've been trying to get it to work for a while now, and I no idea why it won't work! I've tried all kinds of things to get it to work, but it still won't work. All I want to do is make a simple applet, don't care what it does, and put it on a web page.
Here is my HTML code:
<applet code=?Slime2P.class? height=?300? width=?400? codebase=?http://www.spinarcade.com/tests?>
</APPLET>
Here is a link to what happens:
[http://www.spinarcade.com/tests/duk.html|http://www.spinarcade.com/tests/duk.html]
Here is the errors:
load: class ?Slime2P.class? not found.
java.lang.ClassNotFoundException: ?Slime2P.class?
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.plugin.AppletViewer.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
It works fine when I run the applet in eclipse, and I've tried many different applets. I tried using a cool program I wanted to put online first, then I made a simple program to try, and then I even downloaded the file from a tutorial and didn't edit it at all... nothing works!
Here's code from one of the applets (Simple applet with green lines):
import java.applet.*;
import java.awt.*;
public class Duck extends Applet {
int width, height;
public void init() {
width = getSize().width;
height = getSize().height;
setBackground( Color.black );
public void paint( Graphics g ) {
g.setColor( Color.green );
for ( int i = 0; i < 10; ++i ) {
g.drawLine( width, height, i * width / 10, 0 );
I have all the .class file and the html page in the same place (http://www.spinarcade.com/tests).
Thank you for your help! It is most likely something simple...
Edited by: Donv7 on Jul 17, 2008 2:27 PM

Here is your html:
<HTML>
<HEAD>
<TITLE>Duk!</TITLE>
</HEAD>
<body bgcolor="#DAE9F3">
<center>
<applet code=?Slime2P.class? height=?300? width=?400?>
</APPLET>
ducks these dayz...<br>
codebase=?http://www.spinarcade.com/tests?<br>
C:\Documents and Settings\Don\Desktop<br>
http://www.spinarcade.com/tests<br>
</center>
</BODY>
</HTML>Look carefully at the double quotes surrounding the red text (bgcolor).
Look at the double quotes used in the applet tag now!!!

Similar Messages

  • I need help getting my printer to work

    I need help getting my printer to work

    http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/Want-Good-Answers-Ask-Good-Questions/td...
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Need help getting my applet to run..

    Hi, I am having the utmost trouble getting my applet to run. First I spent a month correcting syntax and other errors generated during compile. Now I find myself spending another month getting the compiled product to run. I don't care if the screen is completely blank and my logic is all messed up, I don't mind logic debugging. My applet just will not run at all, it won't even initialize.
    First when I tried to run my applet in Internet Explorer I got the following error in the statusbar:
    "load: tsorgi5 can't be instantiated"
    So, I researched that error message, and the solution appeared to be that I would need to use the Java Plug-In. So, I use that and now I find this message in the statusbar:
    "exception: null."
    That happens when the text "Loading Java Applet ..." is in the centre of the applet, and Internet Explorer acts like it is still doing something no matter how long I wait.
    I tried researching this, but only found "exception: null" with other things after the text "null."
    In Forte, when I choose "Execute" I get the following in the Output Window, I/O tab:
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    I would assume it expects me to add a method "main()," but I also get that same message with a different applet (which doesn't have a method "main()") which runs perfectly fine.
    I usually try to solve many of my problems myself, but with this one I have no idea where to start looking for answers. I'm relatively new to Java, been using Java for only half a year, so this particular problem is like looking for a four-leaf clover in the streets of New York City..
    I'm going to be chopping my applet into pieces, having a separate class file for each major engine. (It is a role-playing game, so I'll separate battle engine from cut-scene engine from world exploration engine etc..) Hopefully I will be able to narrow down my search for what is causing me all of these problems. Then once I solve my problems I can piece everything back together.
    In the meantime, I am hoping that some of you could help me out so that I may know what I am looking for.
    Thank You for your time,
    -Tony Slater

    Ah.. Forte is still a bit confusing to me, I have not and probably will not take the time to learn much about Forte, as the only real reason I use it is because unlike wordpad, I can see line numbers. =] Very helpful with my program being the size that it is.
    I do not think that the simple applet idea will be of much use, because one of my earlier applet projects (a main menu for my current project) which I mentioned above as another applet without a main() method which worked perfectly fine is very simple. Although I will try it anyway, as it could help and you are most likely much more experienced than I. =]
    Okay, I typed the following in the Dos Prompt:
    appletviewer TestApplet.class
    ..It printed a blank line, paused a little bit, then brought me back to the prompt, just like running a dos program that does not give any output. I'm not sure, but I would assume it should print a line containing the text "Here?" I have not used appletviewer before, so I do not know what it is supposed to do. =P
    I have already tried using System.out.println, but the problem occours even before the applet is started. I'll try enabling the Java Console first thing tomorrow morning, since a restart is required when enabling it.
    Now, I would be happy to post some code, but I'm not sure it would be best to post the code when my program is 2814 lines.. although 800 lines are probably comments, and most of those comments are probably irrelevant. Also I can sometimes be a messy coder. Although I can post some general information and can probably (with a little work) post an "outline" of the code.
    Since it is getting late I'll just post some portions of code which hopefully will prove important.
    // Import Packages
    import java.awt.Graphics;
    import java.awt.Color;
    import java.awt.*;
    import java.applet.*;
    import java.lang.System;
    import java.lang.reflect.Array;
    import java.lang.Math;
    import java.lang.Double;
    import java.math.*;
    import java.util.Random;
    import java.io.*;
    variable/object types created and/or declared between "public class.." and "public void init()...":
    int
    byte[]
    String
    RandomAccessFile
    int[][]
    double
    int[]
    double[][][]
    Random
    Image
    int[][][]
    arrays are filled in the init() method.
    public String getIniStrValue(String iniFile, String iniGroup, String iniItem) // Used for retrieving information from the game's external file system.
    another method getIniIntValue(int, String, String, String) is used for int values stored in external files.
    Within public void paint(), gameplay modes are detected and dealt with accordingly. With Cut-Scenes, proper charecter images and text is displayed, all cut-scene information is stored externally. Other modes do virtually the same, display graphics and text based on internal game data or un-changing external data files.
    Within public void mouseClick(), in certain modes of the game the mouse click will trigger a change no matter where the user clicked (such as cut-scenes, to advance to the next line of dialog), or different variables are set depending on where the user clicked. (What I like to call.. custom buttons) At the end of the method repaint(); is used, and the paint() method will alter the screen according to any changes that may have happened.
    public void charAttack() is a method called to handle battle equations when a playable and controllable charecter is making a move. It will detect the current charecter, detect the move being made by the charecter (attack, special move, magic, etc) and will change any variables accordingly and will then use repaint(); so that the player may know what has happened. (Whether or not attack was successful, how many HP the enemy lost, etc)
    public void loadBattle() is called when the charecter encounters an enemy. It will load possible enemies of the current part of the world being explored, select one, then load that enemy's "stats" from external game data files, and will then specify the new mode (Battle Menu, where the player chooses the moves to be made for the turn) by setting the int value "Mode." repaint(); is then called and it will paint the battle menu.
    public boolean keyDown() is of course used to detect keyboard events. In world exploration, the charecter will be moved accordingly. In modes such as cut-scenes, a variable will be changed to advance to the next line of speech. In menus, the keyboard events are used to switch between options. repaint(); is used to update the screen accordingly.
    Well, even though I very briefly summarized the code, it appears to have taken half an hour to do. I'll be getting some sleep in a few minutes, and when I wake up tomorrow morning I hope to both see and make some progress on solving this problem.
    Thank You,
    -Tony Slater.

  • I need help getting this program to work.

    K. I don't pay much attention in my AP Comp Science Class.. but my teacher said if i can get this program to work i get an a for the semester... The program is Metrowerks Codewarrior IDE.. we are running it on windows 98 i think. She said she can't get it to compile.. so i guess it just needs to be able to input simple java programs (i.e. loops, just the regular crap) and compile them and run them...i have no clue what is wrong with it.. it could just need a patch...or we may just be going about it the wrong way...any help would be SUPER appreciated...

    K. I don't pay much attention in my AP Comp Science
    Class.. but my teacher said if i can get this programYou better did.
    to work i get an a for the semester... The program is
    Metrowerks Codewarrior IDE.. we are running it on
    windows 98 i think. She said she can't get it toAtleast be sure of the OS.
    compile.. so i guess it just needs to be able to
    input simple java programs (i.e. loops, just the
    regular crap) and compile them and run them...i have
    no clue what is wrong with it.. it could just need aEven we don't.
    patch...or we may just be going about it the wrong
    way...any help would be SUPER appreciated...Nothing in your thread really speaks of the problem. And since you mentioned homework, there's hardly anyone to be interested in that.
    Regards
    ***Annie***

  • Need help getting this code to work

    I am trying to get this code to work using "if else statment" but it will only do the first part and not do the second part in the else statement. Can anyone help me out? Here is the code:
    var R1 = this.getField("Registration Fees1");
    var R2 = this.getField("Registration Fees2");
    var R3 = this.getField("Registration Fees3");
    var R4 = this.getField("Registration Fees4");
    var R0 = 0
    if (R0 == 0)
      event.value = Math.floor(R1.value);
    else
      event.value = Math.floor(R2.value + R3.value + R4.value);
    I did notice that if I fiddled around this this part:
    if (R0 == 0)
    sometimes I can get the second part to work but not the first. I need it to do either or and this is getting frustrating.
    I might also not even need "var R0 = 0". I put that there for the condition part. If that is what is causing the problem, I can take it out. But then what would the condition be? For this form, the default is 0 and then the calculation follows by user clicking on different prices. The first part is if they want to pay for the full conference and the second part is if they want to pay for either Monday, Tuesday or Wednesday or 2 of the 3 days. Is it possible to get this to work with both parts together? I am still stuck on getting just one or the other working. Any help would be greatly appreciated. Thanks in advance.

    I have posted this on another message board and a user by the name of gkaiseril offered this solution but it hasn't worked either.
    // all four days
    var R1 = this.getField("Registration Fees1").value;
    // Monday
    var R2 = this.getField("Registration Fees2").value;
    // Tuesday
    var R3 = this.getField("Registration Fees3").value;
    // Wednesday
    var R4 = this.getField("Registration Fees4").value;
    var Fee = 0
    event.value = ''; // default value
    if (R1 != 'Off') {
      Fee = Number(R1) + Fee;
    } else {
      if(R2 != 'Off') {
         Fee = Number(Fee) + R2;
      if(R3 != 'Off') {
         Fee += Number(R3);
      if(R4 != 'Off') {
         Fee = Number(R4) + Fee;
    event.value = Fee;

  • I need help getting Mini Bridge to work in PS CS6

    I have already tried deleting the folder and rebooting the computer, I have tried creating a new user account, I have tried uninstalling and reinstalling the entire package and I cannot get Mini Bridge to work at all. It just keeps going to "Mini Bridge waiting for Bridge CS6..." and then never finds anything. I am having this issue on both my Macbook Pro Retina 15 and my MacBook Pro 13 (Early 2011 model). I cannot seem to find any other solutions to this problem online. I also made sure that both Macbooks are fully updated as well as all CS6 software titles. Please help me fix this!
    I also made sure I added it to the exceptions list in the firewall too.

    Moving the discussion to PS forum
    You can also follow the solution suggested in http://helpx.adobe.com/photoshop/kb/error-waiting-for-bridge-cs5.html
    they may help

  • Need help getting guest access to work.

    I have searched and Googled and found very little about enabling temporary guest access on an AEBS.
    What I could find said just type in "the PIN number." OK, what PIN number? It appears that the device seeking access is supposed to supply it somehow and then I type it in while using the Airport Utility. I see no such number on the device. I also tried the "first one to try" method and got nowhere.
    In both cases I was using an iPhone that wanted to use my network. Does this work with iPhones?
    Many thanks,
    -dan

    This thread http://discussions.apple.com/thread.jspa?messageID=4088108&#4088108 looked helpful but I can't get guest access to work for my son's guest using a Dell XP laptop (using Dell wireless management) despite allowing timed access. Neither the PIN nor the first attempt option allowed him on the network without giving him our password.
    It's still not clear if or when this will work. At the very least, the documentation is terrible.

  • Need help getting LCD monitor to work with G4 GeForce4 MX

    I have a G4 that I haven't been using and want to get running again. It has a Nvidia GeForce4 MX video card. I had a huge CRT monitor and want to use a ViewSonic VX1935wm which I got a deal on. When I hook the monitor up it says that the resolution is out of range.
    I can boot with my old monitor and change the connection and then get the LCD to work but only at certain resolutions.
    Do I need to get a new video card, or can I get an adaptor? What kind of card should I get if it needs to be replaced? Or what other kind of monitor would be supported by this video card?
    Here is the webpage for this monitor: http://www.viewsonic.com/products/lcddisplays/xseries/vx1935wm/

    thanks for the links.
    switchResX does something, but it doesn't solve the problem. i can now switch to the "optimum" resolution of 1440x900, 60hz. but when i restart the computer, it still won't work! i continue to get the "out of range" message and have to boot with my crt and then switch cables to do anything. also, the fonts in the finder menus look terrible, you can see the jagged lines.
    displayConfigX won't let me test that high of a resolution without registering the product.. needless to say, i don't want to pay money if the results are going to be the same as with SwitchResX.
    I sent an e-mail to ViewSonic support. Is it typical to have these problems? I am getting more and more confused as I learn more about this.

  • Need help getting Apple Extreme to work with Be box

    Anyone able to give an idiots guide to getting Apple Extreme to work with Be Box wireless modem?
    Used to have Orange (Wanadoo) broadband with Livebox wireless router, which i had my AE wired up to and it worked fine. Signed up with Be* and managed to get their wireless router working and communicating with my Mac OK. When i hooked up AE the green light came on but i can't manage to get my Mac to find it.
    Any help would be very appreciated.
    Thanks.

    Hello Orang Hutan. Welcome to the Apple Discussions!
    What is your connectivity goal for the 802.11n AirPort Extreme Base Station (AEBSn)?
    o Connect it directly to the Be Box wireless router via Ethernet, or
    o Connect it wirelessly to the Be Box's wireless network?
    If it is to go the wireless route, do you want the AEBSn to extend the wireless range of the Be Box?

  • I Need Help Getting My .SWF to Work

    Good afternoon,
    I have developed a website using CS3 Dreamweaver. On my index.html page I have entered a .swf file from CS3 Flash for an animated intro, and I created a flash "ENTER" button in Dw. Everything works fine when I go to preview it in Dw using the safari browser. However, when I upload the files to the server and then go to my site using the internet by way of the safari browser it doesn't show up! The background shows up, but not the flash animation or the flash button. Can someone please help me with this? The web site is www1.pacific.edu/~psilva1/index.html. Below is the code that is currently on this page:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <style type="text/css">
    <!--
    body {
         background-image: url();
         background-color: #000000;
    #imgholder {
         width: 940px;
          margin: 0 auto;
    body,td,th {
         font-family: Gill Sans;
    </style>
    <title>Welcome To Ammocan's Graphic Design Portfolio Utilizing Creative Ideas</title>
    <meta name="Keywords" content="welcome, ammocan, graphic, design, portfolio, creative, idea, art, adobe, illustrator, photoshop, dreamweaver, fireworks, flash, rendering, logo, branding, publication, typography, web page, business, tattoo, animation, " />
    <meta name="Description" content="Two Drops In A Bucket Graphx is a creative graphic design company owned and operated by "the="the" designer="designer"" ammocan, which="which" is="is" operated="operated" out="out" of="of" stockton,="stockton," ca.="ca." />
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <div align="center">
      <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','name','Intro','width','940','height','800','id','Intro','title','Intro','src','assets/flash/intro','loop','false','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','scale','exactfit','movie','assets/flash/intro' ); //end AC code
      </script>
      <noscript>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" name="Intro" width="940" height="800" id="Intro" title="Intro">
        <param name="movie" value="assets/flash/intro.swf" />
        <param name="quality" value="high" /><param name="LOOP" value="false" /><param name="SCALE" value="exactfit" />
        <embed src="assets/flash/intro.swf" width="940" height="800" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" name="Intro" scale="exactfit"></embed>
      </object>
      </noscript>
    </div>
    <div align="center">
      <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','name','Enter','width','105','height','21','align','absmiddle','id','Enter','title','Enter','src','assets/flash/button1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#000000','movie','assets/flash/button1' ); //end AC code
    </script>
      <noscript>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" name="Enter" width="105" height="21" align="absmiddle" id="Enter" title="Enter">
        <param name="movie" value="assets/flash/button1.swf" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#000000" />
        <embed src="assets/flash/button1.swf" width="105" height="21" align="absmiddle" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#000000" name="Enter"></embed>
      </object>
      </noscript>
    </div>

  • I need help getting my Intuos5 to work with Flash CS6

    Can someone give me some help with this? I can't find a single thing on Google that helps me.
    I installed Adobe Flash CS6 recently and I have been using my Intuos5 Large for a long time now with Photoshop CS6. The thing is, with Photoshop, it took forever to get working properly. It turned out that I needed to use the 64-bit version because my 64-bit system and tablet drivers won't work with 32-bit Photoshop.
    Concerning Flash, it's the same problems as Photoshop. It refuses to recognize my tablets functions such as pressure and tilt sensitivity. It also has an annoying lag or lack of response if I do small, quick strokes. I would switch Flash to 64-bit mode, but there isn't one. I can't find the little stroke-like icon in Flash to turn on sensitivity either. I'm really confused. I've tried it with Flash CS5.5 and it's the same thing.
    That's my issue, and I have tried restarting the software and rebooting many times as well. There doesn't seem to be much for options. This all leads to it probably being a 64-bit and 32-bit compatability issue
    I'm running Windows 7 with more than enough power to maintain Flash CS6. It is possible that I may need to update my tablet driver since I did for Photoshop CS6, but it was a pain in the *** getting Photoshop to work until I used 64-bit mode. I may need additional files to mod the software.
    I would really appreciate the help so I can begin to learn animation. It's my passion. Thanks, in advance.
    Here are my relevant specs:
    System Information
    Time of this report: 9/4/2012, 01:32:48
           Machine name: LAPPY_TOPPY
       Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.120503-2030)
               Language: English (Regional Setting: English)
    System Manufacturer: TOSHIBA
           System Model: Satellite L675
                   BIOS: Phoenix SecureCore Version 2.30
              Processor: Intel(R) Core(TM) i5 CPU       M 450  @ 2.40GHz (4 CPUs), ~2.4GHz
                 Memory: 4096MB RAM
    Available OS Memory: 3954MB RAM
              Page File: 2016MB used, 5890MB available
            Windows Dir: C:\windows
        DirectX Version: DirectX 11
    DX Setup Parameters: Not found
       User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
        DWM DPI Scaling: Disabled
         DxDiag Version: 6.01.7601.17514 64bit Unicode
    Display Devices
              Card name: ATI Mobility Radeon HD 5650
           Manufacturer: ATI Technologies Inc.
              Chip type: ATI display adapter (0x68C1)
               DAC type: Internal DAC(400MHz)
             Device Key: Enum\PCI\VEN_1002&DEV_68C1&SUBSYS_FD001179&REV_00
         Display Memory: 2735 MB
       Dedicated Memory: 1014 MB
          Shared Memory: 1721 MB
           Current Mode: 1600 x 900 (32 bit) (60Hz)
           Monitor Name: Generic PnP Monitor
          Monitor Model: unknown
             Monitor Id: LGD01CA
            Native Mode: 1600 x 900(p) (60.080Hz)
            Output Type: Internal

    If you are moving from an existing Mac to a new Mac the easiest thing to do is connect the two Macs via a Firewire cable and run the Migration assistant. If you are moving files from a Windows platform or you don't want to use the Migration assistant review this article.
    http://docs.info.apple.com/article.html?artnum=300173

  • Need help getting mimeopen -d to work [SOLVED]

    I'm trying to set default applications on a relatively fresh install of Arch.  I know in the past I've been able to just to do something like mimeopen -d file.pdf okular and it has worked, but now I get the following error message
    [ryantr@myhost Downloads]$ mimeopen -d file.pdf okular
    No applications found for mimetype: application/pdf
    [ryantr@myhost Downloads]$ mimeopen -d file.pdf
    No applications found for mimetype: application/pdf
    My guess is that there is a database somewhere that needs updating.  I tried running update-desktop-database but no help.  I know in the past I haven't had to manually edit files for something as common as a pdf.
    What am I missing?  FYI, my DE is Fluxbox.
    Last edited by ryan0270 (2010-12-15 05:23:14)

    Ok, I finally got frustrated enough to look at this again and have it working, although I'm not sure what exactly made it work  Here are the steps I did:
    Looking at the verbose output of update-desktop-database seemed to indicated a directory problem.  The last line says a directory did not exist so I created that...
    [root@user]# update-desktop-database --verbose
    Search path is now: [/usr/share/applications, /usr/local/share/applications]
    File "/usr/share/applications/policytool.desktop" lacks MimeType key
    File "/usr/share/applications/qtconfig.desktop" lacks MimeType key
    File "/usr/share/applications/kde4/Help.desktop" lacks MimeType key
    File "/usr/share/applications/kde4/knetattach.desktop" lacks MimeType key
    File "/usr/share/applications/bssh.desktop" lacks MimeType key
    File "/usr/share/applications/avahi-discover.desktop" lacks MimeType key
    File "/usr/share/applications/dropbox.desktop" lacks MimeType key
    File "/usr/share/applications/jconsole.desktop" lacks MimeType key
    File "/usr/share/applications/bvnc.desktop" lacks MimeType key
    File "/usr/share/applications/pidgin.desktop" lacks MimeType key
    File "/usr/share/applications/assistant.desktop" lacks MimeType key
    Could not create cache file in "/usr/local/share/applications": Error opening directory '/usr/local/share/applications': No such file or directory
    Running update-desktop-database again got rid of the last error message but didn't fix the problem so I manually copied all the Okular related .desktop files from /usr/share/applications/kde4 to /usr/share/applications.  This seemed to fix the problem, although I'm not sure why since the above error message showed problems with other .desktop files inside the kde4 directory so I'm assuming it was scanning correctly.
    But it works now, for whatever reason.

  • Need help getting Main method to work...

    Hello everyone, I have a problem, I have a GUI that I need to run (it compiles fine, but will not run.) I am very new to Java and programing in general so go easy on me. I think I am just missing something simple here. I am going to post the basic code and see if you all can help...the issue is in written in red to help you identify my problem...
    public class LagersGUI extends JFrame implements ActionListener,Serializable
    {color:#0000ff}private {color}JTextArea {color:#339966}textArea{color};
    {color:#0000ff}private {color}JButton {color:#339966}start,
    next,
    previous,
    last;{color}
    JLabel {color:#339966}imageLabel{color};
    {color:#0000ff}private static{color} LagersAddInfo {color:#339966}inv{color} = {color:#0000ff}new {color}LagersAddInfo();
    {color:#808080} /**
    * @param arg0
    * @throws HeadlessException
    */{color}
    {color:#0000ff}public {color}LagersGUI( String arg0 ) {color:#0000ff}throws {color}HeadlessException
    {color:#0000ff}super{color}( {color:#ff9900}"Inventory GUI" {color});
    {color:#339966}textArea{color} = {color:#0000ff}new {color}JTextArea( 800,800 );
    JScrollPane scrollPane = new JScrollPane( {color:#339966}textArea{color} );
    textArea.setEditable( {color:#0000ff}false {color});
    scrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
    scrollPane.setPreferredSize( new Dimension( 600, 100 ) );
    JPanel cp = new JPanel();
    cp.setSize( 400, 100 );
    cp.setLayout( new BorderLayout() );
    cp.add( scrollPane,BorderLayout.{color:#339966}CENTER{color} );
    JPanel buttonPanel = new JPanel();
    JPanel buttonPanel1 = new JPanel();
    {color:#339966}start{color} = new JButton( {color:#ff9900}"Start"{color} );
    {color:#339966}start{color}.addActionListener( {color:#0000ff}this {color});
    {color:#339966} next{color} = new JButton( {color:#ff9900}"Next" {color});
    {color:#339966} next{color}.addActionListener( {color:#0000ff}this {color});
    {color:#339966}previous{color} = new JButton( {color:#ff9900}"Previous"{color} );
    {color:#339966} previous{color}.addActionListener( {color:#0000ff}this {color});
    {color:#339966} last{color} = new JButton({color:#ff9900} "Last"{color} );
    {color:#339966} last{color}.addActionListener( {color:#0000ff}this {color});
    buttonPanel.add( {color:#339966}start {color});
    buttonPanel.add( {color:#339966}next {color});
    buttonPanel.add( {color:#339966}previous {color});
    buttonPanel.add( {color:#339966}last {color});
    cp.add( buttonPanel,BorderLayout.{color:#339966}SOUTH {color});
    cp.add( buttonPanel1,BorderLayout.{color:#339966}NORTH {color});{color:#999999}///NewInventory_Test/logo.gif{color}
    java.net.URL u = {color:#0000ff}this{color}.getClass().getClassLoader().getResource({color:#ff9900}"\\NewInventory_Test\\logo.gif"{color});
    ImageIcon icon = {color:#0000ff}new {color}ImageIcon(u);
    {color:#339966}imageLabel{color} = new JLabel( {color:#ff9900}"Inventory View"{color}, icon, JLabel.{color:#339966}CENTER {color});
    cp.add({color:#339966} imageLabel{color},BorderLayout.{color:#339966}WEST{color} );
    {color:#0000ff}this{color}.setContentPane( cp );
    {color:#0000ff}this{color}.setContentPane( cp );
    {color:#0000ff}this{color}.setTitle( "Inventory Program IT 215" );
    {color:#0000ff}this{color}.setDefaultCloseOperation( JFrame.{color:#339966}EXIT_ON_CLOSE{color} );
    {color:#0000ff} this{color}.{color:#339966}textArea{color}.setText({color:#339966}inv{color}.getStart());
    {color:#0000ff} this{color}.setSize(200, 200);
    {color:#0000ff}this{color}.pack();
    {color:#0000ff}this{color}.setVisible( {color:#0000ff}true {color});
    @Override
    {color:#0000ff}public void{color} actionPerformed( ActionEvent e )
    // TODO Auto-generated method stub
    {color:#0000ff} if {color}( e.getActionCommand().equals({color:#ff9900} "Start"{color} ) )
    textArea.setText( {color:#339966}inv{color}.getStart() );
    {color:#0000ff}if {color}( e.getActionCommand().equals( {color:#ff9900}"Next" {color}) )
    textArea.setText({color:#339966}inv{color}.getNext());
    {color:#0000ff}if{color} ( e.getActionCommand().equals( {color:#ff9900}"Previous" {color}) )
    textArea.setText( {color:#339966}inv{color}.getPrevious() );
    {color:#0000ff} if{color} ( e.getActionCommand().equals( {color:#ff9900}"Last"{color} ) )
    textArea.setText({color:#339966}inv{color}.getLast());
    {color:#0000ff}public static {color}LagersAddInfo getInv()
    {color:#0000ff}return{color:#339966} {color}{color}{color:#339966}inv{color};
    {color:#0000ff}public static void{color} setInv( LagersAddInfo inv )
    LagersGUI.{color:#339966}inv {color}= inv;
    {color:#808080} /**
    * @param args
    */{color}
    {color:#0000ff}public static void {color}main( String[] args )
    LagersGUI {color:#ff0000}_inventory_ {color}= {color:#0000ff}new {color}LagersGUI( {color:#ff9900}"Inventory"{color} );{color:#ff0000}//** here's the part I'm having trouble with...inventory is an * unused variable. What other way could I get {color:#000000}main{color} */ method to work?{color}
    }

    This forum can format your code for you and make it easier to read. Simply click the CODE button and two tags will appear. Then paste your code in between the tags. Important, copy code form your source not first post.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need help getting my MacBook to work a with a D-Link print server

    I'm trying to set up my MacBook Pro running OS X Ver 10.4.11 to print to a HP PSC 2210 All in One printer attached to a D-Link DP-301U print server. I'm actualy a Windows user and set this up and it works fine on the Windows side. My brother in law here is the Mac user and I can't seem to get this going.
    I did install Gimp Print Ver 4.2 and the printer is listed as a support device at their website. But, the printer model doesn't appear in the list when I try and add the IP printer. I did try a LaserJet 4l driver and DeskJet 860c - they don't work. In the print queue, the status says "Network host '<IP address of D-Link> is busy; will retry in 30 seconds."
    Any ideas? D-Link support was horrible, claiming that they don't support Macs - despite what it says on the box.
    Any insights on next steps would be appreciated.
    TIA

    Thanks, Greg. GutenPrint lists it as a supported printer but as I said, I don't see it. I'll try the other site.
    There is some stuff on Macs at teh D-Link site, but its not verry useful. But, re: the queue, name it appears to me that the PS-<servername>-P1 convention comes from a print server with a parallel interface and this is the LPT port name. This is a USB printer and that's why we get the PSC2210 name which I think is the Windows name I gave the Printer. At any rate, the D-Link doc claims that you should leave the queue name blank for a single port server. I beleive that the issue is that this is not a postscript printer which hopefully I can get at the alternate site.
    I am curious why this is different on a Mac than in Windows. If the printer works if direct connected, why does the Mac OS need the special drivers to extend the connection through a network? I'm curious as I mooonlight setting up home networks and I don't want to be a "windows only" solution. Oh, and would this work on the Mac if I had selected an Apple print server or wireless router with printer port built in?
    Thanks again.

  • I need help getting my nano to work with my mac!

    I just got a mac for christmas, and I would like to get all of my music on to my mac. when i try and sync, it will not work. I want all of my songs to go into I tunes, so that this can become my new i-tunes computer. I have a nano. Can anyone help me with thiss???

    If you are moving from an existing Mac to a new Mac the easiest thing to do is connect the two Macs via a Firewire cable and run the Migration assistant. If you are moving files from a Windows platform or you don't want to use the Migration assistant review this article.
    http://docs.info.apple.com/article.html?artnum=300173

Maybe you are looking for

  • If/Else/Then statement in Bex

    Hi all, I want to create some conditional logic in Bex formula. The logic I need is: IF (KeyFigA exists) THEN (use KeyFigA) ELSE IF (KeyFigB exists) THEN (use KeyFigB) ELSE (use KeyFigC) I am a bit confused on the operators I need to use...Can anyone

  • Unable to find 0equipment field in 0pm_measurement, pls help

    Hi all,          unable to find 0equipment field in 0pm_measurement (Measurement Results), the problem actually here is, may be i can add the field thru LO' extraction the field 0equipment to 0pm_measurement but it is not LO's extraction we can go fo

  • Error while creating the campaign in CRM Web UI 7.0

    Hi, We are working on SAP CRM 7.0 Ehp1. On web Client UI -> Marketing, when I am trying to create a campaign by clicking on the create campaign , the system is giving the dump – Business Server Page (BSP) error: what happened? Calling the BSP page wa

  • How do i get my contacts back on my iphone???

    my contacts have disappeared off my iphone i've turned it on and off again, i've taken out the sim and i've plugged it into itunes but my contacts still have not come back

  • How to avoid displaying empty rows in a table?

    The situation is as follows: I have got a set of questions under a particular category say marketing category. The user will be displayed with a table consisting of a set of questions from a particular category with four radio buttons for each questi