How to make packages for applets

hi all...
i tried the following code for applets
package imp;
import java.awt.*;
import java.applet.*
<applet code="Ex1" widt=400 height=400>
</applet>
public class Ex1 extends java.applet.Applet
---------code------
and then i complied and used applet viewer to start the applet...but it gave the error access denied
without the packaging, this worked fine
regards,
kalyan

and then i complied and used applet viewer to start
the applet...but it gave the error access denied If I remember correctly, when you have a package to the class, the class file should be placed in a subfolder called imp and the applet tag should use the fully qualified classname imp.Ex1

Similar Messages

  • Simple introduction/tutorial on how to make Cocoa-Applescript Applets?

    I'm looking for a simple tutorial on how to make Cocoa-Applescript Applets.  I'm pretty new to Applescript, but fairly good at it, and I was wondering how Cocoa-Applescript Applets worked.  I was curious as I've been wondering if it was possible to somehow display images in Applescript, and it apparently is the only/easiest way.  My problem is that I haven't been able to find any tutorials on using it, so I was wondering if you guys could point me in the right direction, that'd be great!
    thanks in advance

    The main difference is with how the Cocoa APIs are used - in addition to the AppleScript and AppleScriptObjC release notes, there are some examples and resources at Mac OS X Automation.  Note that in Yosemite, AppleScriptObjC is available to all scripts, not just applets and libraries.

  • How to make entry for transit loss in the system

    Hello to all,
    I am having an issue with one subCon material.
    Suppose,
    Material A is the product required of 3000 MT Qty.
    SubCon vendor have sent that qty, but there is a transit loss of 500 MT.
    How to make entry for this transit loss in the system.
    regards,
    Anisha

    correct me if i am wrong-
    ur scenario is
    for making material A ,
    3000 MT of material B required.
    but for producing A vendor uses 3500MT of B
    solution : if this ia the case then u can overwrite the value of B at GRN from 3000MT to 3500MT.
    OR
    ur scenario is -
    u require material A of 3000MT
    vendor sends u 3000MT
    but actualy u recieve 2500MT
    and u have to pay for 3000MT as per bill
    solution : if this is ur scenario then.
    prerequisite-activate direct posting to G/L and material at MIRO
    Path - SPRO->MM->LIV->activate direct posting to G/L and material at MIRO.
    now procedure is -
    step 1) do GR for 2500MT
    step2) in LIV pay to vendor for 3000MT for that put 500 qty in material tab and the relavent amount.
    in this way loss in transite will be book on inventory.
    regards,
    sujit

  • How to make folders for pitcures on iphone 4

    how to make folders for pitcures on iphone 4?

    sorry about that..Where do i find the replies to my posts?  tks

  • Example to demonstrate how to make rebate for business

    Hello Gurus,
          please give a example to demonstrate how to make rebate for business?
    thanks very much!

    hi
    Rebates Processs in SAP is divided into three components
    1) Configuring Rebates
    2) Setting Up Rebates
    3) Managing rebate agreeeements and payments
    Pre-requsiistes- Check the following:
    1.The payer partner needs toi have the rebate field checked in the customer master on the sales area-billing doc tab.
    2.The Billing type must be marked as relevant for rebates.
    3.The Sales Organisation must be marked as relevant for rebates.
    Condition Technique :
    Rebates, use the condition technique, but distinguish themselves from pricing in applying to transactions over time, versus on a transaction basis. Rebates have their wn field catalog and their own condition table naming convention.So you could have two condition table "001" one for pricing and one for rebates, which could have different key fields. You need to use the technical names A001 For pricing and KOTe001 for rebates when you use the query type using transaction SE 16..
    Use create access sequence (AS). Enter 1 in field category for rebate specific. AS after going thru the right path of maintaining access sequence for rebates.
    The big difference between the rebate and the pricing access sequence is that there is no exclsuion flag available for rebate related AS. This means multiple tables for an access sequence can be aplied at the same time.
    Rebate related condition types are identified by codnition class -C.
    After defining and creating condition types for rebated include them in the pricing proceedure. The requirement should be 24 here which implies that the accruals are calculated on the basis of invoice/bill.
    The other fields- alctyp and altcbv does not allow you to manipulate how a rebate is calculated. Also, remove the requiremnt 24, if u want to see reabtes at order time.
    Now payment of rebates:
    Payments can be maunal or in full settlement. When you do manual payments, it defines how much can be paid out during a partial settlemetn. You use partial settlement only when rebate agreement is defined for a full year but the paoyouts are supposed to happen on a monthly, quarterly or anyother specified period.
    These accurals are based on sales volume and when they are posted billing is created int eh follwoing manner. Provision for accruals is debited and Sales revenue is credited. When rebate credit memo is created
    Customer account/ is debited and
    Accrual provision account is credited.
    Also, please note that when rebates are created without dependent ona material but on customer/material you need to refer to a material for settlement.
    First of all rebates are more or less discounts which are offered to customers. The rebates are based on the volume of the business the customer does with you within a specified time. for eg if the customer agrees for Rs.1 Crore worth of business with u in 1 year, then you activate your rebate porocess. if at the end of the year the customer DOES achieve the target u offer him say 2/3/4 % whatever is decided. The rebates are passed on to the customer in the form of Credit notes.
    The rebate can be given to the customer at one time or in installments also.
    This is broadly the outline of the rebate process.
    Note : I recomend you to study the theory part of why rebate and why not a discount.
    This will help you understand better.
    May be I can help you with rebate process.(IN -IMG)
    1. define a rebate agreement type
    2. define a condition type group
    3. define a condition type and place this condition
    Type in the pricing procedure.(REQUIREMENT=24)
    ALSO IN THE PROCEDURE- ACCRUAL KEY = ERU
    YOU ALSO HAVE TO DO THE ACCOUNT DETERMINATION FOR REBATES.
    Once you have defined all the 3 and assignment starts.
    Assign the agreement type to the condition type group
    Assign the cond type group to the condition type.
    Condition technique is also used in rebates.
    REBATE ACTIVATION- IN CUSTOMER MASTER, SALES ORGANISATION AND FOR THE BILLING DOCUMENT.
    After having done this please proceed to maintain the condition record for the rebates (transaction code-vbo1)
    Note: if you maintain the requirement coloumn with the requirement as 24 - the rebate will be affected in the billing document and if you dont give the requirement as 24 your rebate will be affected in the sales order.
    The rebate process is completed when you have created a credit memo to the customer.
    The document type for the partial settlement is R3.
    Please make sure you open two screens SO THAT YOU CAN COMPARE THE NEW ENTRIES WHAT EVER YOU'RE DEFINING WITH THAT OF THE STANDARDS or first you try with the standard condition type boo1, boo2
    boo3 boo4.
    AFTER YOU HAVE FINISHED A COMPLETE SALES CYCLE OF CREATION ORDER , DELIVERY AND BILLING.
    GO TO THE CONDITION RECORD IN CHANGE MODE (VB02) AND SETTLE THE ACCOUNT PARTIALLY.
    In a simple way,
    1. First you need to create a Rebate agreement.
    2. Create condition record for rebate giving the rebate rate and accrual rate.
    3. when the rebate relevent billing doc is generated, the rebate and accruals are determined and posted in a seperate GL account as a noted item - amount to be settled. Also it gets copied in the rebate agreement.
    4. create settlement run using credit memo request and then credit memo to settle this amount with the customer.

  • How to make password for macbook

    how to make password for macbook

    Go to System Preferences - Users and Groups, select your user, and click Change Password. If you currently have a blank password, type nothing in the "Current Password" box.
    Matt

  • How to Make BDC for transcation KKS1

    Hi dear,
    can any one tell me that how to make BDC for KKS1.
    because i have recorded the BDC and converted into the program logic than it is showing the first window but not showing the window with ALV and futher more. So what coding i have to apply.
    Please help.
    Siddarth Jain

    Hi,
    U can record the flow in using SHDB transaction recorder.
    U can record and it will generate the program, u can copy and paste the part of the code that is generated, in ur ALV report. this will call the transaction.
    Do as follows:
    <b>SHDB > New Recording > Specify Recording Name YTEST > Transaction code KKS1 > STRAT RECORDING BUTTON></b>
    then speciy the vales u want to give to run the transaction. U can save and come back as soon as u reach the screen when u want to stop it.
    EG:
    Declare a messtab
    DATA: i_bdcdata TYPE STANDARD TABLE OF bdcdata,
    * Internal table to hold BDC messages
    i_messtab TYPE STANDARD TABLE OF bdcmsgcoll
    * Work area to hold bdcdata value
    DATA: w_bdcdata TYPE bdcdata,
    * Work area to hold BDC messages
    w_messtab TYPE bdcmsgcoll.
    CONSTANTS : c_e type bdcmsgcoll-msgtyp value 'E', "E
    c_a type bdcmsgcoll-msgtyp value 'A', "A
    nodata type c value '/'. "/
    perform f1000_bdc_mm03 using lv_matnr lv_werks.
    FORM f1000_bdc_mm03 USING P_LV_MATNR
    P_LV_WERKS.
    perform bdc_dynpro using 'SAPLMGMM' '0060'.
    perform bdc_field using 'BDC_CURSOR'
    'RMMG1-MATNR'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RMMG1-MATNR'
    p_lv_matnr.
    perform bdc_dynpro using 'SAPLMGMM' '0070'.
    perform bdc_field using 'BDC_CURSOR'
    'MSICHTAUSW-DYTXT(15)'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_field using 'MSICHTAUSW-KZSEL(15)'
    'X'.
    perform bdc_dynpro using 'SAPLMGMM' '0080'.
    perform bdc_field using 'BDC_CURSOR'
    'RMMG1-WERKS'.
    perform bdc_field using 'BDC_OKCODE'
    '=ENTR'.
    perform bdc_field using 'RMMG1-WERKS'
    p_lv_werks.
    perform bdc_dynpro using 'SAPLMGMM' '4000'.
    perform bdc_field using 'BDC_OKCODE'
    '=ZU01'.
    perform bdc_field using 'BDC_CURSOR'
    'RMMG1-MATNR'.
    perform bdc_dynpro using 'SAPLMGMM' '4300'.
    perform bdc_field using 'BDC_OKCODE'
    '=ZU08'.
    perform bdc_field using 'BDC_CURSOR'
    'RMMG1-MATNR'.
    perform bdc_dynpro using 'SAPLMGMM' '4110'.
    perform bdc_field using 'BDC_OKCODE'
    '=GESV'.
    *perform bdc_field using 'BDC_CURSOR'
    * 'RMMG1-MATNR'.
    call transaction c_transaction_call_MM03 using i_bdcdata MODE 'N'MESSAGES INTO i_messtab.
    <b>Kindly close the previous threads opened by u.</b>
    Message was edited by: Judith Jessie Selvi

  • How to make root for lenovo a3500

    Hey Guys
    I need to know how to make root for lenovo a3500
    I tried Kingo Android Root but it didn't do anything
    Need help guys and thanks

    I haved to try vroot, but unsucess. I haved upgrate android 4.4.2 and try used kingoroot and vroot unsucess. Who do try sucess? Help me?

  • How to make restriction for the description of value in the transformation

    one infoobject AAAA which has value T001, T002, T003...
    the description of value
    T001 - Heywemay
    T002 - Heyrtya
    T003 - Tyuatyew
    I need to make routine in the transformation, when the description of value that contains "Hey", then we need to load it into infoprovider, otherwise we need to delete data package. Now the issue is  the filed in source is only Key, not description. But, we had maintained the description for infoobject AAAA. Anyboady know how to make restriction in the transformation, ?
    that means we only need to load data into infoprover once the description of value that contains "Hey". Should I add field 0TXTMD into infoprovider and make the link from infoobject AAAA? Thanks for any input.

    Hi,
    Write the Start routine to delete complete data packet whic won't have "Hey".
    DELETE SOURCE_PACKAGE WHERE TXTMD NP '"Hey'.
    If  you want load the data with blank for that InfoObejct if it won't contains "Hye".
    Write this code at TXTMD infoObejct level.
    if  SOURCE_PACKAGE-TXTMD NP 'Hey' .
          RESULT = ' '.
      elseif SOURCE_PACKAGE-TXTMD CP 'Hey' .
          RESULT = SOURCE_PACKAGE-TXTMD.
      endif.
    Note: In the above code I'm giving logic to do the same, but for code corrections please check with ABAPer.
    Thanks
    Reddy
    Edited by: Surendra Reddy on Aug 12, 2009 10:48 AM

  • How to make sure an applet runs with Java 5?

    Hi all,
    First let me say thanks for all the help in the past. You've help me go from noob to intermediate noob. I've just about finished my first applet game which can be checked out here .
    Now I've been reading about problems with mac and 1.6. (note it works on Linux). I want to make sure that it runs fine and of course I don't own a mac. So I downloaded the 5 JDK. Selected it as the java platform in Netbeans, compiled and it ran fine.
    Questions:
    Do I have to always use 1.5 to compile and perhaps set it as default?
    Since it works in 1.5, do I compile it with 1.6 and just upload?
    I'm worried I'm not testing it correctly. I mean if I have both 1.5 and 1.6 installed on my machine, how to I make sure the applet is only using 1.5 to run?
    Thanks
    Darrin

    corlettk wrote:
    I haven't got a clue RE your problem other than for max-portability you should compile with [-target 1.5|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html].
    I must say I'm impressed, except I suspect my PC must be substantially faster than any of your test platforms... can you throttle it to CPU performance somehow? Or maybe it's just that my reflexes aren't what they once where.Thanks.
    There seem to be two issues. The first is what people are using. This web stats shows pretty poor penetration of 1.6.
    [http://www.statowl.com/java.php|http://www.statowl.com/java.php] Penetration: 54% with JRE1.6 + 19% with JRE 1.5. Total 73%.
    The second is I've read that mac and 1.6 do not get along except on a 64bit platform.
    So for applets there is not much choice but to compile on 1.5 for the broadest user base. I guess the good news is 1.4 and earlier are almost non-existent.
    Edited by: Darrin.A on Apr 27, 2009 8:11 AM

  • How to make JEditorPane support applet?

    hi hi,
    i would like to know how to make the JEditorPane support applet coming from internet source. i will be using JEditorPane to view web page but if it contains applet, how can i make JEditor support it? what should i need to do so. pls give me some guide lines. thanks

    That's an interesting question. The short answer is, you can't. For one, the APPLET tag is ignored by the Swing HTML parser. Then, I'm not sure, what happens if you embedd heavy-weight components like applets into an editor pane.
    However, you can use  JEditorPane e = new JEditorPane();
      e.setText("Hallo, Welt");
      e.setCaret(5);
      e.insertComponent(new JButton("Click me"));to add swing components to your text. So you might be able to create a working solution based on this foundation.
    I can imagine two approaches. You could either create your own applet-like JEditorPanelets which would be basically JPanels with some glue code to allow the the panelet to access its editorPane.
    Or you could explore the approach to add a heavy weight applet and write a compatiblily stub. Here's an outline  class AppletAwareEditorPane extends JEditorPane {
        List applets;
        MyAppletStub stub;
        public void insertApplet(Applet a) {
          applets.add(a);
          a.setStub(stub);
          a.init();
        public void startApplets() {
          Iterator i = applets.iterator();
          while(i.hasNext()) ((Applet)i.next()).start();
        }However, each applet would require to run in its own tread and I'm pretty sure this would break swing as it is not thread save.
    bye

  • How to make suggestion for improvements in LR

    How do I make suggestions for new features or improvements in LR?
    The stacking function, IMO, needs to be improved.  The time between shots does not take into account the length of exposure.  For example if my exposure is 5 seconds the stacking exposure will not add the two exposures together in the time setting < 4 seconds.
    Ideally I would like to see an HDR stacking function, looks at time between exposures (taking into account the length of exposure) and changes in exposure.
    ideally there would be similar options for pans and focus stacking.
    Thanks
    Rich

    Submit a feature request or bug report
    Go to the above site.

  • How to make repricing for specific conditions at the time of billing?

    Hello
    I'm SD Pricing person. Let me ask here experts below my concern.
    In EU countries, there is recycling fee in sales of electronics or Note PC with batteries....to keep our earth clean.
    So when customers buy such products, they have to pay more as recycling fee including invoice amount.
    My question is... we want to make repricing for recycling conditions when the billing is created.
    Based on our configuration, recycling condition is not defined as a kind of tax condition.
    So this value is just copied from sales order.
    (pricing type in copy control is 'G' which means repricing for tax condition.)
    In this situation, we want to make repricing for those conditions during operating system.
    Is there any easy way to cover this?
    As I think, this is not easy because the system is already operated.
    To change condition attribution is really risky. If we dare do, we have to migrate all open orders.
    So I want to put this way to the end of my choice.
    For this requirement,
    1. We have to change condition class or category or calculation type in order to be repriced based on pricing type 'G'.
        (ex. Set the condition category as 'I' inter-billing or 'L' always repricing.)
        But transaction data are created now and all open orders will be affected.
    2. To create new conditions are not easy because these conditions are mapped to the CO-PA value field and the values are posted in FI doc.
    3. To change pricing type in copy control is almost impossible because of the impact.
    What can I do this in this situation?
    What I want to do is just to make repricing for specific conditions at the time of billing in case that pricing type of copy control is 'G'.
    Thank you in advance.

    Let me ask agagin to all experts.
    I want to make A condition to be repriced at the time of billing.
    For this, I have to set condition category as 'L' (Generally new when copying).
    But I do not want to do in that way becauuse I am maintaining big operated system now.
    In addition, though I migrate open orders after changing config. as 'L', it is almost impossible for use to migrate because we have more than a thound open orders per a DAY as Globalized system.
    That is why I am asking.
    Simply I can create new condition but as I mentioned, there are various recycling fee so we already created about 10 conditions. And this recycling conditions are linked to REA package of SAP. So creating another 10 more conditions can not be a way for us.
    At last, what I want is not to be shown this condition only in billing doc.
    'A' condition should be displayed in both Sales order and Billing doc.
    And simultaneously, when the billing is created and if user changed 'A' condition master, then new value which is different from sales order have to be reflected in billing doc.
    Thank you in advance.

  • How to make lines for "fill in the blanks?" (iWork Pages 09)

    This should be easy since it's something many people do: design a form for others to fill out with a pen or pencil.  However, I can't find any information regarding how to make a line after text, like this:
    Name _________________ Address _________________________________ Phone __________
    ...without using the underline character.
    Back on the Clarisworks days there was some way to make nice neat lines after text using tabs.  However, It's been so long that I can't recall how it worked.  I've Googled this issue using every logical term I can think of but found nothing useful.  The Pages 09 help file and the user guide  seem to be mute on this subject. The Word 2008 help file is similarly silent.  However, I'm sure that the greater Pages community knows the answer to this one.
    Thanks,
    Bill

    What you want is called a tab leader. In Pages, to create the underline:
    To create a new tab stop using the Text inspector, click in the document where you want to create a new tab stop, click Inspector in the toolbar, and then click Tabs. Click the Add button in the bottom-left corner of the Tabs pane. The new tab stop appears in the Tab Stops column.
    Then  use the Leader drop down menu to choose a solid line:

  • How to make report for last 24 hours?

    Hello,
    I have a little problem, I can't make report for last 24 hours.
    Example:
    If I am running report on 2.1.06 at 14:00, I want to get results from 1.1.06 14:00 to 2.1.06 14:00.
    How do i make a report with this selection?
    Because,if I choose date from 1.1.06 to 2.1.06 and
    hour 14:00 to 14:00, I will only get results on 1st and 2nd on 14:00.
    If I choose 1.1.06 and 2.1.06, 14:00 to 24:00, I won't get results for 2.1.06 from 0:00 to 14:00.
    Because all selections use AND to get results.
    How can I choose that system compare selections with OR?
    How can I get results for last 24 hours?
    Best regards,
    Uros

    Hi,
    define a structure in your query with two entries. First one with 1.1. and > 14:00 and second one with 2.2. and < 14:00. Perhaps you need to fill the structure by user exits.
    Hope it helps,
    Leo

Maybe you are looking for