Histogram on IE with two buttoms

Hi, i am learning java programing and i can't make working buttons.
I have program which painting graphic, and i need open it in internet explorer. i did this, but i can't make two buttons near graphic.
One button should show graphic, and other turn off graphic.
So when one button is pressed graphic will appear, and when some one press other disappear.
code looks like this:
package hi;
import java.awt.*;
import javax.swing.*;
public class Main extends Metodai
@Override public void paint (Graphics g){............}
How to do that, please help !
Edited by: Kilohercas on May 16, 2010 3:49 AM

Welcome to the Sun forums.
Kilohercas wrote:
Hi, i am learning java programing.. My advice is don't start with applets. Or, again and louder this time.. don't start with applets. Coding GUIs in Java is not a beginner task. Applets make it a lot harder.
Many books and tutorials encourage applet development for beginners. If you are looking at instructions that are encouraging you to develop applets, I strongly suggest you ignore that information and do simpler things first.
But since I am here, I have some other advice..
package hi;
import java.awt.*;
import javax.swing.*;
public class Main extends Metodai
@Override public void paint (Graphics g){............}
}..Further advice.
- When posting code, code snippets, XML/HTML or input/output, please use the code tags. The code tags protect the indentation(1) and formating of the sample. To use the code tags, select the sample and click the CODE button.
- For better help, post an SSCCE.
- Do not mistake this forums for a help desk. If you were expecting somebody to take your code skeleton and turn it into a working applet, get used to the fact that will not happen. We might help, but we will not code the applet for you.
1) And while on the subject of indenting code, please use one of the two standard standard forms of indenting code blocks, as reading unindented code is very difficult for most people. The 2 standard forms would be:
a)
package hi;
import java.awt.*;
import javax.swing.*;
public class Main extends Metodai
     @Override
     public void paint (Graphics g)
}b)
package hi;
import java.awt.*;
import javax.swing.*;
public class Main extends Metodai {
     @Override
     public void paint (Graphics g) {
}

Similar Messages

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

  • I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    this sub forum is about running windows on macs maybe you should try
    https://discussions.apple.com/community/notebooks/macbook

  • I have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3

    i have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3.
    the problem is best explained on the following one - page thread: 
    https://discussions.apple.com/thread/3951518?start=0&tstart=0
    (Clearly i'm not alone in this problem, although i think i figured out what's going wrong a little more than he did...read on!)
    his solution, to put mainstage in jump mode, is very unsatisfactory to me, as it bounces all of a sudden to drastically different settings.
    basically, my analysis is that my controller is NOT receiving MIDI date from mainstage.  in other words, mainstage knows what my controller is doing, but my controller doens't know what mainstage is doing.
     let's say i turn the knob all the way to the right ... 127...and the virtual fader goes to the right like it's supposed to. 
    now...next...let's say i change to a different patch, where that same VIRTUAL fader is not at the max clockwise position..maybe it's only at 1pm.  now when i turn the physical knob to the RIGHT, the midi data is still at 127 on the controller!  it didn't "reset" to sync up with the new level (say 80 or so) setting on the new patch.  so i can't increase that new setting of 80 by continuing to turn the knob to the right.  i have to turn it all the way to zero,...and then continue PAST zero until the controller thinks that IT is at 0...at that point the controller and mainstage are in agreement, and things work fine....so bascially, the keyboard thinks the level is at max...but mainstage thinks the level is at 1pm.
    i am using Logic 9, and i have a macbook pro 2.9 Ghz I7 with 8 gigs of memory and OS X 10.8.4

    Hi Josh,
    Thanks for taking the time to contact us here a Novation for technical support. Lets continue to correspond via email so we can get your issue resolved.
    Thanks.
    Mike Towns

  • WinXP with two users - can we have two separate iTunes, one for each user?

