Please help - extremely urgent.

My apologies for the simple question, but I can't for the life of me remember how I once got this to work.
I have an third party app that passes a double value to my program, then later retrieves this value from the program.
<snip>
tranTotal=0.0
void setTranTotal(double t)
{ tranTotal = t; }
double getTranTotal()
{ return tranTotal; }
</snip>
In the even that a double with the last number of 0 is passed, when the app retrieves tranTotal from my program, the 0 at the end is truncated. I have tried changing tranTotal to String, then using DecimalFormat, but because I cannot change how the third party app sends this data to me, I keep getting exception errors stating that a double value is expected. It is important that I point out, that this app and my program can sometimes pass this number back and forth multiple times.
I hope that is clear. Can anyone suggest a workaround? Or possibly a way to keep tranTotal as a double and always display two fraction digits?

Its actually 21.50 being truncated to 21.5 - the
issue is that by using DecimalFormat, I have to return
a String. I get passed this value as a double, my JSP
displays this double, then passes it to java program.
This JSP later retrieves the value from the java
program (still a double), and the 0 is being dropped
from the end. Whats driving me nuts is I did this once
before, then dumb me uploaded what I thought was the
latest version of my Java program to the server, and
overwrote the part that had this taken care of. It sounds like the issue is in the JSP page. As I said before, to your program 21.50 is the same as 21.5. They are both stored as the same sequence of ones and zeros. The issue is how you display that value to the user and whether it will display trailing zeros on such numbers. When you change it to a String it is no longer a number. As far as the computer is concerned it is now a group of character values.
Unfortunately, I haven't yet had a chance to use JSP, so I'm not going to be great resource. We use a terrible web developement product. The company responsible for this atrocity has, in their infite wisdom, decided to completely remove all traces of documentation, including APIs from the web for their Servlet classes. Thanks SilverStream or eXtend or whatever you call yourself now, you've really screwed us. We'll be contacting your competition very shortly. Anyway, this is why I am procrastinating here all day.
My best guess (I do have a JSP book, I'll look in a second) is that there is some sort of formatting syntax that you can use to make display as desired. I would think it would be consistent with NumberFormat.

Similar Messages

  • HT4972 the apps weve downloaded are not working.  please help,  extremely frustrated with our ipod 4

    the apps we have downloaded are not working,  please help,  extremely frustrated with our ipod 4

    See my previous reply for for the apps closing.
    For the wifi problem:
    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect OK before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network       
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Javafx deployment in html page(please help me urgent)

    i used the following method to deploy javafx in an html page.
    javafx file is:
    package hello;
    import javafx.scene.*;
    import javafx.stage.Stage;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.paint.Color;
    import javafx.scene.effect.DropShadow;
    Stage {
        title: "My Applet"
        width: 250
        height: 80
        scene: Scene {
            content: Text {
                x: 10  y: 30
                font: Font {
                     size: 24 }
                fill: Color.BLUE
                effect: DropShadow{ offsetX: 3 offsetY: 3}
                content: "VAARTA"
    I save the file as HelloApplet in a 'hello' named folder in my D:
    after that i downloaded from internet html code as
    <html>
        <head>
            <title>Wiki</title>
        </head>
        <body>
            <h1>Wiki</h1>
            <script src="dtfx.js"></script>
            <script>
                javafx(
                    archive: "HelloApplet.jar",
                    draggable: true,
                    width: 150,
                    height: 100,
                    code: "hello.HelloApplet",
                    name: "Wiki"
            </script>
        </body>
    </html>now i typed in DOS prompt as javafxc.exe HelloApplet.fx & i got the class files .
    _The main problem which is coming is how to create HelloApplet.jar file which is used in the html page without which the html page is not displaying the javafx script. Please help me urgently i am in the middle of my project & stuck up due to JAVAFX                   i am using WIndowsXP & javafx-sdk1.0 when i am typing jar command inside hello package it is displaying invalid command.in DOS prompt. If there is any other method to deploy javafx in html page then specify it also.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Crossposted: [http://forums.sun.com/thread.jspa?threadID=5323288].
    Please don't crosspost without notifying others. It is rude in terms of netiquette. Stick to one topic.

  • I made upgrade for IOS to 7.04 but my iphone is second hand and when iphone need to make activation ,i don't have the apple ID so my iphone didn't work from this time so please help me urgent

    I made upgrade for IOS to 7.04 but my iphone is second hand and when iphone need to make activation ,i don't have the apple ID so my iphone didn't work from this time so please help me urgent.

    There isn't one.
    amrzaky wrote:
    I can't contact with previous owner s i need another solutoin
    The Apple ID and Password that was Originally used to Activate the iDevice is required.
    If you cannot get this information from the seller
    Removing a device from a previous owner’s account
    You need to return the Device for a refund, as you will not be able to re-activate it.

  • Problem in VO execution----Please help me urgent

    Hi,
    I have One region(ASNOpptyReviewRN).this region is a tab in the main page(OpptyPG).For the region i am using one VO(OppReviewVO).
    When i came to this page i am writing the code in the process request to execute the VO based on the condition..so i can get the data on the page.
    First time VO is getting executed and data is coming in the page.if there is no data then i have the requirement to insert or update the fields in the region.
    So everything is working fine first time..or if i not insert anything new row...it is working fine all the time.
    But the problem is...after insert a new row and if i come to home page(not OpptyPG) and if i go to the ASNOpptyReviewRN the vo is getting executed but it is not showing the data on the page..
    This is happenig only when i insert a new row and i come back to that page..
    Please Help me..its urgent.. i am pasting the Processrequest and Amimpl code here...
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am=pageContext.getApplicationModule(webBean);
    String BidNumber=(String)pageContext.getTransactionTransientValue("ASNOpptyDetNbr");
    String reviewdBy=pageContext.getParameter("ReviewedBy");
    String reviewdDate=pageContext.getParameter("ReviewedDate");
    String versionNum=pageContext.getParameter("VersionNumber");
    String effortWithoutCont=pageContext.getParameter("EffortWithoutContingency");
    String contEffort=pageContext.getParameter("ContingencyEffort");
    String reviewFlag=pageContext.getParameter("ReviewFlag");
    String expiryDate=pageContext.getParameter("ExpiryDate");
    String comments=pageContext.getParameter("Comments");
    Serializable[] parameters={BidNumber,reviewdBy,reviewdDate,versionNum,effortWithoutCont,contEffort,reviewFlag,expiryDate,comments};
    pageContext.writeDiagnostics(this, "Inside ifff Bharat", 1);
    am.invokeMethod("insertBidReviewRow",parameters);
    and the method in the am is
    public void insertBidReviewRow(String BidNumber,String reviewdBy,String reviewdDate,String versionNum,String effortWithoutCont,String contEffort,String reviewFlag,String expiryDate,String comments) throws SQLException,
    ParseException
    String msg1="Hi i am inside bidreview"+BidNumber+reviewdBy+reviewdDate+versionNum+effortWithoutCont+contEffort+reviewFlag+expiryDate+comments;
    logMessages(msg1);
    Number bidnum=new Number(BidNumber);
    OpportunityBidReviewVOImpl vo;
    vo = getOpportunityBidReviewVO1();
    vo.setWhereClause(null);
    vo.setWhereClauseParams(null);
    vo.setWhereClause("BID_ID=:1");
    vo.setWhereClauseParam(0,bidnum);
    vo.executeQuery();
    int rowCount=vo.getRowCount();
    String msg8="Hi no of row count:-.."+":-- "+rowCount;
    logMessages(msg8);
    if(rowCount==0)
    String msg2="Hi iam inside bidreview:- Before fetch...";
    logMessages(msg2);
    vo.setMaxFetchSize(0);
    Row row=vo.createRow();
    String msg3="Hi iam inside bidreview:- After create....";
    logMessages(msg3);
    vo.insertRow(row);
    String msg4="Hi iam inside bidreview:- insert row....";
    logMessages(msg4);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    vo.setCurrentRow(row);
    String msg5="Hi iam inside bidreview:- insert row....";
    logMessages(msg5);
    OpportunityBidReviewVORowImpl opptybidreviewVo = (OpportunityBidReviewVORowImpl)vo.getCurrentRow();
    opptybidreviewVo.setBidId(bidnum);
    opptybidreviewVo.setReviewedBy(reviewdBy);
    //opptybidreviewVo.setReviewedDate(reviewdate);
    opptybidreviewVo.setVersionNumber(versionNum);
    opptybidreviewVo.setEffortWithoutContingency(effortWithoutCont);
    opptybidreviewVo.setContingencyEffort(contEffort);
    opptybidreviewVo.setReviewFlag(reviewFlag);
    //opptybidreviewVo.setExpiryDate(expirydate);
    opptybidreviewVo.setComments(comments);
    String msg6="Hi iam inside bidreview:- after all....";
    logMessages(msg6);
    String msg7="vo is cleared";
    logMessages(msg7);
    else
    String msg7="Hi iam inside bidreview:- already existing.....";
    logMessages(msg7);
    Thanks in advance
    Edited by: 842238 on Jul 1, 2011 7:07 AM

    Hi Kristoper,
    No..that Vo is based on some EO..why i am using the row.setAttribute() is...the bid number is coming from some other page...and i need to insert it in table..
    and except the bid number..other values are coming from the page...
    Thank you

  • Using flat file to upload in ABAP. Please help. Urgent

    Hi all,
    I am using a CSV excel file to upload some data to my ABAP program. Thje file contains material numbers as one of the fields. But if I enter the material number 11910892E80, excel converts it to  1.19E+87. Since I am using this file in the program to extract some fields from MARA, i am getting an error 'Material number does not exist'.
    I know that we can avoid this problem by changing the format type of the cell to 'text' in excel. I want to know if there is any other way to rectify this problem. I have to use an excel file for upload. Notepad will not do.
    Please help me solve this problem. It is urgent.
    Thanks and regards,
    Swaminath

    Hi
    If it is comma delimited file (CSV format) you can directly read the whole file and into a table with one field.
    Loop at that table.
    Use split a comma into fields of your internal table.
    endloop.
    Sample code
    move pcfile to v_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = v_file
          FILETYPE                = 'ASC'
          HAS_FIELD_SEPARATOR     = 'X'
        TABLES
          DATA_TAB                = in_rec
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.
      if sy-subrc ne 0.
        write:/5 'Error with PC file'.
      endif.
      loop at in_rec.
        if in_rec(4) ca number.
          split in_rec at p_del into
            itab-tcode  itab-tcodet
            itab-saknr
            itab-waers1 itab-waers2
            itab-amt1   itab-amt2
            itab-gl itab-kostl
            itab-prctr itab-obukrs
            itab-otcode itab-otcodet.
          if itab-amt1 = '0.00' or itab-amt1 = space.      "skip this line
            continue.
          endif.
          move-corresponding itab to fitab.
          append fitab.
          clear: itab, fitab.
         append itab.
        endif.
      endloop.

  • Problem in Code..Please help..urgent...:(

    Hello All,
    Please refer to the below code:
    package com.sap.NewOrderAssignment;
    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.Locale;
    import java.util.GregorianCalendar;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.TableColumnType;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.htmlb.table.TableColumn;
    public class BeanOrderDetails implements Serializable
    { public Date toDay, orderDate;
    public String toDayAsString;
    public IListModel deliveryAddress;
    public TextEdit address;
    public DefaultTableViewModel orderLines;
    public Locale locale;
    public String poNumber, model, qty;
    public Object colTitle[] = {"Model","Description","Qty (pcs)","AD Price","Net Price","Total amount","Indication ETA","12 NC","Part Del","GIM","# A-box","Pcd/A-box"};
    public BeanOrderDetails()
    { Calendar cal = new GregorianCalendar();
    toDay = cal.getTime();
    String year = String.valueOf(cal.get(Calendar.YEAR));
    String month = String.valueOf(cal.get(Calendar.MONTH)+1);
    String day = String.valueOf(cal.get(Calendar.DAY_OF_MONTH));
    toDayAsString = year"-"month"-"day;
    deliveryAddress = new DefaultListModel();
    deliveryAddress.setSingleSelection(true);
    deliveryAddress.addItem("1", "Delivery Address1");
    deliveryAddress.addItem("2", "Delivery Address2");
    deliveryAddress.addItem("3", "Delivery Address3");
    //company address
    address = new TextEdit("Company Address");
    address.setRows(4);
    address.setCols(40);
    String line1 = "KPIT Cummins Infosystems Ltd.";
    String line2 = "MIDC, Hinjewadi";
    String line3 = "Pune, India";
    address.setText(line1line2line3);
    address.setEnabled(true);
    //Table creation
    Object data[][] = {{"HQ8894","Sensotec Dry Rota Shaver","500","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
    orderLines = new DefaultTableViewModel(data, colTitle);
    TableColumn columnModel = orderLines.getColumnAt(1);
    TableColumn columnDesciption = orderLines.getColumnAt(2);
    TableColumn columnQty = orderLines.getColumnAt(3);
    TableColumn columnADPrice = orderLines.getColumnAt(4);
    TableColumn columnNetPrice = orderLines.getColumnAt(5);
    TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
    TableColumn columnETA = orderLines.getColumnAt(7);
    TableColumn column12NC = orderLines.getColumnAt(8);
    TableColumn columnPartDel = orderLines.getColumnAt(9);
    TableColumn columnGIM = orderLines.getColumnAt(10);
    TableColumn columnABox = orderLines.getColumnAt(11);
    TableColumn columnAmountInBox = orderLines.getColumnAt(11);
    TableColumn columnPcsBox = orderLines.getColumnAt(12);
    columnModel.setType(TableColumnType.INPUT);
    columnModel.setWidth("150");
    columnQty.setType(TableColumnType.INPUT);
    columnDesciption.setWidth("300");
    public void setLocale(Locale l)
    { locale = l;
    public Locale getLocale()
    { return locale;
    public void setOrderDate(Date od)
    { orderDate = od;
    public Date getOrderDate()
    { return orderDate;
    public void setOrderLines(DefaultTableViewModel mm)
    { orderLines = mm;
    public DefaultTableViewModel getOrderLines()
    { return orderLines;
    public void setAddress(String adr)
    { address.setText(adr);
    public void setTextEditAddress(TextEdit adr)
    { address = adr;
    public TextEdit getTextEditAddress()
    { return address;
    public String getAddress()
    { return address.getText();
    public void setDeliveryAdresses(IListModel model)
    { deliveryAddress = model;
    public IListModel getdeliveryAddresses()
    { return deliveryAddress;
    public void setPoNumber(String pon)
    { this.poNumber = pon;
    public String getPoNumber()
    { return this.poNumber;
    public void setModel(String m)
    { this.model = m;
    public void setQty(String quantity)
    { this.qty = quantity;
    public void getNewRow()
    { Object data[][] = { {"","Sensotec Dry Rota Shaver ABC","","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
    this.setQty("");
    this.setModel("");
    TableColumn columnModel = orderLines.getColumnAt(1);
    TableColumn columnDesciption = orderLines.getColumnAt(2);
    TableColumn columnQty = orderLines.getColumnAt(3);
    TableColumn columnADPrice = orderLines.getColumnAt(4);
    TableColumn columnNetPrice = orderLines.getColumnAt(5);
    TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
    TableColumn columnETA = orderLines.getColumnAt(7);
    TableColumn column12NC = orderLines.getColumnAt(8);
    TableColumn columnPartDel = orderLines.getColumnAt(9);
    TableColumn columnGIM = orderLines.getColumnAt(10);
    TableColumn columnABox = orderLines.getColumnAt(11);
    TableColumn columnAmountInBox = orderLines.getColumnAt(11);
    TableColumn columnPcsBox = orderLines.getColumnAt(12);
    columnModel.setType(TableColumnType.INPUT);
    columnModel.setWidth("150");
    columnQty.setType(TableColumnType.INPUT);
    columnDesciption.setWidth("300");
    The above code creates a table. It actually maps the various fields as the TableColumn.
    Question:
    I have added a button which appears below this table.
    Name of button = AddNewLine
    Now, when this button is clicked, a new empy row should appear in the table.
    My stmts in method - getNewRow() are not working.
    Please help me do so.
    Please help...its kinda urgent.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
             First up all I don't see any code where exactly you have added a button in the table.
             Secondly as a general thing,looking on to ur scenario you have initialize the table on the event of clicking the button ie)in ur getNewRow() just initialize your code for building an empty row of the table.
    Regards,
    guru

  • Problem with Accessing Deployed Servlets Please help, very urgent.

    Inspite of going through lots of Docs. I am not able to access the JSP which is deployed using JDeveloper 3.2 in the browser? What should be the URL and where should I place the JSP and the related files in the Apache Server (Specific directory)?
    Please help, this is very Urgent.
    Could I get some sites where I can get detailed description of how to deploy and access Servlets and JSPS using JDeveloper 3.2 for OAS 9i?
    Thanks in advance,
    Regards,
    Kavita.
    null

    Hi Kativa,
    In answer to your first question: In most apache installs, you want to place all your JSPs under the Apache/htdocs directory. This htdocs directory becomes the root directory of your HTTP request, so, for example, to access the file
    Apache/htdocs/mydir/myJSP.jsp
    you'd point your browser to
    server:port/mydir/myJSP.jsp]http://server:port/mydir/myJSP.jsp
    As to your second question: Do you mean Oracle 9iAS? If so, look at this HOWTO: http://technet.oracle.com:89/ubb/Forum2/HTML/006398.html
    JDeveloper 3.2 does not support deployment to OAS (the predecessor to iAS), but there was no OAS 9i.
    null

  • Sql  Query . Please help its urgent.

    Suppose in table EMP there are 2 columns (Roll_no and Name)
    Roll NO Name
    00001 A
    00002 B
    00010 X
    My requirement is to trunc preceding Zero's. For ex : for Roll no: 00001 the output should be 1 and for 00002 --> 2 .
    Please help its very urgent.

    try this
          select
                  to_number(roll_no) roll_no,
                  name
          from
                  emp;
         Regards
    Singh

  • Please help me urgently (Problem in using delete statement)

    Hello,
    I want to run delete query where table name should come from a variable .I have written the following procedure but its not working .Could you please help me
    DECLARE
    processtemplatename VARCHAR2(64);
    CURSOR T1Cursor IS
    select Process_template_name from ProcessTemplate
    where PROCESS_template_ID in
    ( select PROCESS_template_ID from PROCESSINSTANCE
    where process_instance_id in
    (select process_instance_id from processinstance where STATUS = 'PI_COMPLETED' OR STATUS = 'PI_REMOVED' ));
    BEGIN
    OPEN T1Cursor;
    LOOP
    FETCH T1Cursor INTO processtemplatename;
    EXIT WHEN T1Cursor%NOTFOUND;
    DELETE FROM processtemplatename WHERE process_instance_id in
    ( select process_instance_id from PROCESSINSTANCE where STATUS = 'PI_COMPLETED' OR STATUS = 'PI_REMOVED' );
    END LOOP;
    CLOSE T1Cursor;
    END;
    I am getting the error
    ERROR at line 19:
    ORA-06550: line 19, column 27:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 19, column 15:
    PL/SQL: SQL Statement ignored
    even when i used
    DECLARE
    processtemplatename VARCHAR2(64);
    BEGIN
    processtemplatename := 'example1';
    DELETE FROM processtemplatename WHERE process_instance_id in
    ( select process_instance_id from PROCESSINSTANCE where STATUS = 'PI_COMPLETED' OR STATUS = 'PI_REMOVED' );
    END;
    I am still getting the same error message
    Thanks,
    Salam.

    And BTW you do not need that clumsy CURSOR c.. OPEN c.. FETCH c INTO... CLOSE c etc. It is "reserved" for more complex cases when you cannot use:
    <pre>
    FOR P IN
         select Process_template_name
              from ProcessTemplate
              where PROCESS_template_ID in
                   (select PROCESS_template_ID
                        from PROCESSINSTANCE
                        where process_instance_id in
                             (select process_instance_id
                                  from processinstance
                                  where STATUS = 'PI_COMPLETED'
                                       OR STATUS = 'PI_REMOVED'
    LOOP
         EXECUTE IMMEDIATE
              'DELETE FROM ' || P.Process_template_name ||
                   ' WHERE process_instance_id in
                        (select process_instance_id
                             from PROCESSINSTANCE
                             where STATUS = ''PI_COMPLETED'' OR STATUS = ''PI_REMOVED''
    END LOOP;
    </pre>

  • Trouble logging into sql using scott/tiger..please help..URGENT!!!

    hai friends!
    I installed D2K recently. Iam unable to login to sql (directly or from D2K forms) using the usual username/password..scott/tiger,system/manager,demo/demo. I get the following error message :
    TNS error: Unable to connect to destination
    Please help me out!
    thanX,
    raji

    what is your error number.
    Did you try to look up this number in the oracle error book?
    Usually you can also find the solution there.
    My bet is that your tnsnames.ora file is not set properly.

  • Please Help its Urgent ***POPUP at the time of MIGO Posting*****

    Hi all,
    Please help me on this issue,
    I want to display one popup at the time of migo posting and that popup ask to user that " How much labels you wants to print?" and in next of that i want one text box or input field in that user inputs the number of labels he wants to print.
    I have tried using various POPUP functions but i have not got any FM which fulfill my requirement so please help me on this issue?
    Kind Regards
    Sudarshan Gaikwad

    The standart POPUP* function modules seem to either give an option to output descriptive text, or ask for a dictionary based field as an input.  As you want both in one popup you may need to write your own custom pop-up.
    Create a function group with a Z function module and add a dialog screen with the required text and input field to this function group.
    Take a look at function POPUP_GET_VALUES as an example - A custom written one could be a lot simpler.
    Then call this function from your user exit.
    Andrew

  • HELP PLEASE HELP! urgent question with an easy answer!!!!

    Hello;
    I designed a JFrame game, that uses gif files as ImageIcons. The game works perfectly when I run it from console with the java.exe command.
    However; now I want to create a wraparound and run the JFrame in the Internet Explorer from an applet. So I created a new file that extends JApplet; this new file creates a new object of the JFrame-game's class and show()'s it.
    And I created an HTM file that runs the JApplet class. However, the internet explorer cannot open the applet because it has trouble loading the pictures (gif files). How can I load the pictures from my applet for my frame???
    I dont want to change the Java security file. I just want to make the images accessible by my applet. I cannot use commands like setImage in my applet because my JFrame sets the Images.
    (I repeat)My JApplet only invokes an object of my JFrame class and shows it.
    PLEASE HELP PLEASE PLEASE..
    Thanks..

    OK; let me tell you the whole thing. My pictures are in the same folder for sure.
    My JFrame reads pictures and assigns JButtons pictures. when I run the frame there are 16 buttons with the same picture, and when I click the buttons there is a listener in the JFrame that changes the pictures. Simply put, the JFrame has no trouble finding and loading the pictures.
    Then I created a JApplet as follows:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MemoryApplet extends JApplet
    public void init ()
         GameFrame ce = new GameFrame ();
         ce.show ();
    GameFrame is the name of the JFrame class. Then when I try to open the applet using IE, it gives the following error:
    Exception: java.security.AccessControlException: (javax.io.FilePermission back.gif read)
    back.gif is one of the gif files that are used in GameFrame

  • Xcode 4.2 internal logic error..PLEASE HELP ME URGENT

    when im running xcode 4.2 it crash
    this is the message. please help me
    e-mail me if for your help ASAP.
    my e-mail [email protected]
    HERE ARE THE ERRORS:
    UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[IDECustomToolbar setFullScreenAccessoryView:]: unrecognized selector sent to instance 0x40177e540
    UserInfo: (null)
    Hints: None
    Backtrace:
      0  0x00007fff86357cfa __exceptionPreprocess (in CoreFoundation)
      1  0x00007fff844689ea objc_exception_throw (in libobjc.A.dylib)
      2  0x00007fff863e2cfe -[NSObject doesNotRecognizeSelector:] (in CoreFoundation)
      3  0x00007fff86345073 ___forwarding___ (in CoreFoundation)
      4  0x00007fff86344e88 _CF_forwarding_prep_0 (in CoreFoundation)
      5  0x000000010b87226e -[IDEWorkspaceWindowController windowDidLoad] (in IDEKit)
      6  0x00007fff8de6ff6a -[NSWindowController _windowDidLoad] (in AppKit)
      7  0x00007fff8de67646 -[NSWindowController window] (in AppKit)
      8  0x000000010ba83718 -[IDEDocumentController _openUntitledWorkspaceDocumentAndDisplay:simpleFilesFocused:editorDocumentURLOr Nil:error:] (in IDEKit)
      9  0x000000010b968e4f -[IDEApplicationCommands showTemplateChooserForTemplateKind:] (in IDEKit)
    10  0x00007fff8634798d -[NSObject performSelector:withObject:] (in CoreFoundation)
    11  0x000000010b9605b8 -[IDEApplicationController(IDECommandAdditions) forwardInvocation:] (in IDEKit)
    12  0x00007fff863451f4 ___forwarding___ (in CoreFoundation)
    13  0x00007fff86344e88 _CF_forwarding_prep_0 (in CoreFoundation)
    14  0x00007fff8634798d -[NSObject performSelector:withObject:] (in CoreFoundation)
    15  0x00007fff8dd76e66 -[NSApplication sendAction:to:from:] (in AppKit)
    16  0x000000010b181d10 -[DVTApplication sendAction:to:from:] (in DVTKit)
    17  0x000000010b86ee54 -[IDEApplication sendAction:to:from:] (in IDEKit)
    18  0x000000010b9631f5 +[IDECommandManager sendActionForCommandWithIdentifier:from:] (in IDEKit)
    19  0x00007fff8634798d -[NSObject performSelector:withObject:] (in CoreFoundation)
    20  0x00007fff8dd76e66 -[NSApplication sendAction:to:from:] (in AppKit)
    21  0x000000010b181d10 -[DVTApplication sendAction:to:from:] (in DVTKit)
    22  0x000000010b86ee54 -[IDEApplication sendAction:to:from:] (in IDEKit)
    23  0x00007fff8dd76d98 -[NSControl sendAction:to:] (in AppKit)
    24  0x00007fff8dd76cc3 -[NSCell _sendActionFrom:] (in AppKit)
    25  0x00007fff8dd76186 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
    26  0x00007fff8ddf5540 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
    27  0x00007fff8dd74d92 -[NSControl mouseDown:] (in AppKit)
    28  0x00007fff8dd3f7c6 -[NSWindow sendEvent:] (in AppKit)
    29  0x00007fff8dcd828e -[NSApplication sendEvent:] (in AppKit)
    30  0x000000010b86eb71 -[IDEApplication sendEvent:] (in IDEKit)
    31  0x00007fff8dc6f6e2 -[NSApplication run] (in AppKit)
    32  0x00007fff8deeccfb NSApplicationMain (in AppKit)
    33  0x000000010af67eec (in Xcode)

    i tried to uninstall xcode 4.2 and reinstall it again many times but it didnt work...
    please give me any solution for this problem..
    i really need my xcode

  • Reg: Printer Drivers Installations please Help me Urgent

    Dear All,
    I need to know how to install printer plugin in Moutain lion version   The thing which i have moutain lion OSX in my iMac i have a printer its offical. But i cant able to give a print in iMac osx then i have asked to my supported printer person about it then they provided me a plugin the details below.
    File Format { Terminal Install }
    File EF551699.plugin ( format .plugin )
    Please advise me how to install that plugin and how to get connected please help me
    Even i am attaching here screenshot of the same.
    Please waiting

    That package is corrupt, you need to get another copy of the installation or from a different webpage / source
    Good Luck

Maybe you are looking for

  • How to trace an Inbound R3 IDoc by seeing application document

    Hi all, How to trace an Inbound IDoc number by seeing application document in R3. sometimes 'Services from object' also we could'nt able to trace out the IDoc. 'Services from object'  option sometimes appears in blank status with no IDoc. Any possibl

  • 'Fiscal year period not expected error in BI 7.0

    Hi Guys, When I am loading data into Target(DSO, CUBE) It gives a error 'Fiscal year period not expected'. I got same error when I am loading into any target. Source is ECC 6.0 and Target is BI 7.0.  I am extracting the data from FI/CO module. Could

  • Problems swapping hard drive on mac book pro

    Is there a way to safely loosen the screws on the bracket holding the hard drive in place on a mac book pro 17 inch? I've got one loose, but the other one simply won't budge and the head is starting to strip. the amount of downward force I'm having t

  • (and happy new year!)

    I get abit sick and tired of he fact that they just random delete al kinda playersWhen you report a real bad player then nothing happens but players who never say something wrong even did buy gold get deleted without reasonAnd then they get a logo li

  • Schultz...just a few more questions while i am here..

    How does one obtain a startup disc/recovery disc..I did not make one when I first purchased my laptop...Live and learn huh? thanks again...schultz