Need Color from specific coord in canvas! plz help

not much more to say.. im a bloody newbie and cant seem to find the proper method to get the color of a single point in a canvas. thx very much for trying to help me..

If you have a new class extending Canvas, overide the paint method:
public void paint(Graphics g)
    g.setColor(Color.red);
    g.fillRect(30,30,1,1);         //  a red dot
}

Similar Messages

  • How can I send SMS from Mobile To PC? Plz Help me...

    I created one Midlet that has the user interface to get the details from the user.
    I want to send those details to server as SMS.
    What can I do with WMA.How can I send SMS from Mobile to PC.
    Plz help me to send SMS from Mobile to PC.

    Hi Senthilnathan,
    I too try for the same, if anyone has the idea please reply
    Regards
    Karthi

  • How to open color selection diaglog in 10g forms   Plz help

    Hi Everybody
    I'm new to oracle 10g forms
    I want to open color selection dialog in 10g forms
    I've configured demos...nd they r working well....
    Now i want to use code in my forms.......But I tried to see it from the source.. But I couldn't understand...
    Plz help....If anybody knows...
    Thanx in advance

    I've added
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar,colorPicker.jar
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
    archive=frmall.jar,colorPicker.jar
    java.io.IOException: Caching not supported for http://192.168.0.106:8890/forms/java/frmall_jinit.jar
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
         at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         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)
    WARNING: Unable to cache http://192.168.0.106:8890/forms/java/frmall_jinit.jar
    java.io.IOException: Caching not supported for http://192.168.0.106:8890/forms/java/colorPicker.jar
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
         at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         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 java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.ewt.util.FocusUtils.<clinit>(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.<clinit>(Unknown Source)
         at oracle.ewt.laf.oracle.OracleLookAndFeel._initCommonFixedDefaults(Unknown Source)
         at oracle.ewt.laf.oracle.OracleLookAndFeel._getCommonDefaults(Unknown Source)
         at oracle.ewt.laf.oracle.OracleLookAndFeel._getIndexedDefaults(Unknown Source)
         at oracle.ewt.laf.oracle.OracleLookAndFeel.getDefaults(Unknown Source)
         at oracle.ewt.lwAWT.BufferedApplet.getUIDefaults(Unknown Source)
         at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source)
         at oracle.ewt.swing.JBufferedApplet.<init>(Unknown Source)
         at oracle.forms.engine.Main.<init>(Unknown Source)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(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)
    WARNING: Unable to cache http://192.168.0.106:8890/forms/java/colorPicker.jar
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    *** VBean Setting debugMode to ALL
    *** VBean Setting beanName to oracle.forms.demos.beans.ColorPicker
    *** VBean Failed to instantiate class: oracle.forms.demos.beans.ColorPicker java.lang.ClassNotFoundException: oracle.forms.demos.beans.ColorPicker

  • How do i pass parameters from j2me to jsp?plz help

    hi everyone...
    i m doing my final year project
    can anyone plz tell me how to pass parameters like user name,password,etc.. from a j2me midlet to a jsp page running in tomcat server?
    i tried passing parameters in http connection through url as:
    String url="http://localhost:8080/example/test.jsp?name=abc";
    i need this info urgently as i am not able to proceed with my project... plz help
    any suggestions or references would be appreciated...
    thank u...
    regards,
    Rinzi

    JHD
    hi.
    you have written in URL i sperfectly right but if this is also not complete one.
    i.e url = "http://localhost:8080/dir/xxx.jsp?userName=jasmit&password=vala"
    now when u establishing connection i.e
    HttpConnection con = (HttpConnection) Connector.open(url,3);
    this will work as an declaration but if u want to send that parameter for that you have to get response from the server and that time only original connection is going to establish i.e
    when u r writting
    int responseCode = con.getResponseCode();
    if(reponseCode == 200)
    then ur parameter were passed to jsp page.
    in jsp page u have to get parameter using request class
    String userName = request.getParameter("userName").toString();
    String password = request.getParameter("password").toString();
    i hope this might solve ur problem.
    Regards,
    Jasmit vala
    [email protected]

  • How to proceed to upgrade from SP9 to SP16? plz help.

    Hi All,
       I am new to MI.
       We have installed WAS6.40(ABAP+J2EE) SR1 installation and on SP9 now.
       We want to move to SP16.
       Can any1 guide us on the following points:
         1) Do we have to do any configuration (of MI) part now and then move to SP16?
         or
         2) Can we apply SP16 patch first on WAS and then do the MI configuration.
    We have gone through some documents on SDN .. but, we are not very sure of how to go about from this point.
    Would be grateful.. if some1 can share us any screenshots of procedure to go about.
    Plz help.
    Thanks.
    Nilesh.

    hi Nileshwar,
    Welcome to MI.
    >>Do we have to do any configuration (of MI) part now and then move to SP16?
    >>2) Can we apply SP16 patch first on WAS and then do the MI configuration.
    If u use the SP16 Config guide, you won't find certain things (missing steps) in SP9 Level. So, if you Upgrade first and then configure, you will be able to do it successfully.
    if you had already done some configuration in SP09, they won't get deleted/corrupted if you upgrade. they will stay. you may cotinue it from that point after upgradation.
    The Config guide that you get from the Service Market Place, is clear enough for any NewBie's to work on.
    regarding the upgradation of WAS, as far as i know there are no documentation available for upgradation.
    The upgradation goes like this :-
    *. Stop the server
    1. Kernal Patch - after this start the server.
    2. SPAM Patch - Transaction code SPAM in client 000 user DDIC.
    3. ABAP Patch - Transaction code SAPM in client 000 user DDIC.
    4. J2EE Patch - A Installable like SAPinst.exe file
    You can jump from sp09 to sp14 for J2EE stack right away.
    But for ABAP patches, you should go step by step. ie. you have to add patches 09,10,11,12,13,14 - all of it can be found from Service.sap.com/swdc. you may do it at one go - by putting them in a queue in SAPM and let the system do it one by one. The same procedure for SPAM Patches (level 19) - yours will be in level 17.
    Kernel patch is just copy pasting the files into its directory. it will get over in no time.
    Regards
    Ak.
    PS: Pl. Post only one question for the problem. i guess you have done more. so please close the other question.

  • All my songs are gone from the ipod!! PLZ HELP!!!!!!!!

    Ok.
    So i was putting some new songs on my iPod 20 GB, the one before the colour screen came. the operation hung itself up, for the first time. everything worked well with the ipod when i hooked it off. then i put it on again, and nothing worked. and now there are NO songs on the ipod, BUT i do not believe they are deleted, because both the ipod AND itunes says only 90 MB free space. but when i go on it on my harddrive, and try to check the music files on the ipod, all the folders are in strange chinese-like language, and i can't open anything!
    PLZ, any advice? i CAN'T LOOSE MY MUSIC!! PLZ HELP!!!
    Windows XP    

    I am really desperate, can't somebody please help?

  • How to getColor at specific Coord in Canvas?? thx

    I am programming a little worm game and am very newby.. please help me with this:
    i want to know if the color at a special coordinate is possible to receive. i could not find a proper method in java language. you can only get the general background or foreground color of the whole canvas for example. i only need the color of one point of the canvas. how can i do that??
    please help..
    mfg, new programmer in need

    Look up the BufferedImage class, once you�ve got it set up you can getRGB(x,y) and setRGB(x,y, int), the color returned by get is a packed aRGB int.
    Image loadpic = getImage(getDocumentBase(), "test.jpg");
    BufferedImage bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); //there are 13 TYPEs look them up.
    Graphics  offG = bi.createGraphics();
    //then in paint 
    paint(Graphics g)
    g.drawImage(bi,0,0,this);
    //or to draw on the BufferedImage
    offG.drawImage(loadpic,0,0,this);

  • I need to upgrade my ram very urgent plz help !!!

    I have MacBook Pro 13 inch early 2011, i need to upgrade my ram, right now i am using 4gb ram, i searched on apple support it says max 8 gb ram and base 4gb , but if i install 8 + 8 = 16 gb ram will it work perfectly ?

    Yes it will work and is compatible with your make and model computer early 2011,13", 2.7 ghz,  i7 MacBook Pro I believe what Niel meant by this satement ~Yes, unless there's a problem with the specific modules you get; the computer supports 16GB.~  Was if the new modules eg 2x8 are in themselves a problem or defective. Hope this helps you somewhat

  • Please Help!  Need thumbnails from Album SE imagewell cache to help recover from HD crash

    Hello,
    I have 8 years of photos organized in Album SE. The external drive that I keep the photos on crashed in the middle of a backup operation. I lost around 1/2 of my photos. I was able to recover thousands of JPEGS from the drive with recovery software but they are simply generically named 00001.jpg, 00002,jpg, etc. through 11321.jpg and are devoid of any metadata. I have found image comparison software that can recognize duplicate images between hard drive directories (even with resizing or resolution differences). My only hope to recover my album is to somehow retrieve the thumbnails from the cache, save them by their original filenames, and then use the duplicate image finder along with some scripting to match, identify, and then rename the recovered files. I can then relink them to the album and be fully restored.
    I have gotten as far as finding the tn.4.cache file, and can get to the metadata through MS Access; but of course I have no way of getting the thumbnails out of the cache without help.
    These photos are from my toddler's first few years and I also lost many recent pictures of my 3-week old son. If anybody from Adobe or any users could provide any assistance I would greatly appreciate it.
    Thanks in advance for any assistance,
    Bill Starrs

    Jim, thanks for the information. The images that I have recovered are at 1200x1600, there are just way too many of them to sort through and they have lost their original names and metadata in recovery. My objective is to identify and rename them using a comparison tool so they are organized again; if not I have to visually sort through 11 thousand images to find the one I want.
    I have been using the image comparison software to try to eliminate duplicate images from my recovery. It has proven successful at matching up 1200x1600 originals with 56x75 thumbnail files of the same images.
    Yes, if I screen capture, crop, and save each missing image I can rebuild my collection either as 300x400 images or link them back through comparison to 1200x1600, but there are thousands of these. I can't capture, crop, save, and rename thousands of files. The frustrating thing is that work is already done for me in the image cache. Are there no Adobe people browsing these groups that could cut me some slack?
    Thanks,
    Bill

  • Dblink from Oracle to Mysql error PLZ HELP!!!

    Hi All,
    I am getting the following error when i am creating a databaselink to connect from oracle 10g to mysql 5.1.
    SQL> select * from ahmed_table@ahmedmysql3;
    select * from ahmed_table@ahmedmysql3
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from AHMEDMYSQL3My ODBC database source name is ahmedmysql
    created file initahmedmysql.ora in hs/admin contents of which are
    HS_FDS_CONNECT_INFO = ahmedmysql
    HS_FDS_TRACE_LEVEL = offListener.ora contents
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = orcl)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
    hmedmysql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = rc-6799)(PORT = 1521))
    (SID_NAME = ahmedmysql)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (PROGRAM = hsodbc)
      )Tnsnames.ora
    ahmedmysql = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = RC-6799)(PORT = 1521)) (CONNECT_DATA = (SID = ahmedmysql)) (HS = OK))I have searched on this site no one seems to have had found a solution!
    Is this a bug or am i missing something in the configuration,
    appreciate your help,
    regards,

    28545, 0000, "error diagnosed by Net8 when connecting to an agent"
    // *Cause:   An attempt to call an external procedure or to issue SQL
    //           to a non-Oracle system on a Heterogeneous Services database link
    //           failed at connection initialization.  The error diagnosed
    //           by Net8 NCR software is reported separately.
    // *Action:  Refer to the Net8 NCRO error message.  If this isn't clear,
    //           check connection administrative setup in tnsnames.ora
    //           and listener.ora for the service associated with the
    //           Heterogeneous Services database link being used, or with
    //           'extproc_connection_data' for an external procedure call.

  • System has recover from a serious error! Plz help

    For some reason now whenever I boot my computer up I get a message saying it has recovered from a serious error, it used to spontaneously reboot itself but that has stopped now. any ideas on how to fix?

    Hi,
    See if you can boot SAFE MODE, F8 key..............
    Del

  • HT3603 camera roll is empty from my pic after restore from backup!!! plz help

    Hi, I have restored my iPhone to factory defaults and after that i choose the option to restore via iCloud since i already Made backup for all my applications and pictures ...but unfortunately
    - All my applications, SMSs, contacts, etc. were restored successfully
    BUT My camera roll (pictures & videos) was not restored at all since when im looking to the camera roll nothing inside it
    i wait too much this problem since 2 days until now nothing important
    It remains empty. It only downloaded the last 15 pictures from my Photostream.
    I'm sure my restored iCloud backup should still contain these pictures as it states that the backup size is 3.7 GB.
    My camera roll was about 2,2 GB so that makes sense since now when i go to the details of the icloud backup
    it still appears this information but where is my pictrures i have done restore and backup 3 times but nothing appear
    in the camera roll!!! so please help me in the problem specially i still not make any changing in the icloud backup

    I just restored my new ipod from a previous one that had everything on it. Camera Roll, apps, music, stuff from I Am T-Pain. This is my 7rh iPod. Every other time I've restored them from the previous ones, camera roll and everything else has been fine. But now, I have no pictures.on my camera roll, no data in any of my apps, just the music is the same. Im so incredibly ****** off. i don't think there is a way to fix this :'''''(

  • From tiger to leopard.. plz help me.. new imac tomorrow

    so for 3 years i always used my ibook with tiger.. tomorrow my new imac will be delivered... i need any help u can give or links to previous topics regarding how to transfer everything such as settings.. emails... music.. calendar..everything..especially now that i there will be two operating systems (different) involved. thanks

    Migration Assis. *****.
    I've seen alot of issues when people use it. Back up all you'r info (http://docs.info.apple.com/article.html?artnum=301239) you can also try (http://docs.info.apple.com/article.html?artnum=58583) Firewire, But that doesn't save any preferences, Try the Migration Assis. But a backup is always best just in case.

  • I want to purchase from itunes canada, can someone plz help me

    I want to purchase down with websters new album time to win vol 2 but its only available in the canada iTunes store. i dont have an address there or credit card from canada so that is out of the question. Are there any other options????

    No.
    You can buy ONLY from the itunes store of your country of residence ( proven by the valid billing address on your credit card) AND ONLY while physically locate inside the borders of that coutnry.
    Sorry.
    Look on Amazon or some other online music seller for the album.

  • Need suggestions to start java card prog. plz help!!

    hi ppl....
    I am new to java card programming, but not to java programming. As a starter, i need to know ..... how to write a basic java card app?? Further, i also want to get the knowledge of testing/running this app on any simulator (if available). Can someone tell me that if i need to run my card application on real "smart card" (NOT on simulator), then what i need to have ... i mean any card processor or interface with PC. Any help will be much appreciated.
    Raheel.

    Download the sun kit and read the manuals

Maybe you are looking for