    Question:  On my Dell WinXPPro SP3 desktop with two users (myself and my wife), can each user have a separate iTunes - so what each of us does with iTunes has no effect on the other?
    Details:  Yesterday, June 29 2012, I bought a new iPad 3 with WiFi only, my first Apple product.  My #1 motive for buying it is to copy movie files (avi, m4v, mp4, etc.) from my WinXP setup (PC plus hard drive) to my new iPad to watch the movies in bed on the new iPad. I understand that I shall need to install iTunes on both the iPad and the PC in order to move or copy the existing movies from the PC side to the iPad.  (I also understand that I won't be able to use iCloud because iCloud will not run on WinXP, only Vista and Win7.)  [By the way, if iTunes will NOT help me do what I want to do, please let me know.  But that is not my question.]
    I am only one of two users on the PC.  My wife is the second user on the PC.  She already installed iTunes on the PC for her own use.  She is an avid iTunes user.   Most of the time, she does not use this PC.  She has her own WinXPPro SP3 Dell laptop, which is what she uses 99% of the time.  She has also had an iPod for some time, hence her use of iTunes.  And now, for the last two weeks, she also has a new iPhone 4S and her own iPad.  So her use of iTunes will grow.  The important point is the following - whatever I do on my side, I do not want to interfere with or disrupt her use of iTunes.  Not even for a second.
    So, can I install or re-install or somehow set up iTunes on MY user on the PC so that it does not in any way use or affect her iTunes?  If the answer is "yes", please give me a step-by-step and list all details.  Is there a YouTube that shows this specifically?  
    More details:  Right now, in C:\Program Files, before I have tried to install anything myself, there are already folders for Apple Software Update, iPod and iTunes, which derive from my wife's installations of these Apple programs some time ago.  I have just now run the Apple Software Updater, which first updated itself on this PC to version 2.1.3.127 and then updated her iTunes on this PC to version 10.6.3.25.  (As a result, the following processes/services are now running, which normally don't run when I am the user: 
      C:\Program Files\Common Files\Apple\Mobile Device Support\AppleMobileDeviceService.exe
      C:\Program Files\iPod\bin\iPodService.exe
      C:\Program Files\iTunes\iTunesHelper.exe
    Also, the following processes will launch the next time I reboot this PC (which normally don't launch when I am the user):
      C:\Program Files\Common Files\Apple\Apple Application Support\APSDaemon.exe
      C:\Program Files\iTunes\iTunesHelper.exe )
    My wife says her iTunes is NOT set for Family Share.  (That sounds correct to me, for now and forever.)
    Summary:  So, how do I install iTunes for myself (for the first time) for my user on this PC so it does not - even for a second - interfere or affect my wife's use of her iTunes on all of her devices?
    Thanks !!!

    Mr. Wiclee - thanks for the link.
    When I said I had not "installed" iTunes on my iPad, I suppose I meant I have not yet signed in to iTunes, ever.  I suppose when I sign in to iTunes the first time on my new iPad, I will be required to create a new iTunes account?  Then refer to such new iTunes account when I launch iTunes for the first time on my PC as myself?  Or will I still need to use Method Three in your link? 
    The crucial thing is this - when I turn on iTunes on the PC for the first time with me as User, I do NOT want it to connect to my wife's iTunes account.  On my PC, I would want iTunes to ask me who I am, so I can then sign in with my new iTunes account that I had just created on my iPad.  How can I be sure to accomplish this goal?
    In my PC, if I look at Documents and Settings and compare the two folders for we two different users, one for me and one for my wife, I can see that my wife's has Application Data and Local Settings for her various Apple programs.  However, so do I in my User even though I have not yet installed any Apple programs on my side.  I am concerned that when I finall launch iTunes when I am user, it will open up in my wife's iTunes account, which I truly want to avoid.
    Thanks.  Please advise.

  • Report with two Command is empty if one of the two commands returns no data

    Hi all,
    I have a report with two Commands not linked together.
    If ONLY one of the two Commands returns no data, the full report is empty (although the other Command returns data).
    I'm using Crystal Report 2008 and the CRJ 12.2.205
    Have an idea?

    Hi Ted,
    how can I solve the problem, please? It is important.
    If I can help yourself, the problem is appeared in many reports since I updated the library (the old library version 11.8.4.1094 works fine with all). I'm waiting for your answer, please.
    Thank you very much.

  • One MIRO document with two different vendors for two different line items

    Can it possible to make MIRO for a PO which is having two conditions(Basic price+Freight) with two different vendors.
    MIRO document needs:
    GR/IR Clearing    Dr.
    Freight Clearing  Dr.
    Vendor RM(X)         Cr.
    Vendor Freight(Y)   Cr.
    Is it possible to post the above document at a time not individually for each condition.

