Java applet calling another applet on the Javacard

Hi, I am new to JC.
I have some Java classes which I do not want others to extend. Hence, to hide these classes, I have created a set of helper classes that will provide services to these "hidden" Java classes to other calling applets, much like the way I do in J2SE. Something like a wrapper class.
The problem is, I am not sure if other applet classes can call this new helper class or not? and I am also not sure how this can be done. Can someone advise? Thanks in advance.

I'm not sure what this has to do with JavaCards.
Sounds like a simple Facade Design Pattern. Also your classes are "hidden" when you make them package protected or package private. Read J2SE packages and you'll see what I mean.
If you are referring to JavaCard, by design each package is it's own context therefore, there's a context firewall to protect it's objects and data. A shareable Interface object must be implemented to allow access.

Similar Messages

  • Does Firefox support java applets if the "Next generation plugin" is disabled via the Java plugin control panel.

    I'm still trying to get a definitive answer to this question.
    My applet is not "Next Generation compliant". When we run our applet in Internet Explorer it runs fine as long as we disable the "Next Generation Plugin" via the Java plugin control panel. However our applet does not run in Firefox if the "next generation applet" is disabled.
    Is it a requirement that if I want to run an applet in Firefox 3.6.x or higher that the "next generation plugin" be enabled via the Java plugin control panel.

    Current Firefox versions (3.6 and later) can only run Java applets via the Next Generation plugin.
    *http://java.com/en/download/help/new_plugin.xml

  • Java applet using the Swing API

    write a Java applet using the Swing API to manage a PC repair shop. When a PC is brought in for repair, a member of staff will use this applet to log it into the system as a repair job. They will also be able to use the applet to manage the job e.g. allocate a person to carry out the repair and enter costs.
    You must not use a tool such as JBuilder to generate Java code. If you use code from elsewhere e.g. a text book, you must highlight the code and state the reference clearly and include a photocopy of the relevant pages from the text book or other source.
    You should hard-code some initial data into your applet. You should not store any data in a file or database.
    Level of functionality you should attempt to implement:
    Level 1 � Your applet should:
    a.     As a minimum, your program should store (in memory) at least 10 repair jobs. For each repair job, you need to store:
    �     The name and phone number of the customer bringing the PC in for repair;
    �     A brief textual description of the problem;
    �     Whether the PC is under warranty or not.
    b.     Your program must allocate and display a unique number for the job once it is accepted.
    c.     The user must be able to view the details of jobs. They should be able to select either:
    �     All the jobs in the system; or
    �     Jobs being carried out under warranty.
    Level 2 � Your applet must meet the requirements for level 1. In addition it should:
    a.     You should carry out appropriate validation checks on input data e.g. the phone number contains all digits.
    b.     System should cope with an unlimited number of jobs.
    c.     The user should be able to select a job and then allocate a repairer to that job.
    d.     The user should be able to display a list of jobs for each repairer.
    Level 3 - Your applet must meet the requirements for level 1 and 2. In addition it should allow the user to:
    a.     Select a job and input the cost of repair for:
    �     the number of hours labour;
    �     parts.
    b.     Select a job and present the user with a cost for the labour (hard code an hourly labour cost) and parts, plus a total for that job. For jobs under warranty the total will be zero, however the cost of labour and parts will be shown.
    c.     Be able to inform the business of the total expected income from the all the jobs in the system that are not under warranty.
    Level 4 � Your applet must meet the requirements for level 1 to 3. In addition:
    a.     The user should be able to enter a job priority which can be identified as high, medium or low.
    b.     Each repairer should be able to view a list of their jobs in order of priority.

    Done, what next ?
    Noah

  • Can we call another transaction from the Userexit

    Hi all,
            Can we call another transaction from the Userexit?
    Thanks,
    Balaji

    Hi
    Because the statament CALL TRANSACTION triggers the end of the LUW so COMMIT WORK, so you should be sure not to insert that statament while some updating actions are been doing.
    So that exit shouldn't be triggered while updating
    Max

  • How to Call another screen using the ABAP Report which is displaying ALV ou

    Hello All,
    I am developing a ABAP report in which I want to transfer the stock from material to another material.
    My Report will include 3 to screens.
    The first sleection screen will display all the material with their stock value.
    When we execute the report I will get the list of materials along with their current stock. On the top of the output screen I want the Execute button. Also , each line of the output should have checkbox or the ALV provides the functionality of editing one cell like that.....Once the user tick the checkbox or the cell....then I want to move to another screen where user can enter the Quantity and then user will tick ok and then I will call one function module so that the material documnet is posted and transfer of posting form material to material is done successfully.
    Could anyone please help me out how to call another screen from the output screen where user can enter the Quantity amount....
    I dont want to use the Dialog programming.....I want to create the simple ALV Abap report.
    Regards,
    Komal Bhutada.

    Hi Raymond,
    Thanks for the input...I will try this in my code .....
    Can you please help me how to insert the checkbox in the ALV Output....so that I can select one of row and then press execute to process further?..
    Thanks for the information.
    Regards,
    Komal.

  • Calling another FM, in the FM which is called in Update task

    Hi Experts,
    I have created the implicit  enhancement in the Function module say 'X' .
    This 'X' FM is called in  Update Task.
    Now i am calling another FM say 'Y' in this 'X' FM.
    The FM 'Y' has got its own commit statement.It is updating some tables.
    Here are my findings,
    When i commented the explicit 'commit and wait' from the 'Y' Fm , the data that i needed to be saved was being saved and updated successfully.
    However , when i added an extra parameter say 'No Commit' in the 'Y' FM to by pass the explicit 'commit and wait'  ,  the FM 'Y' itself is not getting called for strange reasons.
    The update gets interrupted.
    Please suggest why this FM is not getting called.
    Any thing that i may be missing.
    Regards,
    Abhishek Kokate

    Hope you have called the FM correctly with the additional importing parameter , also check if your FM is RFC enabled then check the "pass by value" option.

  • Calling another program from the current program

    Hi all,
    In our requirement we are calling another program from our current program .
    In the current program( from which we are calling ) we are giving file name in the selection screen
    and when we run the current program we are successfully going to other program but our main requirement is to higlight the file name which we had given earlier .
    Note :  The called program doesnt have any selection screen.

    HI
    use EXPORT and IMPORT key words for passing data from one program to another program.
    as the called program is available in the same session you can use above key words which means you are accessing ABAP MEMORY.
    You can also use SET and GET key words which means SAP memory
    take F1 help there are examples tooo and detailes explanation abou the same
    Regards
    Ramchander Rao.K
    Edited by: Ramchander Krishnamraju on Dec 24, 2008 7:05 AM

  • Make a Java program call another program??

    Is there a way to make a Java program execute another program?

    Why dont we demonstrate:
    Program (Windows-based) Calculator.exe
    Code:
    try {
    Runtime.getRuntime().exec("c:/windows/calc.exe");
    } catch(IOException e) {}

  • Calling another method in the class from within the body of a method Im wri

    Hello out there.
    I have a question. I keep getting an error that reads as follows:
    1 error found:
    File: /Users/matthieubell/Academia/University of Waterloo/CS 125/L06/CreditCard.java [line: 80]
    Error: double cannot be dereferenced
    I think it is occuring because I am trying to call a method on an instance variable, which is not an object. But how do call a method I have already written, on another method I am writing in the general sense. I could make a particular object, but Im not shure that would get me the same result. I want to be able to call the method calcMinPayment on the instance variable currentBalance to wirte the method makePayment.
    I have a class CreditCard
    with the instance variables "private double currentBalance = 0; "
    public double calcMinPayment()
    // Add code here
    double minimumPayment;
    if (currentBalance < 50)
    minimumPayment = currentBalance/10;
    else
    minimumPayment = 50;
    return minimumPayment; // Replace this statement
    * This method will decrease the current balance on the credit card if
    * this payment meets or exceeds the minimum payment amount.
    * pre: paymentAmt > 0
    * post: The current balance should be decreased by paymentAmt if
    * paymentAmt >= the minimum payment amount. Otherwise, the payment
    * will not be recorded and an appropriate error message should be
    * displayed.
    public void makePayment(double paymentAmt)
    // Add code here
    double minimumPaymentAmount;
    minimumPaymentAmount = currentBalance.calcMinPayment();
    if (paymentAmt < minimumPaymentAmount)
    System.out.println("Sorry, but your payment must exceed the minimum payment amount.");
    System.out.println("This payment has not been recorded, please try again.");
    else
    this.currentBalance = currentBalance - paymentAmt;
    thanks for youre help
    -Matthieu

    'calcMinPayment' takes no arguments, uses a member variable (currentBalance) to compute a local variable 'minimumPayment' which it returns, ie, sends back to the caller. So you can call 'calcMinPayment' at any time.
    minimumPaymentAmount = calcMinPayment();

  • Java Class calling another class?

    i have a class called infix and a separate class called postfix. what i am trying to do is make the infix class create a string of postfix notation and then call the postfix class to do the computation.
    i have the string all ready to be passed to the postfix class for computation..my question is...how do i get it to that class?

    HERE ARE THE TWO CLASSES. THE POSTFIX WORKS FOR SURE AND I AM TRYING TO GET THE INFIX TO WORK. THE QUESTION IS IN THE RETURN OF THE INFIX. DONT TRY TO CORRECT THE INFIX CODE. I AM WORKING ON THAT BY MYSELF. I JUST NEED HELP ON CONNECTING THEM IF POSSIBLE. CHECK THE RETURN OF INFIX. THANKS ALOT
    import java.util.*;
    public class PostFix
         private Set<String> ops = new HashSet<String>();
         private List<String> lst = new LinkedList<String>();
         private static Map<String, String> m = new HashMap<String, String>();
         public List<String> getLst()
              return lst;
         public Map<String, String> getMap()
              return m;
         public PostFix( String s )
              ops.add("+");
              ops.add("-");
              ops.add("*");
              ops.add("/");
              ops.add("%");
              StringTokenizer sTok = new StringTokenizer(s);
              while( sTok.hasMoreTokens() )
                   lst.add( sTok.nextToken() );
              m.put( "a" , "26" );
              m.put( "b" , "25" );
              m.put( "c" , "24" );
              m.put( "d" , "23" );
              m.put( "e" , "22" );
              m.put( "f" , "21" );
              m.put( "g" , "20" );
              m.put( "h" , "19" );
              m.put( "i" , "18" );
              m.put( "j" , "17" );
              m.put( "k" , "16" );
              m.put( "l" , "15" );
              m.put( "m" , "14" );
              m.put( "n" , "13" );
              m.put( "o" , "12" );
              m.put( "p" , "11" );
              m.put( "q" , "10" );
              m.put( "r" , "9" );
              m.put( "s" , "8" );
              m.put( "t" , "7" );
              m.put( "u" , "6" );
              m.put( "v" , "5" );
              m.put( "w" , "4" );
              m.put( "x" , "3" );
              m.put( "y" , "2" );
              m.put( "z" , "1" );
         public int Value()
              Stack<Integer>operandStack = new Stack<Integer>();
              Iterator<String> iterator = lst.iterator();
              String tmp;
              int val1 = 0;
              int val2 = 0;
              int tmpInt = 0;
              while( iterator.hasNext() )
                   tmp = iterator.next();
                   if( !ops.contains( tmp ) )
                        operandStack.push(Integer.parseInt(tmp));
                   else
                        val1 = operandStack.pop();
                        val2 = operandStack.pop();     
                        Character c = new Character( tmp.charAt(0) );
                        switch( c )
                             case '+':
                                  operandStack.push(val1 + val2);
                                  break;
                             case '-':
                                  operandStack.push(val2 - val1);
                                  break;
                             case '*':
                                  operandStack.push(val1 * val2);
                                  break;
                             case '/':
                                  operandStack.push(val2 / val1);
                                  break;
                             case '%':
                                  operandStack.push(val2 % val1);
                                  break;
              return operandStack.peek();
         public int Value( Map m )
              Stack<Integer> operandStack = new Stack<Integer>();
              Iterator<String> iterator = lst.iterator();
              String tmp;
              String x;
              int val1 = 0;
              int val2 = 0;
              int tmpInt = 0;
              while( iterator.hasNext() )
                   tmp = iterator.next();
                   if( !ops.contains( tmp ) && !m.containsKey( tmp )  )
                        operandStack.push(Integer.parseInt(tmp));
                   else if ( !ops.contains(tmp) && m.containsKey(tmp) )
                        x = m.get(tmp).toString();
                        operandStack.push(Integer.parseInt(x));
                   else{          
                        val1 = operandStack.pop();
                        val2 = operandStack.pop();     
                        Character c = new Character( tmp.charAt(0) );
                        switch( c )
                             case '+':
                                  operandStack.push(val1 + val2);
                                  break;
                             case '-':
                                  operandStack.push(val2 - val1);
                                  break;
                             case '*':
                                  operandStack.push(val1 * val2);
                                  break;
                             case '/':
                                  operandStack.push(val2 / val1);
                                  break;
                             case '%':
                                  operandStack.push(val2 % val1);
                                  break;
              return operandStack.peek();
         and the infix is
    import java.util.*;
    public class InFix
         PostFix pFix;
         private Set<String> LowOps = new HashSet<String>();
         //private Set<String> parenthesis = new HashSet<String>();
         private Set<String> HighOps = new HashSet<String>();
         private List<String> lst = new LinkedList<String>();
         public List<String> getLst()
              return lst;
         public InFix( String s )
              LowOps.add("+");
              LowOps.add("-");
              HighOps.add("*");
              HighOps.add("/");
              //ops.add("%");
              StringTokenizer sTok = new StringTokenizer(s);
              while( sTok.hasMoreTokens() )
                   lst.add( sTok.nextToken() );
         public int Value()
              Stack <String> operatorStack = new Stack<String>();
              Iterator<String> iterator = lst.iterator();
              String tmp = "";
              String pFixStr = "";
              while( iterator.hasNext() )
                   tmp = iterator.next();
                   if( tmp == "(" )
                        operatorStack.push(tmp);
                   else if( tmp == ")" )
                        String peektmp = operatorStack.peek();
                        while( peektmp != "(" )
                             pFixStr.concat(operatorStack.pop() );
                   else if( !LowOps.contains(tmp) && !HighOps.contains(tmp) )//pushes if its a number
                        pFixStr.concat( tmp );
                   else if( LowOps.contains( tmp ) )
                        operatorStack.push(tmp);
                   else if( HighOps.contains( tmp ) )
                        operatorStack.push(tmp);
              while ( !operatorStack.empty() )
                   pFixStr.concat(operatorStack.pop());
              System.out.println( pFixStr );
         return <THIS IS WHERE I WANT TO RETURN THE COMPUTATION FROM THE POSTFIX CLASS. IS THIS CORRECT TO TRY AND RETURN A POSTFIX(PFIXSTR) OR SOMETHING LIKE THAT>     
         }THANKS

  • Prompts are not working when we call another report from the narrative view

    Hi,
    In my dashboard i need a table view report which should have scrolling option only for that section.
    For this i added a html tag <iframe ........scrolling="yes"> in the narrative view and i added that narrative view in the report.
    Now,it works fine in the dashboard.
    But when i apply prompts in the dashboard the values are not filtering even though i added the "is prompted" filter condition in the criteria of both narrative view section and the called function.
    Any help would be greatly appriciated.
    Thanks,
    chinna.

    Hi,
    since you have created an iframe dashboard prompt wont work on that report.Same is the case if you put the report in Embeded content.
    One possible workaround is to creaate a dummy report having columns same as that of dashboard prompt.Put all the columns is prmompted in this report
    (No need to create dummy report if you already have those columns in some other report,You can use that report also)
    Then go to your Iframe report and use "filter based on other request".In this way dashboard prompt will filter dummy report and based on dummy report values your iframe report will also filter.
    Thanks
    Sandeep

  • Calling another program in the print program through FORM ENTRY

    Hi All,
    Have a requirement that I need to submit the program with variant to a print program.
    But it is giving dump "Statement "SUBMIT" is not allowed in this form" while executing through VF04.
    I have tried by using CALL FUNCTION  "func" in update task .Inside the "func"  in I have coded the logic of
    submit program using selection-set VARIANT.
    Even then while executing through VF04 got the dump "DYNPRO_SEND_IN_BACKGROUND" and "POSTING_ILLEGAL_STATEMENT ".
    Kindly advise to resolve the issue.

    Hi,
    PLease make sure that u r using both smartforms and report..
    Once the function called the report program, whether control back to the print program..
    Using debugger please check..
    put a break-point in your program and find where that dump is arised..
    whether u want report only or smartform only...
    If the same problem arises again,
    Paste your report program code inside the print program instead of using SUBMIT..
    let me know what the issue u r facing
    regards
    vijay

  • Can we call another dashboard within the main dashboard?

    Hi Xcelsius Gurus,
    Currently I have created 4 dashboards out of total 10 dashboards using "Dynamic Visibility" in one single SWF file.  As each dashboard has more KPIs in it, it has performance issues.  We have still 6 dashboards to go.
    Hence to get better performance, I am planning to break this SWF into multiple SWFs.  Each sub-dashboard will have "BACK" button.  Hence I'll have one main dashboard, where on click it will open the respective dashboard and when clicked on BACK button the main dashboard will be visible.
    Will this be possible?  If yes, how to achieve the same?
    Your early reply is much appreciated!
    Regards,
    Rashmi

    Hi again Rashmi,
    do you have BOE intsalled? If yes, then you can use the OpenDocument command for that:
    [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/800f7400-bf3e-2b10-fa81-c6c74f457ab4|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/800f7400-bf3e-2b10-fa81-c6c74f457ab4]
    If not, then I would recommend you to build the "main dashboard" as a html navigation, each dashboard can be loaded in other frame.
    You can also try to use the URL Button Component, this will open a specified Link, including swf's files.
    Regards
    Victor
    Edited by: Victor Gabriel Saiz Castillo on Dec 22, 2009 8:16 PM

  • Calling another page in the portal

    Hi,
    I have created two pages p1 & p2 in Portal.
    I want to access p2 form p1 ,is there any way for that.if it is possible programitically ,I would appreciate some sample code.
    Thanks
    Ravi

    Hie
    You can do this bye placing a url component created in your DB provider or using the go method (go('Address');)in success event of your form portlet on the page or use the &lt;a href="page address"&gt;Link Text&lt;/a&gt; as your field in your sql report which you will place it in your page as a portlet.

  • Can Java Applet Call the ASP Page

    Hi,
    I would like to know whether the Java Applet can call the ASP page.
    If it can be done, how does the Java Applet get the value from ASP page?
    Please provide me some running example.
    Thanks.

    I would like to know whether the Java Applet can
    an call the ASP page.Something like:
    AppletContext.showDocument(new URL("http://wherever/myPage.asp"), "_blank");
    how does the Java Applet get the value from ASP page?What?
    Please provide me some running example.Nope.

