I need help with setting 2 decimal places

I am using netbeans to create a GUI. My math works I need help formatting the result to 2 decimal places.
Thanks for any help.
This is part of my code..
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
// Regular button
double RegularPrice = 3.09;
double num1, result;
num1 = Float.parseFloat(jTextField1.getText());
result=RegularPrice * num1;
jLabel2.setText(String.valueOf(result));
}

http://java.sun.com/j2se/1.5.0/docs/api/java/text/DecimalFormat.html

Similar Messages

  • Purchased extreme to replace modem/router DSL used telephone cord need help with set up

    Prior to purchasing Airport Extreme had a standard modem/ wireless router from ATT for DSL. I have two macbooks both dropped connections while online with older modem.
    Airport Extreme purchased to correct connection issues I need help with set up. The older modem just used telephone cord. I tried to use telephone with extreme it did not work.
    How do I get extreme to work as the modem and router ?

    How do I get extreme to work as the modem and router ?
    you can't. the extreme is only a router. you need a separate modem (or disable the wireless part of your old router and use it as a modem - if that's possible).

  • I need help with setting up my Sun Java Studio Creator

    Hello all, i need help with setting up the Studio Creator, i"m new to all that staff so is there anyone to help me just a little with all that if yes email me at [email protected] or get me on AOL Instant Messanger with the screen name: wretch17
    thanks :-)

    Hi,
    Welcome to the Creator community! Thanks for your interst in Sun Java Studio Creator. Please feel free to post any question related to creator on this forum .
    Take a look the creator website at
    http://developers.sun.com/prodtech/javatools/jscreator/
    CreatorTeam

  • I need help with setting up time machine for backup

    I would like help with setting up time machine for backup.

    You will need an external hard drive (formatted for a Mac).
    Then you plug it in and go to system preferences>time machine and select the external HD and turn it on.
    The backups are automatic.
    Barry

  • [SOLVED] Need help with setting up X

    Hello guys am new to the forum and this is my first post here. I am in need of a little help.
    Need help with X configuration. It starts like this, I installed xorg-server , xorg-utils, xorg-server-utils. When I tried installed xorg-init it says no package, anyway I ignored and moved on.
    Now I installed regular mesa stuff and installed xf86-video-ati driver for my HD4250 graphics adapter. with libgl and ati-dri (I have old arch wiki print so it mentioned to install those while newer doesn't list some stuff)
    Now the problem is that Xorg -configure doesn't work with newer X and nor the packages has generated /etc/X11/xorg.conf file.
    Anyway I created the file manually and added each and every section as mentioned in the "old" guide that I have.
    I even added a /etc/X11/xorg.conf.d/20-radeon.conf file for my graphics card with the content as
    Section "Device"
    Identifire "r"
    Driver "radeon"
    EndSection
    After manually creating all such files I installed x-term, xclock and twm. But when I tried to start X by startx or Xinit it says command not found. Add to that a simple X shows couple of errors.
    Please see the errors here Paste #399362 | LodgeIt!
    Some more questions : My old guide mentioned to install HAL while newer guide on the net mention DBUS. Though I have added DBUS to be on the safe side but why not HAL ? Is it because of Udev ?
    So please help me getting X up and running.
    Regards
    Last edited by Shashwat (2011-06-04 09:47:47)

    Ok  I sorted out the misprints in the file and installed xinit but still can't get it to work.
    1. There are few errors in xorg.conf that I cannot make it out.
    2. The X output says no screen found. ?
    http://paste.pocoo.org/show/399383/
    Now when I add EndSection at the last its says invalid parameter and when I remove it, I get an error "No EndSection, EOF missing"
    Kind of bugging
    Please do help.

  • Need Help with setting up this Filter

    Hi,
    I need help making a filter sound like the one used in this youtube song.
    I tried setting it up but I've had no success; even though I know for a fact that this filter was made in Logic Pro 9 according to the maker of this song.
    I think there might be a bit of 'Fuzz-Wah' in there too but I've never really used that effect so any tips on that would be great, too.
    Link: http://www.youtube.com/watch?v=tf017M8SZZE&feature=plcp
    Any help with this would be widely appreciated.
    Thank you :-)

    It sounds like a simple hi Q filter sweep to me but getting close to the original synth sound that it is being used on is the challenge. It might well be that it is the filter on the synth itself is what is being swept. Either way, turn up the filter resonance on a band pass filter and sweep it with the lfo or adsr to modulate the filter cutoff if its the synth filter, or automate the filter frequency  sweep if you use the channel filter.

  • Need help with Set-ADUser command

    I need a little help with the following command. Im new to PS and I have found this command but it is only one user at a time. I need to be able to update ALL users in AD.
    My goal is this. Someone before me set all Users Home numbers to 1234567899 and I need to remove that and leave it blank. The command below allows me to do that but only one user at a time by entering their SAMID.
    Is there a way to do this for everyone in AD ?
    Set-AdUser –Identity SAMID –HomePhone $NULL

    Yeah sure - 
    Get-Aduser -filter * -properties SamaccountName | Select SamAccountName | % {Set-Aduser -identity $_.SamaccountName -HomePhone $null}

  • Need HELP with setting up my email on new 4g ipod touch.

    I need help setting up my email on my 4g ipod touch. I just got it today and had a 1st gen and it worked fine. I need help setting it up again.
    Any help would be appreciated
    Thanks in advance.
    Pam

    http://www.apple.com/support/ipodtouch/assistant/sendmail/

  • Need help with setting up VPN on a Cisco EPC3925 Modem

    Hi everyone,
    I need help setting VPN on Cisco EPC3925 modem (I tried using Help and I have read the entire section in the manual but the manual is not the same as the window I get in my settings. For example in the manual they say I can choose "all" under Remote Secure Gateway but there is no option like that).
    When I go to the VPN section this is what I get:
    1. Does this mean that I can connect to my modem via VPN from some other location? I would like to be able to connect to this modem when I am not at home from some remote location from my computer in order to be able to use NAS-Storage.
    2. If the answer on the first question is yes, what settings I need to enter for the:
    Local Secure Group
    Remote Secure Group
    Remote Secure Gateway
    My ISP is using dynamic IP but I have DDNS.
    My router local IP is 192.168.0.1
    Subnet: 255.255.255.0
    Starting IP Address: 192.168.0.10
    Here is how the advanced settings looks like:
    Thanks in advance for your help!

    My problem similar too this. I create a tunnel between two epc3925 but impossible to send data between them.
    The status is connected.  What can I do? UPC tell me this router has only vpn client so i will doesn't work.

  • Need help with set-up

    Hello,
    I gave my son an Iphone 4 to use.  He is in the military overseas now and let his phone for another sibling to use while deployed.  Problem is he wiped it clean but it is still asking for the email/password to set up since its still connected to his account.
    Problem is I don't know this info and neither does he.  It's been over a year already and he has no clue.  The email retrieval doesn't work because he doesn't have access to emails.  HELP!!!
    Is there anyway to get past the logon screen??
    Thanks.

    Hey blaub6,
    Thanks for the question. Your son will need to gain access to his Apple ID account to unlock this device. Find my iPhone Activation Lock is designed to lock the device from use from anyone other than the owner. If you son needs help gaining access to his Apple ID account, he can use the following resources as a starting point:
    How to find your Apple ID - Apple Support
    http://support.apple.com/en-us/HT201354
    If you forgot your Apple ID password - Apple Support
    http://support.apple.com/en-us/HT201487
    Additional information about Find my iPhone Activation Lock:
    Find My iPhone Activation Lock - Apple Support
    http://support.apple.com/en-us/HT201365
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account - Apple Support
    http://support.apple.com/en-us/HT201441
    Thanks,
    Matt M.

  • Need help with set up for extensions

    I'm new to OA Framework development and am just ramping up (do have years of Java development experience) and could use some help. I've read through the OA Framework Developer Guide and gone through a few of the tutorials. My task is to add some extensions to the R12 Customer Standard pages.
    I've looked in the $JAVA_TOP at the following directory structure.
    /oracle/apps/ar/cusstd/...
    I find java classes and the server.xml files but there are no PG.xml files to work with. Are these located in a different structure? What is the best approach to obtaining the base Oracle source files to start with and for configuring your local development environment to extend R12 OA Framework pages? Do you need to include the entire $JAVA_TOP in your development client environment classpath as well?
    Thanks in advance!

    To run the oracle seeded party create/update page, you can refer <<your Jdeveloper Installation directory>>\jdevhome\jdev\myhtml\OA_HTML\test_fwktutorial.jsp.
    Create a new custom jsp similar to test_fwktutorial.jsp. Modify this JSP based on your environment and user setup. Modify the links also. With this, you should run this jsp first. By clicking the link in the JSP run, you can launch party create page.
    The error you posted in RED color is thrown because you are trying to modify the web bean hierarchy in the processFormData method. Example, setting some items property to rendered false or true. All these kind of modifications should be done in the proceeRequest method of the controller.
    Following is from DEV guide to launch the forms application.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Launching Oracle Applications Forms from OA Framework Pages
    To launch an Oracle Applications form from OA Framework, you must first define a button, link or image web
    bean. The web bean then relies on the FormsLauncher applet provided by Oracle Applications (AOL/J) to
    launch the specified form.
    Declarative Implementation
    Step 1: In the OA Extension Structure pane, select the region in which you want to create the web bean to
    launch an Oracle Applications form. Choose New > Item from the context menu.
    Step 2: Set the ID property for the item, in accordance with the OA Framework File Standards, and set the Item
    Style property to button, image, or link. You may also launch an Oracle Applications form from a submit
    button. See the Runtime Control section below for more details.
    Step 3: Set the Destination URI property of the item with a value following this format (replacing the italicized
    text as appropriate):
    form:responsibilityApplicationShortName:responsibilityKey:securityGroupKey:functionName
    For example, if you want to launch the FND Menus form, the Destination URI property should be set to:
    form:SYSADMIN:SYSTEM_ADMINISTRATOR:STANDARD:FND_FNDMNMNU
    Step 4: If you wish to pass parameters to the form, set the Destination URI property with a value using the
    following format (Note that the parameter list is delimited by a space between each "parameter=value" pair):
    form:responsibilityApplicationShortName:responsibilityKey:securityGroupKey:functionName:param1=
    value1 param2=value2 param3=value3
    Note: If you wish to send varchar2 parameter values that contain spaces, use \" to enclose the string value.
    For example, to pass in something of the form:
    TXN_NUMBER=LT INVOICE 1
    Use:
    TXN_NUMBER=\"LT INVOICE 1\"
    Step 5: Refer to the following Chapter 4 topics for information about additional properties you may need to set
    for the specific item: Buttons(Action/Navigation), Buttons (Links), or Images in Your Pages.
    *Runtime Control*
    There are no special programmatic steps necessary to launch an Oracle Applications form from a button,
    image, or link in an OA Framework page. The OAButtonBean, OALinkBean and OAImageBean support the
    special form function URL format described above for the Destination URI property. When OA Framework
    encounters this special value, it generates the appropriate URL and also adds a hidden IFrame (inline frame)
    to the OA Framework page. The hidden IFrame is the target of the FormsLauncher applet provided by Oracle
    Applications.
    Launching an Oracle Applications Form From a Submit Button
    If you wish to launch an Oracle Applications form from a submit button in an OA Framework page, you must
    use the OAPageContext.forwardImmediatelyToForm(String url) method from
    548
    oracle.apps.fnd.framework.webui.OAPageContext. An example of how to use this API is shown in the code
    sample below:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("Apply")!=null)
    String destination =
    "form:SYSADMIN:SYSTEM_ADMINISTRATOR:STANDARD:FND_FNDMNMNU";
    pageContext.forwardImmediatelyToForm(destination);
    *Usage Notes*
    Microsoft Internet Explorer supports the IFrame element, so when you launch an Oracle Applications form from
    OA Framework, only a splash window appears. Any other windows required by the FormsLauncher applet
    use(s) the hidden IFrame as the target and therefore remain(s) hidden from the user. Netscape Navigator, on
    the other hand, does not support the IFrame element, so in addition to a splash window, the user also sees
    another window used by the FormsLauncher applet.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    let me know if you got struck.

  • Need Help with Set

    folks
    I have the following code
    Set siteIds=upb.getSiteIDs();
    StringBuffer sb = new StringBuffer();
    for(Iterator it=siteIds.iterator();it.hasNext();){
    sb.append(it.next());
    if(it.hasNext())
    sb.append(",");
    As it returns multiple Site Id's with (,) comma separated, Now i need to pick only the first Site Id from this Set, I appreciate if any one helps me out
    thanks
    mathew

    When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read and prevents accidental markup from array indices like [i].

  • Need help with setting up Internet sharing to PS3

    Hey, so I am trying to use my Macbook as a wired router to my PS3 (My Macbook is on my wireless Linksys router and I have the cable needed to create a wired connection from my Macbook to my PS3. I had this setup working once before after getting a specific set of numbers from a google search but can't seem to find that page anymore. I've only been able to find threads on creating a wireless connection. So here is my problem. From system prefs, I am entering into my PS3 all the numbers my Macbook is giving me from system prefs (my IP address, default router, subnet mask, and DNS servers). But ever time I run an internet connection test I get DNS Error 80710102. If someone could help me it would be greatly appreciated.

    Really?? I know this problem was solved before on the Apple message boards but I've been searching for it for quite some time and have yet to find that thread. Can someone help me with this??

  • Need help with set-up process

    Hi there, I am not tech expert hence I would require some help and clarifications. I bought an airport express recently. I own a Acer Netbook running on Windows Vista, iPad wireless version and a iPhone 3Gs.
    My purpose of buying the airport express was to create another wireless network and because I travel, I would like to use the airport express to allow my iPad and iPhone to connect wirelessly as most of the hotels only provide me with an Ethernet cable.
    Questions are....
    1) How do I do the initial set up? I cannot seem to set up my airport express using my netbook. It can't seem to detect. I have followed the following instructions.
    - Install the airport express utility.
    - Plug the airport express for power.
    - Open the utility, it has detected the base station.
    - Selected the option on setting up a wireless network.
    - It configured on its own.
    However, it doesnt work now, what do I do? Anybody who has simpler instructions for a noob like me?
    Also, once I am done with this initial set up and when I go overseas, is it as simple as plugging in their ethernet cable into my airport express and I can connect my ipad and iphone wirelessly?

    Welcome to the discussions!
    +My purpose of buying the airport express was to create another wireless network and because I travel, I would like to use the airport express to allow my iPad and iPhone to connect wirelessly as most of the hotels only provide me with an Ethernet cable.+
    +1) How do I do the initial set up? It can't seem to detect.+
    The AirPort Express is broadcasting a default wireless network with a name like Apple Network xxxxxx. You need to log on to this wireless network on your PC first, then open AirPort Utility to configure the device.
    Any Windows box is going to have issues with the Windows firewall blocking an attempted connection or your anti-virus software may be doing the same thing. You may need to turn both of these off in order to establish a connection between AirPort Utility and the AirPort Express.
    You might also try to connect an ethernet cable directly from the computer to the AirPort Express.
    *Open AirPort Utility - Click Manual Setup*
    *Click the Base Station tab* below the row of icons
    Name your Express, assign a device password and adjust Time Zone settings
    *Click the Wireless tab*
    Wireless Mode = Create a wireless network
    Wireless Network Name = Your choice
    Radio Mode = 802.11n (802.11 b/g compatible)
    Channel = Automatic
    Security = WPA2 Personal or WPA/WPA2 Personal
    Password = Your choice
    Confirm Password
    *Click the Internet icon*
    Connect Using = Ethernet
    Connection Sharing = Off Bridge Mode
    *Update to save settings*
    When you are at the hotel, connect an ethernet cable from the hotel's jack to the AirPort Express and power up the Express. Open your browser and hotel's log in page will appear so that you can agree to terms and pay the fees.

  • Need Help with Setting Up E-Mail on My BlackBerry Q-10

    This is my first "not basic" cell phone so I'm struggling in setting it up (there are things that just are not covered at all in the on-line User's Manual). The BlackBerry Q-10 apparently doesn't display the full-on "compose" e-mail screen unless an e-mail account is set up. The e-mail account I have is what I access on my desktop computer; and because I get so, so many unimportant e-mails on it every day, I don't want to be getting all these e-mails on my cell phone (but I "do" want access on my cell phone to ALL the e-mail screens and options). Is there a way I can use my existing desktop computer e-mail address to set up the e-mail account on my BlackBerry Q-10 but then somehow turn the "incoming" e-mail function on the cell phone off completely (so I only get the e-mails on my computer)? Also, what does it mean when it asks if I want to "sync" my e-mails? Any help would be greatly appreciated!
    Solved!
    Go to Solution.

    Two or three thoughts.
    My BlackBerry handset has become my exclusive email tool. I think if you get used to the idea of accessing email from different machines, with the BlackBerry being one of them, it will begin to make sense.
    If you haven't enabled a junk email filter at the server level on your email service, do it. Filtered email will not be sync'd with the BlackBerry email client.
    Set up your email as IMAP. If you are using Outlook.com, setup as EAS. Create folders for email you don't want sync'd to the inbox on the BlackBerry. Setup rules to move that email to the appropriate folder as it arrives. You will be able to view those folders and their contents on the BlackBerry when you want, but they will not be sync'd automatically unless you turn that on.
    As far as your last question, what is the context? Generally speaking, the email can be automatically synchronized. If IMAP or EAS, the folders on the device and other devices and the servers are synchronized. Read an email one place and it is marked read everywhere. Ditto deletes and moves.
    - Ira

Maybe you are looking for

  • Report to see PO and invoice price diff

    Hello All, Which t-code/report can I use to see any difference between PO price and info record price diff? We have a customized tcode ZMMR003, but it is giving runtime error even if I run for one date and corrsponding data exists.. Regards,

  • How can i use my phone number for imessage on my macbook pro?

    I have been trying to sync my iMessages between my iPhone 4s and my macbook pro but it will only use my email. I have been told to change the setting in the message menu but I can't seem to find that! Help me please!!! Thank you!

  • IR created for Purchase order without accounting document

    Hi all, We have a peculiar situation where an IR (Invoice receipt) document has been created for a purchase order where the corresponding accounting document has not been generated. Can you please let us know how can we create accounting document for

  • Does time machine backup iCal using CalDAV?

    Greetings, I'm curious if Time Machine creates backups of an iCal account that syncs with Google Calendar via CalDAV. For instance, if I delete something from my Google Calendar (or, God forbid, my entire Google Calendar) would I be able to access th

  • Audio imported becomes mono

    When I import a stereo audio file into GarageBand, GarageBand plays it in mono even though it shows two sound waves in the track. How do I get it to play back in stereo?