    Hi,
    Yes, It is possible to post Material and delivery cost in one document.where in material supplier is different than the Frieght vendor.
    Itm PK  BusA Acct no.   Description                    Tx     Amount in   USD   
    001 89       130001     Stock-Ingredients               244 0            880.00 
    002 96       320001     GR/IR Account - Ing.            244 0          1,200.00-
    003 86       520002     Ingredients - PPV               244 0          3,297.87 
    004 50       320008     GR/IR Account - Duty            244 0            797.87-
    005 50       320009     GR/IR Account - Fre.            244 0          2,180.00-
    Thanks
    Dinabandhu

  • RSBKCHECKBUFFER job scheduled twice and both canceling suddenly with two er

    Hello,
    This job RSBKCHECKBUFFER  is scheduled to run two times in production system starting at same time 12:00 pm and it was running fine till 12.04.11 but both the jobs started failing suddenly since 12.05.11 with two different sql errors at times
    DBIF_RSQL_SQL_ERROR
    CX_SY_OPEN_SQL_DB
    1. Database error text........: "SQL1224N The database manager is not able to
      accept new requests, has terminated all requests in progress, or has
      terminated the specified request because of an error or a forced interrupt.
      SQLSTATE=55032 row=1"
    2. Database error text........: "SQL0911N The current transaction has been rolled
     back because of a deadlock or timeout. Reason code "2". SQLSTATE=40001 row=1"
    Also both the job is scheduled to run with two different parameters
    Parameters
    &0000000000001
    &0000000000000
    Can anyone let me know what could be the reason of sudden failure since 12.05.11.
    Also if I schedule the job to run only once in the system will it solve the problem ?

    Hello Shradha,
    1. Database error text........: "SQL1224N The database manager is not able to accept new requests, has terminated all requests in progress, or has   terminated the specified request because of an error or a forced interrupt.
      SQLSTATE=55032 row=1"
    - As far as I know this is serious problem in production environment. Looks like your DB was being restarted at that time. Please have your DBA team to review db2diag.log for error details.
    2. Database error text........: "SQL0911N The current transaction has been rolled  back because of a deadlock or timeout. Reason code "2". SQLSTATE=40001 row=1" .
    - Looks like second job was overlapped with first one. Please try to run the job once in a day or change of schedule of both jobs to ensure no overlap.
    Thanks,
    Siva Kumar

  • SQL Injection, replace single quote with two single quotes?

    Is replacing a single quote with two single quotes adequate
    for eliminating
    SQL injection attacks? This article (
    http://www.devguru.com/features/kb/kb100206.asp
    ) offers that advice, and it
    enabled me to allow users to search name fields in the
    database that contain
    single quotes.
    I was advised to use "Paramaterized SQL" in an earlier post,
    but I can't
    understand the concept behind that method, and whether it
    applies to
    queries, writes, or both.

    Then you can use both stored procedures and prepared
    statements.
    Both provide better protection than simply replacing
    apostrophes.
    Prepared statements are simple:
    Set myCommand = Server.CreateObject("ADODB.Command")
    ...snip...
    myCommand.CommandText = "INSERT INTO Users([Name], [Email])
    VALUES (?, ?)"
    ...snip...
    myCommand.Parameters.Append
    myCommand.CreateParameter("@Name",200,1,50,Name)
    myCommand.Parameters.Append
    myCommand.CreateParameter("@Email",200,1,50,Email)
    myCommand.Execute ,,128 'the ,,128 sets execution flags that
    tell ADO not to
    look for rows to be returned. This saves the expense of
    creating a
    recordset object you don't need.
    Stored procedures are executed in a similar manner. DW can
    help you with a
    stored procedure through the "Command (Stored Procedure)"
    server behavior.
    You can see a full example of a prepared statement by looking
    at DW's
    recordset code after you've created a recordset using version
    8.02.
    "Mike Z" <[email protected]> wrote in message
    news:eo5idq$3qr$[email protected]..
    >I should have repeated this, I am using VBScript in ASP,
    with an Access DB.
    >

