Java Applet TextBoxes and Labels

I have created textboxes and labels in a java applet, however they appear at the top of the page overlapping the title.
Any ideas how I can move them??? Do I need to create a Container.....if so, how do I create it in Applet rather than the usual Java Application sytle??
Thanks for your time.

http://forum.java.sun.com/thread.jsp?forum=31&thread=460726&tstart=0&trange=15

Similar Messages

  • Safari for Mac, webpage with Java applet, drag and drop area not working.

    At my company, we have a web page that our users access to submit media files, (QuickTime, Audio, images...), for transcoding for delivery.  The web page consists of a java applet, with an area that our users drag and drop media file into.
    After updating to Safari 5.1.2, the applet will not work anymore. Instead, the browser will "open" the quicktime and play it, instead of allowing the Java Applet to do it's job.
    CAN I TURN THIS FUNCTIONALITY OFF??
    I read that Safari 5.1.2, (when it was initially released), broke something with the THEN current version of Java, and everyone was awaiting the latest update (build 1.6.0_29) to fix it. Unfortunately, this update did not fix my issue with the functionality of dragging and dropping media files into the web page.
    It seems to me, as if, there is an over-arching functionality setting (or something) that needs to be either turned off, or in some other way DE-prioritized.
    Anyone have any ideas?
    Safari 5.1.2
    MacOS 10.6.8
    MacBook Pro

    Thanks for quick reply and help. I am able to drag multiple files but this is giving problem in case of filename with spaces like "abc def.png". Can you please put some thoughts on this.
    DataFlavor uriListFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
                   Reader in = (Reader)t.getTransferData(DataFlavor.plainTextFlavor);
                   BufferedReader br = new BufferedReader(in);
                   String uriStr;
                   while ((uriStr = br.readLine()) != null)
                       URL url = new URL(uriStr);
                       String category = GalleryUtils.contentsPanel.getCurrentCategoryPath();
                       GalleryUtils.generateILPFromFile(new File(url.getFile()), category);
                   }Thanks
    Kanni

  • "Java Applet Window" and keeping PopupMenu inside Applet

    I just added a JPopupMenu to my Applet, and I want to remove the "Java Applet Window" at the bottom. I know this can be done by making sure the PopupMenu stays inside the Applet area. How can I make it stay inside the Applet area?

    Hi Duncan,
    thank you for your answer (on Forms Forum, too :-)
    In the init function I do
    public void init(IHandler handler)
    mHandler = handler;
    super.init(handler);
    // getting the Forms Main class
    formsMain = (Main) mHandler.getApplet();
    // Accessor to the external frame
    formsTopFrame = formsMain.getFrame();
    The constructor does
    optionPane = new JOptionPane( "some text", JOptionPane.INFORMATION_MESSAGE);
    and before the showMessageDialog I put
    formsTopFrame.add(optionPane);
    but with no effect.
    Do you have some more hints?
    Regards,
    Werner

  • Java APPLET minimize and maximize button

    im using java 1.3 and ie4.0 or ie5.5, i would like to know if there is any way i could remove or at least disable the minimize and maximize button for the APPPLET window for the toolbar..i tried using setResizable(false) but it doesnt work..well if i tried it in the appletviewer , it actually worlks for the maximize button(it disables the maximize button), but if i try it in the browser, it doesnt work at all... please help
    thank you

    At least on Linux, JDialog's don't have a resize functionality. So you could do the thing you want to do with a JDialog (or maybe plain java.awt.Dialog), and everything will be fine!
    -- Stephan

  • How relevant is Java Applet technology in 2006 for wide web deployment?

    How relevant is Java Applet technology in 2006 for wide web deployment?
    I'm developing a website which requires deployment Internationally to as many users as possible. Many people advise to stay away from Java applets, others say only use Java 1.1 (AWT limitation), some say use Flash, others say stay away from applets and plugins altogether.
    Of course it depends on the content. I have interactive 3D content currently powered by Java 1.1 applet BUT I have been using Swing to introduce custom GUI functionality but which I know may limit compatibility. I'm torn by this whole debate and what impact it will have on the relevancy of my website.
    How many users out there have browsers that will cope with my content?
    Then there's the issue of all the various different browsers nowadays. I'm testing for IE and Netscape on Windows platform, but what about other browsers and OSes on other platforms? I notice that some websites have a page with tables to show users what browser is and is not compatible with their web content. How far must a web developer go to test all these things exhaustively?
    Then there's the issue of a 16MB download for the latest Java plugin if a user's system is not up to date. Can all modern browsers handle Java even with the latest Java download?
    Or should I just tell the user to get a compatible browser? Another 10-20MB download, depending.
    Or how about Flash? That reportedly has a vast International deployment base, but do I need to pay for a Flash editor / IDE / compiler? So far I've been using freeware (HTML, Java, NetBeans, PHP, MySQL, PNG images) to achieve excellent results within my ludicrously limited budget. The Flash Player is only a 930KB download, and that is quite user friendly even if I must tell a user to get the latest version � only 2 minutes download on a 56K modem or about 15 seconds on DSL followed by a 2 second really easy install.
    Look here to see where Java ranks against Flash and others :
    http://www.macromedia.com/software/player_census/flashplayer/
    I know Java. I use it for apps and now applets. I get it to communicate with my server's PHP and MySQL. It works well on my machine, but will my applets work for millions of users world wide with few technical problems? Looking through Java forums I see developers struggling with Java Applets in Safari on OSX but not on Windows. Then another has problems with Applets in IE on Windows but not on Netscape. Then one browser struggles with key events . . . it's like a mine field out there and I'm struggling for clear direction.
    Microsoft's support for Java has been poor. If I depend on Java Applets now and for the next year, then will they still be supported 3 or 5 years from now? Or will I have to write off this investment in Java development effort and then switch to something else? Or switch to something else now?
    Does Sun Microsystems somewhere reveal how ubiquitous their JVM deployment is?
    Perhaps I'm totally misinformed, but Java Applets seem to be dying out. I'd really love to hear from other active web developers out there doing stuff for wide deployment to mass markets.

    Since my zwebsite is already using Java 1.1 for 3D visualization I've decided to standardize on Java 1.1 to gain maximum browser compatibility. To add another technology like Flash at this point may just complicate matters, especially for me.
    I'm now converting my Swing GUI to AWT. It wastes a lot of time, but the effort should be worth it in terms of the deployment success rate - in theory at least :-)
    Just imagine if Java 1 had Swing . . . dream on!
    In the deployment stats noted in my first post on this thread they state that Java has 86% world wide desktop deployment. Problem is that I bet that figure only relates to Java1. I wonder what pathetic percentage is true for Java2?
    Regarding the use of Java for content rich dynamic content for world world wide web browser deployment . . . I'm rather disillusioned at this point. It seems for this application Java is stuck indefinitely at Java1 and the cool things they developed after that cannot be used effectively. Please note that I am ONLY referring to wide browser deployment. For stand-alone apps and targeted web deployment (where you can reasonably expect your user to upgrade his/her system for a good reason) Java is still very cool.
    As for Java WebStart: I can see the uses for it, but it just does not fit into the browser application where the general public enter your web pages and see cool content inside the essential context of your webpage. This last point is vital for any serious web site. If the object of the site is to deploy a useful app to the user (like a forex trading front-end with GUI) then use Java WebStart by all means.
    After this website, I'll invest in Flash. I'm sure Flash is not without its share of issues, but it has 97% deployment of nearly the latest versions and user download/upgrade is under 1MB. On top of that it does not seem to suffer from corporate relationship woes like those between Sun and Microsoft.
    After all, Flash is labelled as a 'player' and not a Virtual Machine. Mass users out there want to play rather than know about complex and bulky IT stuff.

  • In a java applet , how to call other jar file?

    i have i programm, this programm is a java application,
    also, i already put these program into jar file, and then if i double this jar file , its work!
    but , now i need to run this program in web browser,
    i thing that i will write a simple applet with a button
    after i click this jButton, how the java applet call and run the java file?
    please help me.. it is because this is my project! thx..........
    [email protected]

    I have a solution write one batch file in that you specify class path and java home.
    then give
    java -jar Test.jar
    then call this batch file from program using Java runtime
    Runtime.exec method...
    Hope will this work

  • Java Applet Will Not Load.

    Hello! We have built some Java Applet games and we are having problems trying to load the games, specifically in the Safari browser. PC
    Problem 1 : Java loading issue on some PC’s Mac OSX
    Problem 2 : No games will play even with Java updated. Games playable at www.gameon247.com Does anyone have any helpful information they can share on this topic?
    All help is appreciated! 

    similar to
    http://support.mozilla.com/es/questions/788422#answer-142414?

  • Load: class oracle.forms.engine.Main not found Stuck at loading Java Applet

    Hi there
    I have recently installed App Server 10.1.2.0 on a new machine.
    Copied all my forms to an appropriate directory. Set up formsweb.cfg to allow them to run and have attempted to run them.
    Unfortunately I get stuck at the Loading Java Applet screen, and in the status bar at the bottom it says :
    load: class oracle.forms.engine.Main not found
    I have taken a look at the Java Console, and the 2 things that jump out at me are that it appears to be looking for a forms90 directory, which seems odd since I am using App Server 10.1.2.0.2 and Forms Builder 10.1.2.0.2 meaning it should be looking in a forms directory not forms90 directory shouldnt it ?
    And also, it mentions class with no proxy, so on looking around the forums it has been suggested that put the proxy details into jinitiator, which I have done, but this has made no difference either.
    Can anyone suggest anything else please ?
    Java Console log follows.
    Thanks a lot
    Scott
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\hilliers
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Unregistered modality listener
    Removed trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.engine.Main,0,0,914x613,layout=java.awt.BorderLayout]
    Sending events to applet. STOP
    Sending events to applet. DESTROY
    Sending events to applet. DISPOSE
    Sending events to applet. QUIT
    Finding information...
    Releasing classloader: sun.plugin.ClassLoaderInfo@d9850, refcount=0
    Caching classloader: sun.plugin.ClassLoaderInfo@d9850
    Current classloader cache size: 1
    Done...
    Registered modality listener
    Referencing classloader: sun.plugin.ClassLoaderInfo@d9850, refcount=1
    Added trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.engine.Main,0,0,914x613,invalid,layout=java.awt.BorderLayout]
    Sending events to applet. LOAD
    Sending events to applet. INIT
    Sending events to applet. START
    Determine if the applet requests to install any HTML page
    HTML Installation finished.
    Opening http://appserver008/forms90/java/oracle/forms/engine/Main.class
    Connecting http://appserver008/forms90/java/oracle/forms/engine/Main.class with no proxy
    Opening http://appserver008/forms90/java/oracle/forms/engine/Main.class
    Connecting http://appserver008/forms90/java/oracle/forms/engine/Main.class with no proxy
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.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)

    You're a star, thanks.
    In my haste I had cut too much out of my old formsweb.cfg file and not realised I'd done it.
    Thanks Francois.

  • Share a DLL between 2 java applets

    I got this problem:
    i'm working with 2 java applets (A and B) that try to use the same DLL.
    It seems that when applet A loads this DLL, it locks access to the same DLL to applet B.
    Is there a way to make this DLL accessible to both applets?
    Can i store this DLL somewhere on client so applets A and B can access it concurrently?
    Java says something like this: "File is used by another process"
    thanks to all

    Maybe the cleanest solution for you is to write a third utility class U which implements your native methods and load the library there. Then you can call the native methods of U from both A and B applets (as long as you add the U class to the classpath for both applets).

  • JPDK java applet development

    Hi,
    I've been trying to develop a java applet application and deploy it on a portal page. I managed to use a HTML portlet to link the java applet through an URL. So far so good. But then I wonder is that a good way for this implementation? Can anyone share their experience.
    Furthermore, I'm trying to use the portal SSO for login. Is there any Java api to retrieve the SSO user id, so that I can past it to my Java applet application. I'm very interested for any sample code.
    Thanks!

    Hi Kevin,
    It is possible to develop a JPDK portlet and use it for deploying an applet on the client end. I have developed a simple example of a telnet portlet which is basically an applet which has been embedded into the portlet. The sample is available on Knowledge Exchange. You will need to sign-up for it, if you havent yet.
    http://portalstudio.oracle.com/pls/ops/community.comm_folder_download.get_item?p_folderid=538287&p_itemid=569449&p_caid=233
    Secondly, if your applet intends on accessing system resources on the client end, then you will have to sign your applet jar file.
    You can use the JPDK APIs to retrieve the userID (provided you only need the user id).
    PortletRenderRequest pReq = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    pReq.getUser().getName();
    Hope that helps,
    thanks,
    Harsha

  • Using a java applet as form

    hi there,
    I'm new to programming applets (but not new to java and gui programming).
    Here's my question:
    I would like to use a java applet with a textfield as form input. is this possible?
    I see some several advantages over using standard html textfields and java script. (f.e.: I can set the cursor to any position after changing the text in the field).
    I'm thinking on a solution by my own. Would it be possible to use a java script method to access a property from the applet? so I could use a combination of java applet, html and java script. On the onClick() event I read the actual value from the applet and do some normal post request. Any better suggestions?
    thx
    soa

    I want to write the textfield in java. So I use the applet as form.
    What would be your suggestion?
    Write an applet with an textfield and and getValue() method? So I could create a normal html button and use javascript to write a method wich acces this getmethod. So I could register this method to the onClick() event.

  • Certain Java applets are crashing after increasing Memory Size to 1GB

    The default java memory stellent uses in 384MB in the intradoc.cfg file. I recently updated both max and min to 1GB. Now I'm not saying memory increase is causing the crashes but I'm guessing. Say if I go to configeration manager applet and try to add a value or property, after clicking add the java applet freezes and I have to close the browser and restart again and same thing happens. Now the machine has in total 2GB of memory. I know that if java uses shared memory space (as the memory is increased to 1GB) with other application unpredictable random may happen. What do you think?

    Hi,
    i need do modify the intradoc.cfg to increase java memory. Can you send me all modifications that you apply in your intadroc file?
    thanks!

  • JAVA Applets from Adobe Flash/MS Silverlight?

    SAP has recently announced that it will no longer support
    invocation of JAVA applets directly from its "WebDynproABAP" or
    "WebDynproJava" applications. (Until recently, SAP supported an
    "iframe" UI element that could be used to run JAVA applets from
    within WebDynpro applications - soon this will be only doable in
    frames within SAP's portal via "client-side eventing".)
    However, SAP will be supporting invocation of Adobe Flash and
    MS Silverlight from within its WebDynpro Applications.
    So here's my question.
    From an SAP WebDynpro application, I want to pass parameters
    to the JAVA applet "JMol" and have it run in a separate frame.
    Since I will no longer be able to call this applet directly from
    the SAP WebDynpro application, I'm wondering if I could pass
    parameters to Adobe Flash or MS Silverlight and have Flash or
    Silverlight invoke the applet for me with the correct parameters.
    (I would still only want two frames - the one that the SAP app is
    running in and the one that the JAVA applet winds up running in.)
    Relevant links for this question are:
    https://forums.sdn.sap.com/thread.jspa?threadID=939821&tstart=0
    and its follow-up here:
    https://forums.sdn.sap.com/thread.jspa?threadID=972132&tstart=0
    Thanks for any time anyone can afford to spend considering
    this question, and for any answer(s) anyone can provide.
    David Halitsky

    This link:
    http://www.adobe.com/devnet/flash/articles/external_interface.html
    says that javascript can be called from Flash
    So is it as simple as invoking the Java applet from the
    javascript ?

  • Package java.applet doesnot exist

    hi,
    i try to use import.java.applet.*; at netbeans mobility but errors. it said that package java.applet does not exist
    i thought that maybe my pc did not have the library.. so to test, i use normal netbeans, mean not for mobile
    but then it recognise java.applet.. and i can run it. so i do not know what is the problem.. any ideas? thanx anyway

    thanx for the reply, i try to develop a mobile phone game
    so i thought that java.applet can be use, since that u say it has limited library
    does it means that i can;t use java.applet and what other option do i have?
    cant' i copy the library and put in in the mobility path?

  • COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET: US$20 AWARD FOR SOLUTION!

    COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET PROBLEM (Easy Filter Java Applet) -
    US$20 TO ANYONE WHO CAN RESOLVE THE PROBLEM
    To forum visitors:
    I am prepared to pay a standard shareware fee of US$20 to a user who can resolve this technical problem.
    If your advice resolves the problem, I'll forward the payment to your postal address (include your
    address with your reply, and also your email address)
    I am attempting to enable a HTML button (using Javascript's onClick command) to directly input a number into one of the parameter text boxes in the Easy Filter Java applet (ie, enter a new color value number in the text field of the standard Colors Multiplicator Filter interface).
    The applet is Freeware and can be downloaded at: http://www.javazoom.net/applets/easyfilter10/EasyFilter10.html
    (It is a very effective bitmap display and editing utility)
    To achieve this, I am trying to access the part of the applet that defines and sets the textbox. The text box is defined in the .class file by accessing the parameter details in the genericfilter.txt file (accompanies the .class files). I need to access 'private String appletInitialize()' and then one of the 'textFieldParameters' which sets the textbox.
    I understand the basic syntax for referencing the applet:
    document.appletname.setString("An example"). However, accessing the text fields in this applet is more complex!!
    Please can you recommend the correct Javascript syntax to achieve communication with the applet.
    Thank you for your kind assistance.
    JM Graham
    [email protected]
    The Java source code for the applet: EasyFilter.class
    # Easy Filter - E.B/JavaZOOM 1999 #
    # Contact: [email protected] #
    # http://javazoom.hypermart.net #
    /* Originally compiled from EasyFilter.java */
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.applet.Applet;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.awt.image.MemoryImageSource;
    import java.awt.image.PixelGrabber;
    import java.util.Vector;
    public synchronized class EasyFilter extends Applet implements KeyListener
    private String paramFileName;
    private Color bgColor;
    private Color fgColor;
    private Color parColor;
    private Color sepColor;
    private Color titleColor;
    private Color helpColor;
    private int WinWidth;
    private int WinHeight;
    private String title;
    private String logoFileName;
    private String originalImageFileName;
    private String filteredCaption;
    private String originalCaption;
    private Vector paramsName;
    private Vector paramsValue;
    private Vector paramsComment;
    private Panel panelParameters[];
    private Label labelParameters[];
    private TextField textFieldParameters[];
    private Label labelComments[];
    private int nbParameters;
    private ScrollPane scrollPaneParams;
    private Panel panelParams;
    private Image theLogo;
    private Image theOriginalImage;
    private Image theFilteredImage;
    private int theOriginalPixelArray[];
    private int logoWidth;
    private int logoHeight;
    private int imageWidth;
    private int imageHeight;
    private drawCanvas canvasTitle;
    private Panel panelTitle;
    private Label labelTitle;
    private Panel panelImages;
    private Panel panelOriginalImage;
    private drawCanvas canvasOriginalImage;
    private Label labelOriginalImage;
    private Panel panelFilteredImage;
    private drawCanvas canvasFilteredImage;
    private Label labelFilteredImage;
    private Panel panelHelp;
    private Label labelHelp;
    private int Yspc;
    private FilterImplementation theFilter;
    public void init()
    String string = null;
    string = appletInitialize();
    setBackground(bgColor);
    if (string != null)
    removeAll();
    setBackground(Color.white);
    setForeground(Color.black);
    Label label = new Label(new StringBuffer("Error: ").append(string).toString(), 1);
    Panel panel = new Panel();
    panel.add(label);
    add(panel);
    setLayout(new FlowLayout(1, 5, Yspc));
    public void keyPressed(KeyEvent keyEvent)
    panelHelp.removeAll();
    boolean flag = true;
    if (KeyEvent.getKeyText(keyEvent.getKeyCode()).equals("Enter"))
    for (int i = 0; i < nbParameters; )
    try
    paramsValue.setElementAt(new Double(textFieldParameters.getText()), i);
    i++;
    catch (NumberFormatException e)
    labelHelp.setText(labelParameters[i].getText() + ": Not a Number");
    flag = false;
    break;
    if (flag == 1)
    labelHelp.setText(" .... Running, please wait .... ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    theFilter.updateParameters(paramsValue);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    canvasFilteredImage.repaint();
    panelHelp.removeAll();
    labelHelp.setText("- Done -");
    else
    labelHelp.setText("- Press Enter to run the Filter -");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    public void keyReleased(KeyEvent keyEvent)
    public void keyTyped(KeyEvent keyEvent)
    private String appletInitialize()
    WinWidth = size().width;
    WinHeight = size().height;
    if (getParameter("bgcolor") == null)
    bgColor = new Color(0, 0, 40);
    else
    bgColor = new Color(Integer.parseInt(getParameter("bgcolor"), 16));
    if (getParameter("fgcolor") == null)
    fgColor = new Color(255, 255, 255);
    else
    fgColor = new Color(Integer.parseInt(getParameter("fgcolor"), 16));
    if (getParameter("sepcolor") == null)
    sepColor = new Color(158, 128, 128);
    else
    sepColor = new Color(Integer.parseInt(getParameter("sepcolor"), 16));
    if (getParameter("parcolor") == null)
    parColor = new Color(24, 24, 24);
    else
    parColor = new Color(Integer.parseInt(getParameter("parcolor"), 16));
    if (getParameter("titlecolor") == null)
    titleColor = new Color(255, 255, 0);
    else
    titleColor = new Color(Integer.parseInt(getParameter("titlecolor"), 16));
    if (getParameter("helpcolor") == null)
    helpColor = new Color(0, 255, 255);
    else
    helpColor = new Color(Integer.parseInt(getParameter("helpcolor"), 16));
    paramsName = new Vector();
    paramsValue = new Vector();
    paramsComment = new Vector();
    paramFileName = getParameter("paramfile");
    String string = readParams(paramFileName);
    if (string != null)
    return string;
    MediaTracker mediaTracker = new MediaTracker(this);
    theOriginalImage = getImage(getDocumentBase(), originalImageFileName);
    mediaTracker.addImage(theOriginalImage, 0);
    if (logoFileName != null)
    theLogo = getImage(getDocumentBase(), logoFileName);
    mediaTracker.addImage(theLogo, 1);
    try
    mediaTracker.waitForAll();
    catch (InterruptedException e1)
    return "Error while loading image";
    if (mediaTracker.isErrorAny())
    return "Error while loading image";
    if (logoFileName != null)
    logoWidth = theLogo.getWidth(this);
    logoHeight = theLogo.getHeight(this);
    imageWidth = theOriginalImage.getWidth(this);
    imageHeight = theOriginalImage.getHeight(this);
    theOriginalPixelArray = new int[imageWidth * imageHeight];
    PixelGrabber pixelGrabber = new PixelGrabber(theOriginalImage, 0, 0, imageWidth, imageHeight, theOriginalPixelArray, 0, imageWidth);
    try
    pixelGrabber.grabPixels();
    panelTitle = new Panel();
    canvasTitle = new drawCanvas();
    labelTitle = new Label();
    panelTitle.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelTitle);
    panelTitle.setBackground(bgColor);
    panelTitle.add(canvasTitle);
    canvasTitle.setImage(theLogo);
    canvasTitle.setBounds(0, 0, logoWidth, logoHeight);
    labelTitle.setText(title);
    catch (InterruptedException e2)
    return "Internal Error, Try RELOAD !";
    if (title != null)
    panelTitle.add(labelTitle);
    labelTitle.setForeground(titleColor);
    labelTitle.setFont(new Font("Dialog", 1, 14));
    panelImages = new Panel();
    panelOriginalImage = new Panel();
    canvasOriginalImage = new drawCanvas();
    labelOriginalImage = new Label();
    panelFilteredImage = new Panel();
    canvasFilteredImage = new drawCanvas();
    labelFilteredImage = new Label();
    panelImages.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelImages);
    panelImages.setBackground(bgColor);
    panelOriginalImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelOriginalImage);
    panelOriginalImage.setBackground(Color.black);
    panelOriginalImage.add("Center", canvasOriginalImage);
    canvasOriginalImage.setImage(theOriginalImage);
    canvasOriginalImage.setBounds(0, 0, imageWidth, imageHeight);
    labelOriginalImage.setText(originalCaption);
    labelOriginalImage.setAlignment(1);
    panelOriginalImage.add("South", labelOriginalImage);
    labelOriginalImage.setBackground(Color.lightGray);
    labelOriginalImage.setForeground(Color.black);
    labelOriginalImage.setFont(new Font("SansSerif", 0, 10));
    panelFilteredImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelFilteredImage);
    panelFilteredImage.setBackground(Color.black);
    panelFilteredImage.add("Center", canvasFilteredImage);
    theFilter = new FilterImplementation(paramsValue, theOriginalPixelArray, imageWidth, imageHeight);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    labelFilteredImage.setText(filteredCaption);
    labelFilteredImage.setAlignment(1);
    panelFilteredImage.add("South", labelFilteredImage);
    labelFilteredImage.setBackground(Color.lightGray);
    labelFilteredImage.setFont(new Font("SansSerif", 0, 10));
    scrollPaneParams = new ScrollPane(0);
    panelParams = new Panel();
    nbParameters = paramsName.size();
    int i = WinHeight - (33 + 7 * Yspc + logoHeight + imageHeight + 23);
    if (i < Yspc + 2 + 24)
    i = Yspc + 2 + 24;
    scrollPaneParams.setBounds(0, 0, WinWidth - 10, i);
    panelParams.setLayout(new GridLayout(nbParameters, 1, 5, Yspc / 2));
    scrollPaneParams.add(panelParams);
    panelParams.setBackground(sepColor);
    panelParameters = new Panel[nbParameters];
    labelParameters = new Label[nbParameters];
    textFieldParameters = new TextField[nbParameters];
    labelComments = new Label[nbParameters];
    for (int j = 0; j < nbParameters; j++)
    panelParameters[j] = new Panel();
    panelParameters[j].setLayout(new FlowLayout(0, 5, 1));
    panelParams.add(panelParameters[j]);
    panelParameters[j].setBackground(parColor);
    labelParameters[j] = new Label();
    labelParameters[j].setText((String)paramsName.elementAt(j));
    panelParameters[j].add(labelParameters[j]);
    labelParameters[j].setForeground(fgColor);
    labelParameters[j].setFont(new Font("Dialog", 1, 12));
    textFieldParameters[j] = new TextField(8);
    textFieldParameters[j].setText(paramsValue.elementAt(j).toString());
    panelParameters[j].add(textFieldParameters[j]);
    textFieldParameters[j].setBackground(fgColor);
    textFieldParameters[j].addKeyListener(this);
    labelComments[j] = new Label();
    labelComments[j].setText((String)paramsComment.elementAt(j));
    panelParameters[j].add(labelComments[j]);
    labelComments[j].setForeground(fgColor);
    add(scrollPaneParams);
    panelHelp = new Panel();
    labelHelp = new Label();
    panelHelp.setLayout(new FlowLayout(1, 5, 0));
    add(panelHelp);
    panelHelp.setBackground(bgColor);
    labelHelp.setText(" Change colour values and press enter ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    labelHelp.setForeground(helpColor);
    return null;
    private String readParams(String string1)
    Object object1;
    String string2;
    if (string1 == null)
    return "Filename of filter's parameters needed";
    try
    URL uRL = new URL(getDocumentBase(), string1);
    URLConnection uRLConnection = uRL.openConnection();
    uRLConnection.setDoInput(true);
    uRLConnection.setUseCaches(false);
    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(uRLConnection.getInputStream()));
    string2 = null;
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    if (bufferedReader != null)
    Object object2;
    try
    for (object2 = bufferedReader.readLine(); object2 != null && string2 == null; object2 = bufferedReader.readLine())
    string2 = extractFormat(object2);
    catch ()
    string2 = object2.getMessage();
    finally
    bufferedReader.close();
    if (string2 != null)
    return string2;
    else
    return null;
    private String extractFormat(String string1)
    if (string1.length() == 0)
    return null;
    int i = 0;
    int j = string1.indexOf(" ", i);
    if (j == -1)
    return "Bad format error (space missing)";
    String string2 = string1.substring(i, j);
    if (string2.equals("TITLE"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    title = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    originalCaption = string1.substring(i, j);
    return null;
    if (string2.equals("FILTEREDCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    filteredCaption = string1.substring(i, j);
    return null;
    if (string2.equals("LOGO"))
    i = j + 1;
    j = string1.length();
    logoFileName = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALIMAGE"))
    i = j + 1;
    j = string1.length();
    originalImageFileName = string1.substring(i, j);
    return null;
    if (!string2.equals("PARAM"))
    return null;
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    paramsName.addElement(string1.substring(i, j));
    i = j + 2;
    j = string1.indexOf(32, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    try
    paramsValue.addElement(new Double(string1.substring(i, j)));
    j = string1.indexOf(34, i);
    catch (NumberFormatException e)
    return "Bad format in a PARAM line";
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    paramsComment.addElement(string1.substring(i, j));
    return null;
    public EasyFilter()
    logoHeight = 33;
    Yspc = 5;

    Addition to my above submission
    To clarify, I'll offer the US$20 to the FIRST person who offers me a workable solution to the problem, not to everyone!!!
    JMGRAHAM

Maybe you are looking for