Re: Embedding Applet which takes dynamic input, into JSP | Need help

Hi All,
We are into a project in Oracle Portal Server where in we want to embed a result of a standalone application(Which is applet) in JSP.
This standalone application generates applet based on the input it gets from the current application's database.
If it was static we could have used jsp:plugin but, it fails in our case!
We are clueless as to how to embed an applet which will pick up the data dynamically.
Can anyone of you help me in this regard?
Thanks & Regards
Arthi

You can call an applet's public methods from JavaScript.
(And even the other way around, using JSObject).

Similar Messages

  • Re: Embedding Applet in JSP which gets dynamic input| Pls help

    Hi All,
    We are into a project in Oracle Portal Server where in we want to embed a result of a standalone application(Which is applet) in JSP.
    This standalone application generates applet based on the input it gets from the current application's database.
    If it was static we could have used jsp:plugin but, it fails in our case!
    We are clueless as to how to embed an applet which will pick up the data dynamically.
    Can anyone of you help me in this regard?
    Thanks & Regards
    Arthi

    Well instead of generating entire applet ,you can have a generic applet which takes parameters as ( <PARAM name="name" value="value"> ) inputs and process those inputs to generate output.
    In this case the output of the stand alone program would be a object. And in JSP page you need to access this object, then you can get the values which need to be passed to Applet.
    Else
    1.Identify the real path of the applet class file
    ServletContext context = session.getServletContext();
    String realContextPath = context.getRealPath(request.getContextPath());2.Copy the file to a standard location in your web application
    Regards,
    -John-

  • What is the url for calling a webservice which takes boolean input

    Hi
    Can anyone help me out to know how to call a webservice which takes boolean as input? Here my webservice is developed in Java.
    Regards

    I'm not sure what your context is, but you can test out your new Web Service by using soapui (www.soapui.org). Assuming your using a literal format, the encoding information will not be required in the XML elements. Therefore your message could be:
    <element>true</element>

  • My iPod front camera is blurry and I can't take a pictures? I need help

    I really need help? Cause this is the first time it ever happen n it barley started yesterday. Please help

    This is going to sound dumb, but did you clean the lens? Next try a reset, press and hold the power and the home buttons together for at least 15 seconds, when the Apple logo appears release both buttons. If that did not work try this, go into Settings>General>Reset>Reset All Settings. If still no joy may be a hardware issue contact Apple Genuis Bar and set up an appointment to have your iPod checked out. Good luck.

  • Adobe turned all of my files into pdf, need help.

    I downloaded adobe 9.5 this morning and it turned all of my files and shortcuts into pdf files. I can't open anything without taking a 5 min mission through my computer. Need help please.

    You may find this helpful:
    http://helpx.adobe.com/acrobat/kb/application-file-icons-change-acroba t.html

  • How to create a variant which take dynamic weekend dates only

    Hello All-
    I would like to create a variant which will take the ship date as saturday and sunday dynamically from current date to next two
    months.
    I was looking at this link but dont see any option which can serve my purpose.
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/98039be58611d194cc00a0c94260a5/content.htm
    Thanks,
    FJ

    hi
    this is to inform you that; please check shipping point calendar or plant claendar that SATRDAY AND SUNDAY AS ACTIVE
    this can be achieved in SHD0 -
    To assign a date calculation variable to an existing variant by selecting attributes goto change mode and select D -
        here your requriment is to tae SATURDAY AND SUNDAY ALS into consideration for shipment or creating a delivery right.
    giyou will have to create 4 + 4 = 8 varints in total to ful fill your requriment.
    the procedure is as follows; today is WEDNESDAY
    please choose current day +/- days = +3 days to mae it to reach upto friday and saturday also and sunday you want to ship high light those days
    proceed with your requriment.
    hope this clears your issue.
    balajia

  • Using JavaScript & Dynamic Lists - ?? need help

    Hello all! Sorry to post this under an unrelated topic (JSP & JSTL), but there wasn't a JavaScript forum.
    Anyway, before I ask my questions...read the following:
    You'll find the code for my example at the end of this post. Also, I've posted my code as html pages in here...but my original code was in the form of servlets.
    Here's what I wanted to accomplish:
    1) html page has a form with two select lists
    2) select one option from the first select
    3) javascript code takes care of populating the 2nd list with options stored in an array, based on the first selection made in the 1st list.
    4) each <option>'s value is set to the page hello.html
    Piece of cake! That all works, but here's the real issue:
    Let's say you click on an option from the 1st <select> list, which populates the 2nd <select> list with some options. You then click on the 2nd box, select an option, and it jumps to hello.html.
    Now you press the back button - here are some things I observed:
    First, let me note, that for my example, I'm using car makes for the 1st list, and car models for the 2nd.
    * notice that only the 1st select list is still showing the selection you made, but the 2nd one shows nothing. Plus, when you click on the 2nd list, all that is shown is, in my example, "Then a Model". Not the original options that populated this list, when you had selected a car make from the first.
    *also, if you select "Then a Model" in the 2nd, it will error out, because there isn't a link set for that option. I would actually prefer that the page doesn't jump anywhere if "Then a Model" was to be selected. But I can probably fix that later.
    * If you try to select the car make you had previously selected again in the 1st menu, it still shows the same thing in the 2nd. Not the car models that it showed you when you had first run the example.
    *) You can get the model options for, just for example, "Acura" back into the 2nd, but you would have to select Audi or BMW and then select Acura again.
    *) if you select the "Select a Make" option in the 1st, it doesn't display "Then a Model" in the second as I would like. But I can probably fix that later.
    Now, here are my questions:
    1) Does anybody know how I can keep the selections "selected" in the page, when a user comes back to it when they press the "back" button?
    2) Do I have to store the options selected somewhere, so the page "remembers" what was selected?
    3) Would it help if I used session tracking?
    I was told that the problems I've described are because I've implemented a dynamic listbox.
    The value is supposed to be lost if I move to the next page and then click back. Would any of you agree?
    Any ideas/suggestions at all would be very much appreciated!
    ************************ HERE'S THE CODE **********************************
    This is dynamiclists.html I've commented it probably more than necessary for all you skilled JavaScript programmers, but I thought it would help to have an explanation for each piece of code.
    <html>
    <head>
    <script language=javascript>
    //here I create the multi-dimensional array to hold my
    //values for each make and model to be put into the
    //lists
    var cars = new Array();
    cars['Acura'] = new Array('Legend');
    cars['BMW'] = new Array('740i');
    cars['Audi'] = new Array('A4');
    //method used for my onChange event in the first select list (Make)
    //method accepts the value of the selected index
    function createModel(makeName) {
    //variables used for short-cutting to form elements
    //references the form
    var myform = document.selections;
    //Make selection list
    var Make = myform.Make;
    //Model selection list
    var Model = myform.Model;
    //holds the item selected in the first list -- ex. Acura or Audi
    var makeName = myform.Make.options[myform.Make.selectedIndex].value;
    //to be set to a new Option
    var theOption;
    //if Select a Make is selected, clear the Model select list, and just put
    // Then a Model in it
    if(Make.selectedIndex == 0) {
    Model.length = 0;
    Model.length = 1;
    Model.options[0].text = "Then a Model";
    Model.options[0].value="Then a Model";
    // if you select Acura from Make
    if(makeName == "Acura") {
    // fill first position in Model select list with the Then a Model, so the
    // user knows to select a Model after a Make
    Model.options[0].text = "Then a Model";
    Model.options[0].value = "Then a Model";
    // loop through the array elements that match makeName (which for example
    // could be Acura
    for(var i=0; i<cars[makeName].length; i++) {
    // create a new Option for each Model available
    theOption = new Option(cars[makeName], i);
    // put the Model into the Model select list starting at position 1, not 0 because
    // position 0 is taken up by Then a Model that was set above.
    // Thus why I put (i+1)
    Model.options[(i+1)] = theOption;
    // set each Model options link to hello.html, just for now.
    Model.options[(i+1)].value="hello.html";
    }//end for
    }//end if
    // repeat for BMW and Audi
    if(makeName == "BMW") {
    Model.options[0].text = "Then a Model";
    Model.options[0].value = "Then a Model";
    for(var i=0; i<cars[makeName].length; i++) {
    theOption = new Option(cars[makeName][i], i);
    Model.options[(i+1)] = theOption;
    Model.options[(i+1)].value="hello.html";
    }//end for
    }//end if
    if(makeName == "Audi") {
    Model.options[0].text = "Then a Model";
    Model.options[0].value = "Then a Model";
    for(var i=0; i<cars[makeName].length; i++) {
    theOption = new Option(cars[makeName][i], i);
    Model.options[(i+1)] = theOption;
    Model.options[(i+1)].value="hello.html";
    }//end for
    }//end if
    }//end createModel
    // this is for the onChange event in the Model selection list.
    // this takes care of the jump when you click on a Model.
    // you will be taken to hello.html, which has been set in each option above
    function MM_jumpMenu(targ,selObj,restore){
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"';")
    if (restore) selObj.selectedIndex=0;
    </script>
    </head>
    <body>
    <form name="selections">
    <select name="Make" onChange="createModel(this.options[this.selectedIndex].value);">
    <option value="Select Make" selected>Select Make
    <option value="Acura">Acura
    <option value="BMW">BMW
    <option value="Audi">Audi
    </select>
    <select name="Model" onChange="MM_jumpMenu('parent',this,0)">
    <option value="Then a Model" selected>Then a Model
    </select>
    </form>
    </body>
    </html>
    ***************************** END OF DYNAMICLISTS.HTML ***********************************
    Here's my simple hello.html
    <html>
    <body>
    Hello to all!
    </body>
    </html>

    I have a html:
    <html>
    <head>
    <script>
    var store = new Array();
    store[0] = new Array(
         'labas11',
         'labas12',
         'labas13');
    store[1] = new Array(
         'labas21',
         'labas22',
         'labas23');
    // Funkcija skirta dedant naujienu
    // irasa formuoti sarasa kuriems vartotojams bus siunciama zinute
    function populate()
         var box = document.forms[0].first;
         var number = box.options[box.selectedIndex].value;
         if (!number) return;
         var list = store[box.selectedIndex];
         if (list.length==null) return;
         var box2 = document.forms[0].second;
         box2.options.length = 0;
         for(i=0;i<list.length;i++)
              box2.options[i] = new Option(list,list[i]);
    function addGroup()
    var box = document.forms[0].first;
         var number = box.selectedIndex;
         if (number>-1)
    document.forms[0].third.options[document.forms[0].third.options.length]=new Option('[G] '+box.value,document.forms[0].third);
    function addUser()
    var box = document.forms[0].second;
         var number = box.selectedIndex;
         if (number>-1)
    document.forms[0].third.options[document.forms[0].third.options.length]=new Option('[V] '+box.value,document.forms[0].third);
    function removeOne()
    var box = document.forms[0].third;
         var number = box.selectedIndex;
         if (number>-1)
    box.remove(box.selectedIndex);
    function removeAll()
    // alert(document.forms[0].third.options[0].text);
    var box = document.forms[0].third;
         box.options.length=0;
    function selectToList()
    //this code selects all the elements in the select field
    for(var i=0;i<document.forms[0].third.length;i++)
    document.forms[0].third.options[i].selected=true;
    alert(document.forms[0].third.options[i].text);
    </script>
    </head>
    <body>
    <form action='servlet/List' method=Post>
    <select size=4 name="first" style="width:200px" onchange="populate()">
         <option value="0">html</option>
         <option value="1">css</option>
    </select>
    <select size=4 name="second" style="width:200px">
    </select>
    <select size=4 name="third" style="width:200px" multiple>
    </select>
    <input type=submit value=spausk onClick="selectToList();" />
    </form>
    <table>
    <tr><td><button onclick="addGroup()"> &#302;d&#279;ti grup&#281; </button></td></tr>
    <tr><td><button onclick="addUser()"> &#302;d&#279;ti vartotoj&#261;</button></td></tr>
    <tr><td><button onclick="removeOne()"> �alinti </button></td></tr>
    <tr><td><button onclick="removeAll()"> I�valyti </button></td></tr>
    </table>          
    </body>
    </html>
    and servlet:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class List extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException
         { doAction(request,response);}
         public void doGet(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException
         { doAction(request,response);}
         public void doAction(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException
              response.setContentType("text/html;charset=windows-1257");
              PrintWriter out = response.getWriter();
         String[] strArray=request.getParameterValues("third");
              out.print("Value: "+strArray[0]);
    So what is wrong because servlet prints bad value [object]
    Thanks

  • Using DAQ-assist to input a waveform; need help building a counter to count voltage "spikes"

    Hey all! I'm pretty new to labView and even newer to this forum, but its nice to meet you all...I hope that perhaps someone can help me with my problem.
    Allow me to begin by detailing the specifications of the problem.  I am an undergraduate student, and have a job doing research in a MEMS (micro/nanotech) lab.  The graduate student I am making this program for is working on biomedical applications;  eventually, the program will be connected to a microdevice that has a tiny channel in it, cut through a wee little capacitor, which blood will run through.  As red blood cells pass this capacitor, the voltage will spike; meaning that for each voltage spike, we can (and are trying to) count the number of red blood cells.
    However, I am still in the early developement of the program, so this above specific info is not that important.  Basically, I am using a function generator to input a waveform to the DAQ assistant of, say 500 mV.  I am trying to write a program that increments a counter every time I turn the voltage above say 550 mV (peak-to-peak), counting the number of simulated "spikes."  I have tried quite a lot to write a working program, and although I have not gotten it to work yet, I will post a screenshot of my most recent attempt HERE:
    I thank you in advance for any helpful tips, advice, or straight up assistance you may be able to give me.  Please ask me any clarifying questions about the program I wrote or the application, or anything.  Happy Friday! 

    Hey guys, it's been a while!  A lot of stuff has been happening in my life and I have had virtually no time to work on my LabView project.  
    I did create a LabView program based off IanW's reccomendation.  I am unsure of what exactly is going wrong, but when I run it, only a simple "snapshot" of a waveform from the DAQ shows up in the graph.  Even when I put the DAQ assist in a seperate while loop, the same thing happens.  I am including a screenshot of the project in case I am messing something entirely different up.  If you happen to read this, I really appreciate your help and thank you Ian! 
    I am also having a random issue with the filter signal VI.  So that background signals in the actual experiment do not read as "spikes" I have been instructed to include a high-pass filter in the VI.  However, everytime I use the high pass filter VI, it botches my signal and turns it into a bunch of noise!  I, nor my graduate mentor (who isn't too well-versed in LabView) have any idea why this is - we've tried using different types of filters to no avail.  
    Lastly, I would like to talk to Peter about a few questions I had abour LabView design.  In case you're still around, I will write another post later today with more detail.  In the meantime, I will try to find some of the example VIs about shift registers   All who read this have a great day!
    Attachments:
    count spikes pic.png ‏29 KB

  • SOLID STATE DRIVE, WHICH ONE TO GET?  I NEED HELP me please!

    So I am looking to get a SOLID STATE DRIVE but not sure which one to buy, I had gotten the intel x25 80gb but its too small and not too much different from my stock hdd. I mean sure its fast but not worth $200 thats for sure. I need a top quality, flying fast and worth the money SSD, SO WHICH ONE DO YOU RECOMMEND? I was going for the c300 from crucial the 128gb to be exact, but I have heard so many bad things.
    My current setup is 13" i5 2011 version, with 8gb ram upgrade.
    Im running OS X 10.6.7 and Windows 7 boot camp as well.
    I need to know before I go to store tonight.
    thanks!

    Many users on this forum are very happy with OWC's line of SSD. They're located in the greater Chicago area but I don't think they have a retail store you can drop into. Great vendor in that they offer good prices, they specialize in Macs, great service and they're stuff is high quality. You can visit the SSD section at:
    http://eshop.macsales.com/shop/internalstorage/Mercury_Extreme_SSDSandforce
    BTW please don't type in all caps, it comes across as yelling. We can hear you fine.
    Roger

  • Update statement takes lot of time . Need help in optimization.

    Hi,
    I need to update values from table ARPU_2009_2010 to table TST_MICRO_SEG_PREP.
    Table ARPU_2009_2010 contains around 400000 records. Table TST_MICRO_SEG_PREP contains 374000 customers. I need to update values for each customer in the table TST_MICRO_SEG_PREP.
    Please find below query used:
    UPDATE TST_MICRO_SEG_PREP a
    SET
    ARPU_2009_2010_REV=(select case when cnt>0 then round((sum(total_rev)/cnt),2) else 0 end arpu from ARPU_2009_2010 b
    where a.subno=b.subno
    group by subno,cnt)
    This query takes more than 4 hours to execute. All tables used are having proper index.
    Kindly suggest an alternative for this.
    Thanks,
    Kabilan
    Edited by: 946887 on Jul 16, 2012 11:44 PM

    >
    UPDATE table1 X
    SET
    ARPU=(select case when cnt>0 then round((sum(total_rev)/cnt),2) else 0 end arpu from table2 Y
    where X.subno=Y.subno
    group by subno,cnt)
    >
    Are you intending to update all the 400K rows in table1 ? If not, then you have to rewrite the query.
    >
    This query takes more than 4 hours to execute.
    >
    Did you try to monitor what it's doing when the query is getting executed.
    >
    I tried to execute using stored procedures and sp also takes much time.
    >
    What makes you to think that stored procedure will execute more efficiently compared to a single DML statement ?
    >
    Kindly suggest an alternative for this.
    >
    As mentioned in the earlier post try to follow the guidelines. Only then it will be feasible to suggest some alternatives by looking at some metrics.
    Thanks
    Raj

  • Deployment into oc4j - need help

    I'm some problem in my deployment of my *.ear files into my oc4j server from my PC. Maybe someone can help me...
    What I did I first created a *.war file under my ViewController then my *. jar file under my model and then my *.ear file that reference my *.jar and *.war in a folder that is at the base of my project. After this I deploy my *.ear file into my oc4j server then I connect into my enterprise manager to make sure it was deployed correctly and I get no error. But when I try to view that page on my browser it look like I get a type of error that is related to my xml files.
    Is this the right process?
    Thanks

    user516031,
    Excuse me, but I don't know what you mean by "my ViewController" and "my model". Personally, I use the command-line utilities to create and deploy J2EE applications to my OC4J stand-alone 10.1.3.0.0 instance. For example:
    jar cf *.war ...
    jar cf *.ear ...
    java -jar admin.jar ormi://localhost oc4jadmin xxx -deploy ...It may help someone to answer your question if you post the entire error message you are getting.
    You can also check the Web access log (of OC4J) and your application's log.
    Good Luck,
    Avi.

  • Dynamic application...Need Help fast

    Hi experts...
    I really hope somebody can help me in here...I am going to make an appliaktion in J2me...It shall be possible to change a picture by calling a function. I have 10 pictures, which I will change on the screen by calling a function with diffrent parameters. The picture shall be shown in a form with other elements. I dont want to make a new form everytime. I also have som icons which i also wants to change by calling a function.
    I have read something about layers. I thought maybe i could change between the pictures on that way...
    I would like to see an code example on how to change a picture in a form...

    If you really want this fixed fast, you should consider:
    The more information you provide about the crash, the better. You didn't indicate what program you were using and you also seemed a bit frustrated when you posted and didn't quite finish the sentence concerning the 501 folder, which I can only assume, appeared in your trash, as I think I've seen this before after a program quits unexpectedly.
    According to the crash report, it appears that the program that is crashing is Adium.
    You can try reinstalling the program to see if something has been corrupted in the program package.
    You can check to see if there is a more up to date version of the program. You might be dealing with a bug that has been fixed in a more recent version.
    You can hunt for the preferences by doing a file search in the library/preferences folder to see if you can find all the preferences associated with adium and delete them. You will most likey loose all your preference setting and any login information, since it's an IM program, but at least you can get it up and running again.
    Don't delete the preference files until you have verified that the other two solutions do not work. There's no need to go through re-intering the preferences you want if you can fix the problem by reinstalling the program, which doesn't mess with your preferences.

  • SOLID STATE DRIVE, WHICH ONE TO GET?  I NEED HELP

    So I currently have the early 2011 Macbook Pro 13" i5 8GB Ram. I want to get a SSD but I cannot make up my mind, I did buy the 80GB X-25 Intel but its too small and too slow for me. I was about to get the crucial c300 128gb today but I heard about all the problems. So guys and gals, help me out. I want to get something under $300 and under 180gb, so what do you think is best easy to install without issues.
    I will need to buy today so help!

    Many users on this forum are very happy with OWC's line of SSD. They're located in the greater Chicago area but I don't think they have a retail store you can drop into. Great vendor in that they offer good prices, they specialize in Macs, great service and they're stuff is high quality. You can visit the SSD section at:
    http://eshop.macsales.com/shop/internalstorage/Mercury_Extreme_SSDSandforce
    BTW please don't type in all caps, it comes across as yelling. We can hear you fine.
    Roger

  • I loaded Yosemite OS on my Mac and then had to go back to Mavericks OS. Now my creative suite is asking for serial numbers which I no longer have. Need help! I was on a site license but have since retired and don't have access to the serial numbers...What

    Need info on how to get serial numbers for my creative suite.

    Atwittsend I would recommend uninstalling and reinstalling the installed Adobe Creative software titles.  It is likely reinstalling Mac OS 10.9 will lead to damage of the licensing files.  Please make sure to use the uninstallers located in the Applications/Utilities/Adobe Installers folder.

  • Need help with Applet: Images

    DUKESTARS HERE, YOU KNOW YOU WANNA
    Hi,
    I'm designing an applet for some extra credit and I need help.
    This game that i have designed is called "Digit Place Game", but there is no need for me to explain the rules.
    The problem is with images.
    When I start the game using 'appletviewer', it goes to the main menu:
    http://img243.imageshack.us/img243/946/menuhy0.png
    Which is all good.
    But I decided that when you hover your cursor over one of the options such as: Two-Digits or Three-Digits, that the words that are hovered on turn green.
    http://img131.imageshack.us/img131/6231/select1ch3.png
    So i use the mouseMoved(MouseEvent e) from awt.event;
    The problem is that when i move the mouse around the applet has thick line blotches of gray/silver demonstrated below (note: these are not exact because my print screen doesn't take a picture of the blotches)
    http://img395.imageshack.us/img395/4974/annoyingmt1.png
    It also lags a little bit.
    I have 4 images in my image folder that's in the folder of the source code
    The first one has all text blue. The second one has the first option, Two-Digits green but rest blue. The third one has the second option, Three-Digits green but rest blue, etc.
    this is my code
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.awt.event.*;
    import java.awt.*;
    public class DigitPlaceGame extends Applet implements MouseListener, MouseMotionListener {
         public boolean load = false;
         public boolean showStartUp = false;
         public boolean[] hoverButton = new boolean[3];
         Image load1;
         Image showStartUp1;
         Image showStartUp2;
         Image showStartUp3;
         Image showStartUp4;
         public void init() {
              load = true;
              this.resize(501, 501);
                   try {
                        load1 = getImage(getCodeBase(), "images/load1.gif");
                        repaint();
                   } catch (Exception e) {}
              load();
         public void start() {
         public void stop() {
         public void destroy() {
         public void paint(Graphics g) {
              if(load == true) {
                   g.drawImage(load1, 0, 0, null, this);
              } else if(showStartUp == true) {
                   if(hoverButton[0] == true) {
                        g.drawImage(showStartUp2, 0, 0, null, this);
                   } else if(hoverButton[1] == true) {
                        g.drawImage(showStartUp3, 0, 0, null, this);
                   } else if(hoverButton[2] == true) {
                        g.drawImage(showStartUp4, 0, 0, null, this);
                   } else {
                        g.drawImage(showStartUp1, 0, 0, null, this);
                        for(int i = 0; i < 3; i++) {
                             hoverButton[i] = false;
         public void load() {
              addMouseListener(this);
              addMouseMotionListener(this);
              showStartUp1 = getImage(getCodeBase(), "images/showStartUp1.gif");
              showStartUp2 = getImage(getCodeBase(), "images/showStartUp2.gif");
              showStartUp3 = getImage(getCodeBase(), "images/showStartUp3.gif");
              showStartUp4 = getImage(getCodeBase(), "images/showStartUp4.gif");
              showStartUp();
         public void showStartUp() {
              load = false;
              showStartUp = true;
         public void mouseClicked(MouseEvent e) {
              System.out.println("test");
         public void mouseMoved(MouseEvent e) {
              int x = e.getX();
              int y = e.getY();
              if(x >= 175 && x <= 330 && y >= 200 && y <= 235) {
                   hoverButton[0] = true;
                   repaint();
              } else if(x >= 175 && x <= 330 && y >= 250 && y <= 280) {
                   hoverButton[1] = true;
                   repaint();
              } else if(x >= 175 && x <= 330 && y >= 305 && y <= 335) {
                   hoverButton[2] = true;
                   repaint();
              } else {
                        for(int i = 0; i < 3; i++) {
                             hoverButton[i] = false;
                        repaint();
         public void mouseEntered(MouseEvent e) {
         public void mouseExited(MouseEvent e) {
         public void mousePressed(MouseEvent e) {
         public void mouseReleased(MouseEvent e) {
         public void mouseDragged(MouseEvent e) {
    }plox help me ploz, i need the extra credit for an A
    can you help me demolish the lag and stop the screen from flickering? thanks!!!!!
    BTW THIS IS EXTRA CREDIT NOT HOMework
    DUKESTARS HERE, YOU KNOW YOU WANNA
    Edited by: snoy on Nov 7, 2008 10:51 PM
    Edited by: snoy on Nov 7, 2008 10:53 PM

    Oh yes, I knew there could be some problem.......
    Now try this:
    boolean a,b,c;
    if((a=(x >= 175 && x <= 330 && y >= 200 && y <= 235)) && !hoverButton[0]) {
                   hoverButton[0] = true;
                   repaint();
              } else if((b=(x >= 175 && x <= 330 && y >= 250 && y <= 280)) && !hoverButton[1]) {
                   hoverButton[1] = true;
                   repaint();
              } else if((c=(x >= 175 && x <= 330 && y >= 305 && y <= 335)) && !hoverButton[2]) {
                   hoverButton[2] = true;
                   repaint();
              } else if ((!a && !b && !c)&&(hoverButton[0] || hoverButton[1] || hoverButton[2]){
                        for(int i = 0; i < 3; i++) {
                             hoverButton[i] = false;
                        repaint();
              }hope it works........
    Edited by: T.B.M on Nov 8, 2008 10:41 PM

Maybe you are looking for

  • Where can i get a replacement screen for my iphone 5

    I dropped my phone and the lcd now has lines running down the whole of the screen and was wondering where I can get a genuine replacement screen?

  • IPad 3 freezing

    Hi, my iPad 3 is dispalying an "iCloud Backup" message. When I click Ok it's non responsive, I can't power the iPad off, when I plug it in the backup won't start and it is connected to the wifi. The machine is basically frozen and I can't access anyt

  • Is Fiori really the new UI for SAP?

    Hiya, I was informed that Fiori will never be a comprehensive user interface replacement for SAP. The reason being most SAP ERP processes cannot be performed with Fiori. Those SAP processes are simply too complex in their design and do not lend thems

  • An Urgent Query about ODI

    Hi, I have done a scenario which executes sum.sh file.This scenario is successfully executed by OraclediAgent. Now a web service(Let from bpel/soap ui) invokes this agent using agent's wsdl url (like this:- http://localhost:8886/oraclediagent/OdiInvo

  • My Macbook was getting hot, and I think I know why.

    I have a week 22 build and it usually runs anywhere from 40-53C, but yesterday it was running in the 60-75c. I started to get a little worried that maybe my computer was taking a turn for the worst. I noticed that even when I was running just a few p