  • Magic Mouse  question. I have set this in Preferences by ticking Swipe between pages with  one finger and also Swipe between full-screen apps with two fingers,  however when I try to do the latter, the 2 finger swipe will take me only to the dashboard and

    It's a Magic Mouse question. I have set this up in Preferences by ticking Swipe between pages with one finger and also Swipe between full-screen apps with two fingers,  however when I try to do the latter, the 2 finger swipe will take me from the app that I am on to the dashboard only and not to my other open apps.
    I also find that Smart zoom only works with some apps, for instance not with Word docs or email.
    How can I correct this please?

    Just figured out it also does not work with the Mail app.

  • How do we sync contacts and calendars (ONLY) between two iCloud accounts, two iPhones and one iMac with two user accounts?

    This is complex.  Until today we had one iMac with two user accounts - one for me and the other for my wife.  We sync'd our calendars and contacts between our two user accounts using my iCloud account, thereby keeping our schedules coordinated and our contacts information always the same between us.  Also, as I had an iPhone, I sync'd my phone with my iCloud account, thereby keeping the contacts and calendars in the two user accounts on the iMac AND my iPhone sync'd.  (I also sync'd other things, like Notes and Mail and Safari settings, between my iPhone and my user account on the iMac, but my wife did not want to be burdened with all my emails showing up in her email account and I wasn't interested in hers, etc., so we didn't sync anything between us other than calendars and contacts.)
    We've finally bought my wife an iPhone and set up an iCloud account for her.  And of course she now wants to sync several items from HER account on our iMac to HER iPhone, but I don't want them, just as she doesn't want all of my other stuff.  But we still want our mutual calendars and contacts to sync to HER new iPhone, just like they already do to mine.  But I can't figure out how to CHANGE her iMac user account from using MY iCloud account on the iMac to using HER new iCloud account, and then having HER iCloud account speak to MY iCloud account but share JUST our calendars and contacts.
    Originally I tried a workaround by simply having her iPhone log into my iCloud account.  That works great for the calendars and the contacts.  But...she can't sync anything else from her iMac account to her new iPhone because she's presently "forced" to use my iCloud account.  And neither of us want to sync our other things to each other's iMac accounts or iPhones.  Also as we're both using my iCloud account, in things like the Find My iPhone app, the Cloud is seeking two phones labeled with my name and none with her's.  So we definitely don't want this as the set-up and communications network between our devices.
    We want to set up our users on the iMac to sync to our SEPARATE AND DIFFERENT iCloud accounts and then have those iCloud accounts sync calendars and contacts (ONLY) between themselves, and then push that data to our separate iPhones (or the other way, from either of our iPhones to the individual accounts on our iMac and the other person's iPhone).  Does this description make sense to you?  I've diagramed it nicely using Keynote, but even thiough I can draw it, I can't figure out how to set up and configure all the devices to make it work.  If you would like me to send the Keynote slides (just two of them - the current and desired configurations - please send your email address to me at [email protected] and I'll be happy to forward it to you.
    If anyone can help me set this up I'd be most appreciative!  Thanks so much.  Merry Christmas and Happy New Year to all readers in this community!

    BobT.
    I had the same problem, and decided to look into it last night.
    First of all, the solution I would like to have is for Apple to allow for selection of iCloud accounts per application, i.e. Contacts to one, Photo Stream to another. I believe this would be the most straight forward solution for the problem we are facing. 
    Since this is not an option I came up with a workaround. I was most interested in solving this for Contacts, so this is what I tested for. Now I have all 3 devices with the same contacts.
    1) Turn off iCloud for Contacts on all devices. On the device that has the Contacts list that you would like to propagate to all others select to keep the contacts, and on the others select not to keep them.
       Note that the current backups still exist on iCloud, so in case something goes wrong you can still turn the iCloud for Contacts back on to get your current Contacts back.
    2) In iTunes, sync All Contacts with the phones, starting with the one with the Contacts content you chose to keep.
    From this point on, the 3 devices should sync contacts with each other.
    This, of course, will stop your iCloud backups of Contacts, but I don't think this is really needed. You are already storing copies of your Conacts on 3 devices, which for good parts of the day are likely not all co-located. You also potentially have Time Machine backups turned on, which would mean there is a 4th copy there as well. For the case of Contacts iCloud only complicates matter ... that is until Apple implements the solution I first wrote about.

  • I have one itunes account with two phones. when i phone one of the numbers both phones have started to ring, only when connected to wifi at home. How do i resolve this please?

    I have one itunes account with two phones assigned to it, sons and daughters, (5s). When i phone one of the numbers both phones have started to ring, only when connected to wifi at home. The problem does not occur when not connected to wifi. How do i resolve this please? texting is fine it is only when ringing one of the numbers.

    <http://support.apple.com/kb/HT6337>
    "To turn off iPhone Cellular Calls on a device, go to Settings > FaceTime and turn off iPhone Cellular Calls."

  • How do I sync one iPhone with two laptops using iTunes (not iCloud)?

    I just got a new iPhone 4S and want to sync it with two separate laptops (using the simple cable procedure, not iCloud) -- my old(er) MacBook Pro2.2 15", with Intel Core 2 Duo running System 10.5.8, and my new MacBook Pro with Intel Core i7 running Lion.
    I tried this once before and got chaos -- syncing on the second laptop gave me multiple entries in my calendar and address book. I don't want to go through this again until I know the right procedure, if there is one.

    When you get your new laptop repaired, transfer your iTunes library & other important data to your new computer. When you first sync your phone to this computer, all iTunes content will be erased from your phone. However since you've copied your iTunes library to your new computer, just sync the content back to your phone.

  • Very Strange Network Issue With Two Guests on 2012 R2 Hyper-V Failover Cluster

    Hi all.  We're having a odd issue with two guests on our 2012 R2 failover cluster.  
    In a nutshell, if we shutdown a particular server (I'll call it Server A) another totally different server (Server B) on the same node loses it's network connectivity to the domain. If we start server A back up, network connectivity returns on server B.
    At first I thought server A might be running a service that was somehow linked to server B, so I decided to disable server A's NIC.  Interestingly, that had no affect on server B's connectivity.  
    The next step I tried was pausing server A and again, no adverse affect on server B's connectivity.  
    Next step was to live migrate server A to another node.  This action did
    cause server B to lose its network connection. 
    One other clue is that if I ping server B from either of the Hyper-V hosts in the cluster, I never lose network connection to server B.
    So I would suspect this is some network issue on the cluster, but I'm kind of at a loss where to go from here.  
    Has anyone seen this behavior before or does anyone have any troubleshooting suggestions I can try?
    Thanks! 
    George Moore

    Hi Sir,
    I'v never seen this before .
    >>Next step was to live migrate server A to another node.  This action did
    cause server B to lose its network connection. 
    They are connecting to same virtual switch ?
    First please run cluster validation to check if there is any error .
    If it is ok , please try the following items for troubleshooting :
    1. shutdown  serverA   serverB
    2. then add another virtual NIC for serverB
    3. start server B  check if the issue happens to both "old" and "new" virtual NIC .
    In addition , you can live migrate both A and B to another node , then try to live migrate A to the original node .
    If the issue persists , I would suggest you to remove that virtual switch on both nodes then re-create them .
    Best Regards,
    Elton Ji
    If it is not the answer please unmark it to continue
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • One Material with two Different In-House Production Days

    Dear Experts,
    We have 1 semi-finished material (HALB) that is common to two different locations (production version) with two different in-house Production days.  How can we separate the 2 different in- house prod. days for this specific material? Could we setup in the production version? if not, could you give us an advice.
    Ex:
    JDXZ011111 with Prod. version I000 = 3 days
    JDXZ011111 with Prod. version X000 = 1 day
    We are hoping for your help..
    Thank you.
    Regards,
    Marnelli

    Dear Mamelli,
    1.You cannot maintain  the in-house production time in the production version.
    2.In-house production time in days can be maintained in MRP2 view.
    3.If Lead time scheduling is carried out at the time of MRP run then the system uses the in-house time for the calcualtion onf basic
    start and end dates.Based on the routing data the system proposes the production start and end time.
    4.Generally exception messages 64     Production finish after order finish
    63     Production start before order start are  shown after MRP run.
    5.If basic scheduling is carried out then the system proposes only the basic dates.
    Regards
    S Mangalraj

Maybe you are looking for