How can we call a class file of one package for class file of another

How can we call a class file of one package from class file of another package and both packages exist in a same folder

How can we call a class file of one package from
class file of another package and both packages exist
in a same folder
Luckily they don't so it's really not a problem after all.

Similar Messages

  • How can I call a pop up window from a java class ?

    Hi,
    I am developing a web app. I would like to call a windoz pop up from a java class.
    How can i do that ?
    Thanks

    user504072 wrote:
    It was possible to do it in ASP .NET even from the server side with the method Page.ClientScript. What do you think what Page.ClientScript stands for?
    I's an encapsulation for the JavaScript code required and hides the separation between frontend and backend. There was a reason why so many developers stick to the MVC-pattern wich ist violated here.
    I did not know it is not possible to do the same thing in Java.I'ts not a task of the backend to layout the user interaction GUI.
    bye
    TPD

  • How can I call a public function in one component from another component?

    I have two components: Form and Confirmation.  Form is a Canvas and Confirmation is a TitleWindow.
    Form contains several controls and a submit button.  Confirmation contains an OK button.  When the user clicks the submit button, the Confirmation appears over the Form (Form is blurred).  When the user clicks the OK button on the Confirmation, I want to run a function on Form to set some default values in the controls.
    How can I address the function in the Form component from the Confirmation component so I can fire the function?
    Thanks!

    Here is the source
    CustomForm.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
    <![CDATA[
    public function callBack(): void {
    lblStatus.text = "Success";
    ]]>
    </mx:Script>
    <mx:Label id="lblStatus"/>
    <mx:Form x="50" y="50" verticalGap="15">
            <mx:FormHeading label="Send us comments" />
            <mx:FormItem label="Full Name:">
                <mx:TextInput id="fullName" />
            </mx:FormItem>
            <mx:FormItem label="Email:">
                <mx:TextInput id="email" />
            </mx:FormItem>
            <mx:FormItem label="Comments:">
                <mx:TextArea id="comments" />
            </mx:FormItem>
            <mx:FormItem>
                <mx:Button id="submit"
                    label="Submit" />
            </mx:FormItem>
         </mx:Form>
    </mx:Canvas>
    CustomTitle.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" width="200" height="80"
    showCloseButton="true" close="closeMe(event)"
    backgroundAlpha="1"
    color="#173553" backgroundColor="#EEEEEE"
    headerColors="#FFFFFF, #CBCCCC"
    borderColor="#666666" borderStyle="solid">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    public var callBack: Function = new Function();
    private function closeMe(event: Event): void {
    PopUpManager.removePopUp(this);
    callBack();
    ]]>
    </mx:Script>
    <mx:HBox width="100%" height="100%" horizontalAlign="center" verticalAlign="bottom">
    <mx:Button id="btnOK" label="OK" click="closeMe(event)" />
    </mx:HBox>
    </mx:TitleWindow>
    TitleWindowSample.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns="*"
    layout="absolute"
    width="100%" height="100%"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    private function init(): void {
    customForm.submit.addEventListener(MouseEvent.CLICK, onMouseClick);
    private function onMouseClick(event: MouseEvent): void {
    customForm.lblStatus.text = "";
    var customTitle: CustomTitle = new CustomTitle();
    customTitle.callBack = customForm.callBack;
    PopUpManager.addPopUp(customTitle, this);
    PopUpManager.centerPopUp(customTitle);
    ]]>
    </mx:Script>
    <mx:VBox
    width="100%" height="100%"
    verticalAlign="middle" horizontalAlign="center">
    <CustomForm id="customForm" width="500" height="300">
    </CustomForm>
    </mx:VBox>
    </mx:Application>

  • How can I add firefox to my note2 phone need for classes

    how can I add firfox to my note 2 phone

    Don't use sync. It will just screw everything up. I just had to restore by desktop FF bookmarks for the up-teenth-time because FF Android screwed them up again. Firefox makes all kinds of excuses as to why but I have had it.
    I removed FB Android from all my devices. I imported the bookmarks to Chrome and will use that on my Android devices from now on. Chrome bookmark sync is WAY better.
    I will still use FF on my desktop, because I still think its better than Chrome, but not on my Android devices.
    PS: I have a Note 2, 2 other Android devices and a laptop. FF sync does not WORK!

  • How can I include the Header Information....for a File to IDOC Scenario

    Hi,
    I made a File to IDOC Scenario with DEBMDM06 for MDM>XI>SAP R/3. The Header Information in the XML File which is at the XI end is Missing. For that reason In Tcode SXMB_MONI we are getting an Error that <b>"HEADER Information Missing: Message should Start with EDI_DC40"</b> i.e the Header Information.
      My Question is that whether we can do some changes in the Message mapping Step in the Integration Repository. I HardCoded the Few mandatory Fields that were there but it Again gave me the Same Error as above.
    Can you please Suggest some Solution for this. Since the data is Coming in from MDM part the Header information is not there but It actually Important as it has got all the Port Information.
      Kindly Inform me some Solutions.
    Thanks & Regards
    Somnath

    Hi Suraj,
      Thanks for ur Reply, but Since we are Doing a File to IDOC Scenario the IDOC DEBMDM is on the Right Side in Message Mapping and as U know it is Mandatory to Map an IDOC on the Right Part. EDI_DC40 is coming as it is there in the IDOC but our XML File Does not have that. If we Don't Map then it Becomes RED, which is an Error.
      Furthermore in the Receiver Agreement we have put the Necessary Details such as Sender Service and Receiver Service along with the IDOC Communication Channels.
      Can U give as a Better Insight on this Note how to check the Header Part as it is mandatory to MAP.We also tried to HARDCODE it by putting those Values and Mapping them to a Constant but it is Giving the Same Error.
    Thanks and Regards
    Somnath

  • How can i set up different libraries on one PC for myself, daughter, and wife if we all have our own accounts?

    I currently have a wife and daughter that use ipods and I just bought an iphone.  Is it possible to have three seperate music libraries on one PC if we all have seperate itunes accounts? and if so how do I accomplish this?  I tried setting up different user accounts but the same single library keeps coming up.  Thank you in advance for any help that you can provide.

    how to share music between different accounts on a single computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • How can I be sure I have the best package for my f...

    Hi - I currently have
    total broadband option 3, which costs    £26.99 per month
    unlimited anytime calls which costs        £19.28 per month
    total monthly fixed costs                      £46.27 per month
    I made 68 free calls, duration 7 hrs 59 mins
    I have no idea how much internet usage was and don't know how to find that out
    This seems an expensive way to get free calls and broadband - and on top of that I have sky TV and vodafone mobile costs to pay each month.
    Is there a better configuration or plan that I should consider?
    Thanks
    Bill

    For web usage log in to your BT account then under the BROADBAND TAB look for broadband usage
    The monitor is accurate for me though a lot of user don't seem to have it working yet
    Are you still in contract for option 3 if not threaten to leave by requesting a migration authority code MAC and you will get a better price to stay you do not have to use the MAC if they do give you one as it expires after 30 days if not used
    If any post helps tick the star box on the left
    Just cause Im paranoid dont mean they are not out to get me

  • How can you merge multiple daily backups into one backup for that day?

    Ok, so I had some trouble getting Time Machine to backup some new files and finally had a force a "deep traversal." But now I have 20+ backups for today before I did the "deep traversal" because I was selecting "Back Up Now" to get it to backup up the new files.
    Because it is annoying to have so many backups for one day, which differ only by incoming and outgoing emails, I am wanting to combine all the backups for today into a single backup for today. Is there any way to do this?
    Thanks!

    BibbleBobble wrote:
    Because it is annoying to have so many backups for one day, which differ only by incoming and outgoing emails, I am wanting to combine all the backups for today into a single backup for today. Is there any way to do this?
    Yes. Wait 24 hours, and Time Machine will do it for you. It keeps all backups for 24 hours, but only one (the first of the day) for a month. Thereafter, it keeps one per week, deleting the others, as long as there's room. See #12 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

  • Can I (or How can I) chain two Time Capsules on one network for two Macs?

    Currently we have one dual-band TC connected to our cable modem. Mac 1 backs up to it. I also have an original TC (one-band) that I would set to 5GHz dedicated for Mac 2.
    Would this plan work and provide Backup and Internet to both machines?
    Cable Modem --->TC1--->TC2
    Mac 1 would connect to TC1 for Time Machine function and Internet Access.
    Mac 2 would connect to TC2 for Time Machine function and Internet Access.
    (---> = Ethernet cable)

    No changes needed on TC1, but you may need to use AirPort Utility - Manual Setup to note a few of the settings on TC1, such as the exact type of security that it is using now since that information will be used to configure TC2.
    Connect an ethernet cable from one of the LAN <-> ports on TC1 to the WAN port (circle icon) on TC2*. Open AirPort Utility - Manual Setup and TC2 should appear. If not, you'll need to "hard reset" TC2 by holding in the reset button until the amber light begins to blink more quickly, hold another few seconds when you see this and then release
    Click the Time Capsule tab below the icons to name your device, assign a device password and set Time Zone settings
    Click the Wireless tab
    Wireless Mode = Create a wireless network
    Wireless Network Name = Same name as TC1 network**
    No check mark needed next to Allow this network to be extended unless you plan to add more wireless device to extend the network
    Radio Mode = 802.11n only 5 GHz
    Channel = Automatic
    Wireless Security = Same setting as TC1
    Wireless Password = Same password as TC1
    Confirm Password
    Click the Internet icon
    Connect Using = Ethernet
    Connection Sharing = Off (Bridge Mode)
    Update to save settings and let TC2 restart. Then power down the entire network. Power up the modem first, then TC1, then TC2, then each device one at a time. Allow a moment or two for each device to fully power up before you start the next.
    *When the TC is in Bridge Mode, it really makes no difference which port you use to connect, as they all behave the same. I use the WAN port as a habit for connections like this so that I know at a glance where the connection is coming from. But, you could connect to one of the LAN ports on TC2 if you prefer.
    **Assign a different name than TC1 if you want to log on separately to the network that TC2 provides
    Be sure to setup Mac2 to backup to TC2 for Time Machine and you should be all set.

  • How can I transfer my iTunes library from one comptuer to another in my houser

    how can i transfer my itunes library from one computer in my house to another in my house?

    Type "move itunes library" into the google search bar

  • How can i call a DLL file from labview?

    Iam using a sensoray 2601 module.It is given as DLL file(S2600.DLL).How can i call this function from LabVIEW?
    Please Mark the solution as accepted if your problem is solved and donate kudoes

    As far as I can tell problems might occur with the call library function node if the the DLL from visual basic is actually an ActiveX dll if that is the case it seems calling the dll by using the Invoke node is the way to go.
    Have a look at this 
    /sletten

  • How can I call a variable from another class

    hi
    If I have two classes : one and two
    In class two I have a variable called : action
    In class one I want to check what is the value of action.
    How can I call action?

    Thank you scorbett
    what you told me worked fine, but my problem is that MyClass2 is an application by itself that I don't want to be executed.
    Creating myClass2 as in the following:
    MyClass2 myClass2 = new MyClass2();
    [/code]
    executes myClass2.
    Can I prevent the exectuion of MyClass2, or is there another way to call the variable (action)?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can we call a jar files(seperate projects jars) to each link of the tre

    how can we call a jar OR WAR files(seperate projects jars OR War) to each link of the tree.

    i want have home page that have this menu
    ========================
    -- Sale
    --- Customer
    --- Reader
    -- Energy
    --- Calc
    -- Service
    --- Chnage Name
    --- Change Code
    =======================
    For example
    --- Change Name
    ---- Page Reister
    ---- Page Confirm
    ---- Page Anoc
    ---- Page Save
    ======================
    i want user to access to every page From Each Case(Change Name) .
    i create for change name one project in my fushion web app and for other case
    How to I Can Call Page register From change name in Menu of The home page ????
    Edited by: user13151366 on Feb 4, 2013 4:44 AM

  • How can I call a nonstatic class

    Hello All,
    I've wrote a simple bean for my testcase that count a value (e.g. site access):
    public class Bean1 {
    private int accessCount = 1;
    public int getAccessCount() {
    return (accessCount++);
    If I call the bean with a jsp-site, it works fine with different scope. e.g. session and application.
    With session scope different browser count different. With application scope different bowser count together. Thats the normal attitude.
    My jsp code:
    <jsp:useBean id="counter" class="ml.view.Bean1" scope="session" />
    <jsp:getProperty name="counter" property="accessCount" />
    This don't work with a static bean (normal too), but I can only call a static class in my UIX site.
    I call the bean from uix with the invoke element. Is that correct? How can I call a nonstatic class with a special scope? Which other solution ist possible?
    My uix code:
    <invoke method="getAccessCount" result="${uix.eventResult.getAccessCount}" instance="${sessionScope.myBean.getAccessCount}" exception="${uix.eventResult.error}" javaType="ml.view.myBean"/>
    Thank you for any solution!
    The error messages are:
    java.lang.NullPointerException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java)
    at oracle.cabo.servlet.event.InvokeEventHandler._invoke(Unknown Source)
    at
    and so forth...

    false in my uix code example: javaType="ml.view.myBean"
    correct: javaType="ml.view.Bean1"
    Sorry :-) that was only an error in my post not in the really example.

  • How can i call this file path into my bsp-html  to display the images?

    Hi
    I have a file path for an image like c:/test_logo.bmp.
    How can i call this file path into my bsp-html  to display the images?
    moosa

    Try this...
    Can i have  sample code in BSP-HTML to display images?

