How to access constructor that is not public from another package

Hi,
We have a class that has a constructor in package se.company.internal that looks like:
DraHw(){
Then from a HwTest class ( packge se.company.function.hw) we want to access this class but we cannot make the constructor public.
Any ideas on how we can create an instance of DraHw when testing without making constructor public?
br,
//mike

> we want
However do you in fact actually need to?  And if you do that are you breaking the design of the other app?  Obviously there is in fact a way to create the class so perhaps you should study that first to insure that there is not some designed way to do what you want.
> How would that 1:1 one class look like?
I REALLY suggest that you look at the original design again.

Similar Messages

  • How to access a function of an object from another object

    Hi all, here's my problem, I have three classes;
    1)Class human
    2)Class animal
    3)Class environment
    class environment
      public static void main(String[] args)
        human luffy = new human();
        animal chpper = new animal();
    class human
       // here I wanna access a method in chpper,
       // what's the best way to day that?
       // and is it even possible with this structure??
    }Thanks
    Roronoa Zoro
    Edited by: Roronoa.Zoro on Nov 19, 2009 6:55 PM
    Edited by: Roronoa.Zoro on Nov 19, 2009 6:55 PM
    Edited by: Roronoa.Zoro on Nov 19, 2009 6:56 PM

    Alright guyz, I guess I'm super stupid but please stay with me.
    Here's the whole problem; I'm writing an application that draws rectangles, so this application is a JPanel that has a layout which has two JPanels, first JPanel contains the JButtons and an ActionPerformed function, and the second JPanel has the canvas that I should draw on.
    Here's the whole code;
    public class animationAll extends JPanel
         public animationAll()
              this.setLayout(new BorderLayout());
                     this.add(new animationButtons(), BorderLayout.WEST);
                     this.add(new animationCanvas(), BorderLayout.CENTER);
    public class animationButtons extends JPanel implements ActionListener
      JButton btnCreate = new JButton("Create");
      public animationButtons()
        JButton btnCreate= new JButton("Create");
        btnCreate.addActionListener(this);
        public void actionPerformed(ActionEvent e)
           if(e.getSource() == btnCreate)
                 //here I want to call the draw method in animationCanvas.
    } Thank you in advance, and please bare with me on this one
    Roronoa Zoro

  • HT204053 I have music that was not purchased from app store that has somehow ended up in I cloud. How do I get it back from I cloud to my I pod?

    I have music that was not purchased from I tunes and has somehow ended up on I cloud I think! How do I get this back to my I phone?

    Import the music into your iTunes library and sync like any other music.

  • How to buy apps that are not availble in my region?

    How to buy apps that are not availble in my region?

    No.
    you can ONLY use the itunes store of your country of residence (proven by the issuing country of your credit card and the valid billing address of that card) and ONLY while you are physically located inside the borders of that country.

  • How to access an attribute(this is referencing to another class) in a class

    Dear Gurus,
    I have to read an attribute of a class and that attributes type another class.
    I have intantiated the class and my question is how to read the attribute. I know I can not dirrectly read the attribute since this is another class. I think I have to first reference the attribute right? Please advise me.
    My code looks like below:
    data: lo_fpm                                 type ref to if_fpm.
    data: lo_msg_mgr                        type ref to if_fpm_message_manager.
    data: lo_component_manager    type ref to cl_fpm_component_manager.
    lo_fpm = cl_fpm_factory=>get_instance( ).    " cl_fpm_factory is a class which has a static method get_instance
    lo_msg_mgr = lo_fpm->mo_message_manager.
    lo_component_manager = lo_fpm->mo_component_manager.
    The above statement is giving syntax error. I do not know why.
    The basic difference b/n the two methods is if_fpm~mo_message_manager    type ref to if_fpm_message_manager    and
    mo_component_manager     type ref to cl_fpm_component_manager.
    Any help would be appreciated.
    Thanks,
    GSM

    Hello
    I cannot test the following coding because I do not get the singleton instance yet it should work:
    *& Report  ZUS_SDN_CL_FPM_FACTORY
    *& Thread: How to access an attribute(this is referencing to another class) in a class
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1398429"></a>
    REPORT  zus_sdn_cl_fpm_factory.
    DATA: go_fpm TYPE REF TO cl_fpm.  " class implements if_fpm.
    DATA: go_msg_mgr TYPE REF TO if_fpm_message_manager.
    DATA: go_component_manager TYPE REF TO cl_fpm_component_manager.
    START-OF-SELECTION.
      BREAK-POINT.
      go_fpm ?= cl_fpm_factory=>get_instance( ). " cl_fpm_factory is a class which has a static method get_instance
      CHECK ( go_fpm IS BOUND ).
      go_msg_mgr           = go_fpm->mo_message_manager.
      go_component_manager = go_fpm->mo_component_manager.
    END-OF-SELECTION.
    Regards
      Uwe

  • HT201269 I don't want restore everything on my old phone just my pictures/videos...how do I do that without erasing anything from my new phone?

    I don't want restore everything on my old phone just my pictures/videos...how do I do that without erasing anything from my new phone?

    So, I went to Target and upgraded from a 4 to a 4S and the woman there told me she transferred over all of my info off the old phone (which was not true, I'm missing my videos).  So, I've been using my new 4S for about 7 months now and I don't want to erase the information off of it but on my iCloud I still have listed my iPhone4 with 8gigs of information that I cannot access and it's very frustrating.  You would think I'd be able to look at all the data and get what I want but I can't...or can I?  What are my options? 
    THANKS SO MUCH!

  • Can I transfer music that is only on my iPad that WAS NOT purchased from iTunes to my iTunes account on new computer?

    I've had my iPad 2 for about four years now and I can tell that the interface is being very slow and that the screen does not always react when I tap on it, meaning I may have to get a new one sooner or later.
    My biggest problem is that on my iPad, I have all of the Beatles' CDs, some of which are from my own personal copies and some are from my former local public library. Ever Since I copied all these CDs onto my iPad, I've moved to a new state and got a new laptop, thus starting with an iTunes account that only has music I purchased from the iTunes Store on it, and no Beatles. The local libraries where I live now do not offer any CDs for borrowing, so I have no way of getting some of the CDs I don't own for free. I really do not want to purchase a bunch of albums from iTunes, as well.
    Is there any way to get the Beatles music that is only on my iPad that was not purchased from iTunes onto my iTunes account without removing it from my iPad? Thanks for your help!

    Then the latter part of my first reply which is repeated here:
    - If you follow these instructions the iPod will be updated when the instructions say to restore.
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • G4 that will not boot from any disc EXCEPT the Apple Hardware Test CD

    We have a DP 1ghz Quicksilver PowerMac G4 that will not boot from any disc EXCEPT the Apple Hardware Test CD that came with the machine.
    We were in the process of installing 10.4 Tiger before placing it for sale.
    The Mac was originally OSX Server 10.1 that we later converted to a worksation running 10.3 Panther.
    It has 1 GB of memory, 80GB hardrive, 250MB Zip Drive and a Radeon 7500 video card.
    Since this machine only has a CD-R drive and not a DVD-R, we installed Tiger using another Mac via Target Disk Mode. The installation process went well, but when I tried to reboot I got a Kernel Panic right after startup screen with the grey Apple logo.
    On some reboots we get to the blue startup screen, others it stops at the grey Apple logo, others a black box like the a Kernel Panic - but with no text. Twice it went directly into Open Firmware.
    We have done the following during our troubleshooting:
    - Reseat RAM, Video Card, Hard Drive, Zip & CD-R connections
    - Remove RAM 1 stick at a time and reboot
    - Replace RAM with RAM from another working Quicksilver
    - Replace Video Card with one from another working Quicksilver
    - Zap PRAM
    - Reset CUDA switch
    - Unplug the MAC and remove everything (RAM, Battery, etc) for 30 minutes and try to reboot
    - Tried booting from the Macintosh Server G4 Software Restore CD
    - Tried booting from Mac OS X Server CD
    - Tried booting from AppleCare Protection Plan CD with TechTool
    - Tried booting from Diskwarrior CD
    - Tried booting from an external FireWire drive with a disk image of Tiger OS Install
    - Tried booting with the hard drive disconnected
    The Mac WILL boot from the Apple Hardware Test CD and will pass ALL of the extended tests.

    Conventional wisdom says that any Mac that will not boot up from a System/Install CD OS 9 or an Install CD Mac OS X, has a Hardware problem.
    The diagnostic CD is a red herring because it uses a very primitive method of reading the CD, and so does not properly represent the machines general ability to read CDs.
    I would look at the CD drive cables, etc, and see if another drive gives different results.
    You have not mentioned using the Startup Manager (option key at Startup) to do any checking:
    HT1310- Startup Manager: How to select a startup volume

  • Please, help!!!!! How can i delete Angry birds not only from my device (iPhone 4), but from my iTunes account,too? I am a new user.

    I am a new user of iPhone 4. I have problems with "Angry birds". I heard that i can fix the problem by deleting the application. So, the question is : How can i delete the game not only from my device, but from my iTunes account,too? Please, help!!!

    You can just tap and hold any icon to put into Edit mode.  There you can delete.
    Or you can just tell iTunes not to sync it.
    To remove from iTunes just click on it in list and press delete.

  • Don't work telnet client from ssh session ("%Connections to that host not permitted from this terminal") in 151-4M.

    I changed IOS to 15.1.4M in the ISR router.
    If I connect to console by ssh and  I type  "telnet X.X.X.X YY"  in console then It appear the strange message "%Connections to that host not permitted from this terminal".
    After I  downgraded to  ios 12.4.24 , then it's all work fine .
    configuration line vty :
    line vty 0 4
    transport input ssh
    transport output all
    What it's the problem in IOS 15.1.4M?

    Thank you for answer.
    I've created the access-list :  access-list 20 permit 192.168.200.0 0.0.0.255
    line vty 0 4
    access-class 20 out
    transport input ssh
    transport output all
    IF I try "telnet 192.168.200.2 " - It's working
    But IF I try "ssh 192.168.200.2 " - It isn't working, appear "%  Connections to that host not permitted from this terminal" 
    IF I try from router with IOS  12.4.23 - It's working fine .

  • HT1711 how do i get my music not purchased from the itunes store onto my iphone? ie music from CDs etc..

    how do i get my music not purchased from the itunes store onto my iphone? ie music from CDs etc..
    I am not able to get this onto my phone. Only music I bought from the itunes store goes to my phone..

    Hello michael.suffoletto
    Check out the article below on manually managing your music by dragging and dropping the music that you want to your iPhone within iTunes.
    Managing content manually on iPhone, iPad, and iPod
    https://support.apple.com/kb/ht1535
    Regards,
    -Norm G.

  • How to access the java stack table "xi_af_msg" from the ABAP engine.

    Hello Guys,
    How to access the java stack table "xi_af_msg" from the ABAP engine.
    I need to access this table.

    These 3 are the tables that are for XI Adapter in ABAP Stack.
    SWFRXICNT
    SWFRXIHDR
    SWFRXIPRC
    You can also try the following tables.
    SXMSAEADPMOD                   XI: Adapter and Module Information
    SXMSAEADPMODCHN                XI: Adapter Module Chains
    SXMSAEAGG                      XI: Adapter Runtime Data (Aggregated)
    SXMSAERAW                      XI: Adapter Runtime Data (Raw Data)
    Cheers,
    Sarath.
    Award if helpful.

  • In v.11, how can I capture video but not audio from a camera?

    In v.11, how can I capture video but not audio from a camera?

    Rodney
    I see what you mean....Premiere Elements 10 appears to be the last version that had options for the user to select Capture Video and/or Audio in the its Capture Window.
    If you are doing DV data capture firewire into the Premiere Elements 11 Capture Windows and want a final file without audio and you cannot do this at the camera level, then consider....
    1. Do the Capture "to the Timeline" - video linked to audio result on the project's Video Track 1
    a. Right click the Timeline DV AVl and select Delete Audio and then edit accordingly.
    or
    b. Import the DV AVI but, when you go to export it, in the export settings, remove the check mark next to Audio so that the export contains only the video portion.
    Publish+Share/Computer/AVI with Presets = DV NTSC Standard
    Please let us know if any of that worked for you.
    Thank you.
    ATR

  • How to  access the ORACLE APPS table structures from SAP

    Hi Experts,
        How to  access the ORACLE APPS table structures from SAP? Is it possible from SAP?
    Thanks in advance
    Thomas

    Hi Silviya,
    you can access this database using a technique called DB Multiconnect - sometimes written as multi-connect.
    Search the SAP documentation and notes for this term and you will find how to do it.
    Essentially you configure the remote database connection via transaction DBCON.
    If your SAP system is not running on Oracle you will need to install the db-specific kernel files for Oracle along with the Oracel db client software - SQL*Net.
    Then you can access the Oracle database from ABAP using native-SQL. It works a treat!
    Cheers
    Graham Robbo

  • How do you open a Numbers file sent from another Mac user with same operating system, i get a pop up that says I'm missing an index.hml file??? HELP PLEASE

    how do you open a Numbers file sent from another Mac user with same operating system, i get a pop up that says I'm missing an index.hml file??? HELP PLEASE

    The operating system may be the same but the Numbers applications are likely different.  You need to get the apps in sync.  Unfortunately, the Numbers (and Pages as well) saga is pretty confusing (and frustrating).  Here's some info from the iWork resident version expert (PeterBreis0807):
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs.

Maybe you are looking for

  • Capturing using DV device

    So I have a digital converter attached to my MAC with firewire that I run my camera through to capture video. Before I was capturing to imovie, then transfering to FCE. As noted by Tom, that was a poor way to get video into FCE. So I read the section

  • LDAP User sync problem

    Hi, I have configured LDAP on NetWeaver WebAs ABAP using LDAP transaction. It is working fine and I am able to sync users from Microsoft AD to SAP Database. But the problem is It is also synchronizing the terminated users from the company, which are

  • Roundig off  the amounts in GL accounts

    Dear All, After posting the invoice in  the system , i found that system credit the amount 1500 Rs to GL 455320 and Credit 1589.56 Rs to 327225. Now i want to know why these amounts ar e not equal as there is difference of around 44 Paise. Is there a

  • Can I design a digital magazine with CS2?

    I am for the moment using InDesign CS2 and I need to design a digital magazine.  It will be uploaded onto the App Store to be viewed on tablets etc.  I have seen many videos on how it's done on newer versions,  but I need to know if it can be done on

  • My Skype id is hacked, Urgent Help Please?

    My Skype id is hacked. Hacker is contacting all my ids. he have changed email id too. please let me know how can i block my Skype id and get it back. Also whats the contact number of Skype customer support so that I can call to them? Regret is unprof