Maybe you are looking for

  • Calling a multi value parameter seems to slow down report

    Hi Nearly all of my datasets use a multi value parameter at present which from testing seems to be causing a long delay. If I change the dataset to not call the parameter and manually enter the values in this works quicker, the only issue being if I

  • Technical Monitoring - Mail: Acknowledge/OK

    Hello experts, I have three questions about mail notification in solution manager technical monitoring. 1. Acknowledge Also when I postpone an alert in technical monitoring (maybe 1 week back) I receive an email about the problem. Is this a bug? 2. O

  • Last Evaluated Price

    Hi All, Any idea what is the last evaluated price? I have used this price for Inventory in Warehouse report under this price but some items appear with price but some is without. Hope some one is able to give example as well, thanks. Regards, MH

  • What does it mean if two orange lights on my Satellite L755 are blinking?

    I have a Toshiba Satellite L755-154 (PSK2YE). Recently, whenever I launch a high-resource game (Train Simulator 2015), after about half an hour the power and battery indicators blink orange. A while after this, the laptop cuts out. What is going on?

  • Parent Control Issues

    My wife and I just purchased an Ipad mini for our 8 year old son as a reward for a summer reading goal.  We have read about parent controls and restrictions but can not seem to find the kind of app or setting that will allow us the sort of restrictio