Maybe you are looking for

  • I can't restore my system to its factory condition.

    hello all i have Pavilion DV6 laptop, my HardDisk is dmaged and i can't boot anymore (because of the physical BadSectors) , so ibought a new HardDisk ( 1TB ) when i plug my old hard disk into another PC , i can see the 3 partion's 1 : C:\[system] 2 :

  • Set BAPITID in JCO.Structure

    hello all, i'm using JCO to monitoring CCMS architecture; i need to read properties of each MTE of CCMS. my problem is: i have a TID set of value for an MTE and i want to get results from the bapi: BAPI_SYSTEM_MTE_GETPERFCURVAL my code: nodes = table

  • How to add users to group which is present in another AD domain?

    Hi, Using JNDI how to add user as a member of group which is present in another AD domain? For example: In AD forest test.com their are two domain a.test.com and b.test.com. Group is present in a.test.com and I want to add user present in b.test.com

  • Unable to select folders for Creative Centrale sync

    I have a Zen X-Fi wireless LAN MP3 player, bought yesterday. I keep the files I want to sync to my player in the folders Shared Music, Shared Videos, and Shared Pictures. I keep files waiting to be edited/finished in My Music, My Pictures, and My Vid

  • Updating Snow Leopard 10.6.8 to OSX Mavericks Server?

    Is there an easy way to update a 4 gb Mac Mini Dual Intel under 10.6.8 Server to OSX 10.9 Mavericks? I'd rather NOT have to back up the entire HD, wipe it and try to install a whole new system onto it. But I know the server softwarde doesn't allow mu