Setting up scrolling for a component which has g2d features...

Hi, everyone, Im working on adding scrolling capablitlity to a component, as it currently exceeds the room I have given it. The problem is....
1) My scrollbar is always hidden under my g2d images... If I click on top of where the scroll bar should be, like crazy it appears piece by piece.
2) The scrollbar doesn't seem to be scrolling. BTW its on a regular panel (getContentPane()), is this a problem??
Well....here's the relevant code (the code for the component)
static class MyComponent extends JComponent {
JScrollBar scroll;
//~~~~~~~~~~~~~~Component Stuff~~~~~~~~~~~~~~~
          MyComponent() {
                    setBackground(Color.pink);
                    setBounds(0,0,500,500);
                    setBorder(BorderFactory.createLineBorder(Color.pink,10));
                    scroll = new JScrollBar(JScrollBar.VERTICAL,0,20,0,100);
                    scroll.setBounds(484,0,16,500);
                    scroll.setVisible(true);
                    add(scroll);
                    System.out.println(scroll.isEnabled() + "" + scroll.isVisible() + scroll.getBounds());
                    setVisible(true);
Then in the main() function, I add it to the panel like so...
MyComponent mc = new MyComponent();
joe.getContentPane().add(mc);
Thanks a lot,
Mark

Ok, I tried making the panel....but this has led to some strange(er) problems...
Here's some info on my panels
JPanel something....is the panel holding buttons, and under a flowlayout i think
ContentPane, i dont know what it holds...
JScrollPane pane...this is hidden from view, unless I set the something JPanel to be hidden.
Why cant i just see them all at the same time? I made sure the JPanel something had opque set to false, and now i can see the contentPane....but where are my g2d objects (located on "something")
thanks...

Similar Messages

  • Unable to set import lock for software component version

    Hi team,
    While importing object (.tpz) file into integration repository we are getting error message as below.
    ======
    Unable to set import lock for software component version <XXXX>-COMMON,1.0 of <XXX>.com because user <userid> is currently importing data to this component
    try again once user <userid> has finished importing data
    =======
    We checked with the user and found he is not doing any activity in fact he logged off. the developer wants to import and how do we terminate this import attement and proceed with new importing of the  same object
    We wan't to avoid cache refresh as this is production environment
    We already performed clear SLD data cache with in the IR not for whole.
    Thanks
    Vijay

    Hi Vijay,
        Thefollowing threads speak about the locking issues with the IR objects .Hope this will help you out in resolving the issue.
    http://help.sap.com/saphelp_erp2005/helpdata/EN/93/a3a74046033913e10000000a155106/content.htm
    Internal lock version management : Unable to copy objects
    Thanks,
    Ram.

  • I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    If the external drive can be seen at all in Disk Utility, follow the instructions for repair here.

  • How to Create a datatype for a storeprocedure which has got array ?

    Hi All,
    Please tell me how to create a datatype for a storeprocedure which has got an array structure ?
    Thanks,
    Sindhu.

    Hi Sindhu.
    You would have to use a JDBC Cursor for this but it's possible only Output parameters, not Input parameters.
    It's describle in a help link:
    Defining an EXECUTE Statement  http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7b72b2fde93673e10000000a114a6b/frameset.htm
    The following SQL data types are supported:
    INTEGER, BIT, TINYINT, SMALLINT, BIGINT, FLOAT, REAL, DOUBLE, NUMERIC, DECIMAL, CHAR, VARCHAR, STRING, LONGVARCHAR, DATE, TIME, TIMESTAMP, BINARY, VARBINARY, LONGVARBINARY, BLOB (input and output), CLOB (input and output), CURSOR (output; only in connection with the Oracle JDBC driver)
    I think you can execute your StoreProcedure many times depends of array occurs.
    Regards.
    Bruno.

  • How to remove payment block for AP invoices which has been cleared

    How to remove payment block for AP invoices which has been cleared
    Thanks
    Chiru

    Hi,
    Thanks for immediate response in fb02 is in deable mode
    mrbr unable to change
    please provide to to remove blocking code i will assign points
    Thnaks
    Chiru

  • How to set different icons for different windows which is seen in the top left corner?

    Hi
    How to set different icons for different windows which is seen in the top left corner? I know when building exe there is a option to edit icons or add icons and that icon is default for all the windows in the project. But i want different icons for different windows which is possible in VB.
    Is there any way to set icon by calling any dlls.
    Thanks & Regards
    Samuel J
    [email protected]

    Hi Sam,
    no problem. See the attachment.
    Mike
    Attachments:
    TestIcon_LV85.zip ‏44 KB

  • How to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?

    how to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?
    the message sked me to alter the quality of the DVD as the content was too large for the quality sellected.
    PLEASE HELP again,
    THANK YOU VERY MUCH
    MIchael

    Check the Advanced ➙ Project Information menu option to make sure the playing time of the entire project, movie plus menu is below the 120 minute limit.
    OT

  • Creating Alias for any application which has been integrated into portal

    Hi All,
    How to create Alias for any application which has been integrated into Portal?
    What is portal alias?
    What is URL alias?
    What is the difference between all the three?
    Thanks,
    Jyothi.
    Edited by: Venkata Naga Jyothi on Nov 23, 2011 10:18 AM

    Hi jyothi,
    1. For your first question Regarding How to create Alias for any application which has been integrated into Portal? Can you please be more clear here my question is why do you need to create alias for applications that are integrated into the portal.
    2. For your second and third questions find the below links
    http://help.sap.com/saphelp_nw70/helpdata/en/6e/8590f1d6d349c9adc34c6a8085189b/content.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10da65ed-615b-2d10-efbc-ed07a5385633?QuickLink=index&overridelayout=true
    Thanks,
    Rahul.
    Edited by: rahul.girmaji on Nov 23, 2011 6:29 PM

  • Jdev11g: Possibility to determine component which has the focus ?

    Hi,
    we have a customer request to display (internal) informations about the field and the corresponding VO which has the cursor focus at the moment (for problem analysis purpose)
    If the mouse cursor is in an input field and the user press a button or select a context menu he want to see this information e.g. in a popup.
    Is it possible to determine the component ID of the field which has the focus? (hopefully the input field does not loos the focus if user opens e.g. the context menue)
    If yes, whats the best way to find from the component ID to the corresponding VO?
    11g, ADF BC
    regards
    Peter

    Peter, sorry for the mix up.
    getContextComponent(..) is one of my private helper methods for a special case. I think you don't need it in your case. Check the UIComponent you get back from actionEvent.getSource() if it's the input field you are looking for, if not check its parent.
    In my method I walk down the component tree to get a special component I'm interested in.
    Heres the code:    private UIComponent getContextComponent(UIComponent aUI)
            try
                UIComponent ui3 = aUI.getParent().getParent();
                Map<String, Object> attr = ui3.getAttributes();
                String obj2 = (String) attr.get("_launchId");
                UIComponent uiXXXX = JSFUtils.findComponentInRoot((String) obj2);
                if (uiXXXX.getChildCount() > 0)
                    UIComponent uiC = uiXXXX.getChildren().get(0);
                    return uiC;
                else
                    return uiXXXX;
            catch (Exception e)
            return null;
        }Timo

  • I cannot add a Wi-Fi guest network. Gone to Utilities Airport Utilities and all get is an image/browser of my Airport Extreme. Looking for the browser which has the title Wireless but cannot find anywhere. I need help?

    I cannot add a Wi-Fi guest network. Gone to Utilities>Airport Utilities and all I get is an image/browser of my Airport Extreme. Looking for the browser window which has the title Wireless but cannot find anywhere. What am I doing wrong?

    Open AirPort Utility. The first screen looks something like this:
    Click on the AirPort Extreme and another screen will appear. Click Edit, then the window with the Wireless tab will appear.
    If you do not see these screens, you will need to start over and configure your AirPort again.

  • How to set parameter id for a field, which is in disable mode ?

    Hi,
    I Have to set parameter id for field ledger for transaction FAGLB03, which is in disable mode, i have to set it through program,please let me know how to set it.
    Thanks.

    Say i have 5 rows then
    for(int i=1;i<=5;i++){
    String Newpath = updatepath(eval("{{obj.libraryname.web_input_text_fieldname}}"),i)
    web.text_area(Newpath).setText("Text to be set")
    Below function is used to update my path
    public String updatepath(String path,int i) throws exception {
    String FPath = "";
    if(i<2) {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    } else {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+(i-1)+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    return Fpath
    anyother way to update path and set the fields in mutiple block is appreciable
    thanks
    Suresh

  • Trasaction code for invoices detail which has hit the WBS element

    Hi All
    Usually my users receive a list of assets which were capitalized from AUC account through Project system.
    Generally charges are posted to WBS element and then users capitalize assets using that WBS element through settlement.
    Users have been asked to give all the invoices detail which has hit the WBS element from which that particular assets have been capitalized. is there any transaction code to get the all invoices detail which has hit the WBS element from that particular assets.
    thank you

    If that is what you want then why are you using WBS element?
    You can directly create the asset on goods receipt via MM module and then the invoice will automatically go against that asset.
    If you still want to use the WBS element for capitalisation then you can use the WBS element statistically with a type 90 cost element posting and the sset will still be crteated when goods receipted/ invopice receipted

  • Adding redolog group for a database which has standby

    hi friends,
    Database: 10.2.0.3
    OS: windows 2003 server sp2
    i had a database (which has a standby) with the following redolog information
    SQL> select group#,member from v$logfile;
    GROUP# MEMBER
    3 I:\D001\ORACLE\ORADATA\INFA05UT\REDO03.LOG
    2 I:\D001\ORACLE\ORADATA\INFA05UT\REDO02.LOG
    1 I:\D001\ORACLE\ORADATA\INFA05UT\REDO01.LOG
    4 I:\D001\ORACLE\ORADATA\INFA05UT\SBREDO01.LOG
    5 I:\D001\ORACLE\ORADATA\INFA05UT\SBREDO02.LOG
    6 I:\D001\ORACLE\ORADATA\INFA05UT\SBREDO03.LOG
    by name SBREDO01.LOG i hope this is standby redo log file.
    the following is the output from v$standby_log view.
    SQL> select group#,status from v$standby_log;
    GROUP# STATUS
    4 UNASSIGNED
    5 UNASSIGNED
    6 UNASSIGNED
    the following is in standby database
    SQL> select * from v$log;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
    FIRST_CHANGE# FIRST_TIME
    1 1 8319 52428800 1 YES CLEARING_CURRENT
    99953082 05-JAN-09
    3 1 8318 52428800 1 YES CLEARING
    99947833 05-JAN-09
    2 1 8317 52428800 1 YES CLEARING
    99941239 05-JAN-09
    will standby redo log file shown in primary? now i want to add a redolog group to primary. how can i do this? plz explain
    thanks in advance

    Hi,
    AFAIK, You can add redo log file groups or members to the primary database without affecting the standby database and Enabling and disabling threads at the primary database has no effect on the standby database.
    Example :-
    ALTER DATABASE
    ADD LOGFILE GROUP 15 ('/oracle/dbs/log1d.rdo', '/oracle/dbs/log2d.rdo')
    SIZE 500K;
    The Standy performance only effects when you the Primary Failovers and standy DB had less Redo Logs, In that case the performance degrades. I suggest try to maintain Equal numbers of Online Redo Members on Both.
    - Pavan Kumar N

  • How to create hierarchy in BPC NW 7.0 for a child which has two parents ?

    I need to create a hierarchy in which some of the children have 2 parents (only some, not all of them). I tried using two columns - parenth1, parenth2. but it would not permit me since I cannot leave p2 blank for those children which have only one parent. If I try putting in p1 and p2 same for such children, then I get an error saying duplicate.
    Please advice.
    Tagz

    How do you expect this roll-up to work numerically? Do you want ACCOUNT1 to be counted twice at the Child level, or do you expect it to cancel out (like it would in a BW hierarchy)?
    I'm curious about the structure of your P&L that leads you to want this type of display. I have seen a lot of P&Ls and I've seen this requirement a few times, but usually you can meet it by recognizing that the P&L hierarchy and the reporting structure are separate. In this case we can often re-factor a single reporting structure with this type of roll-up into two or more separate P&L hierarchies, or we can use calculated accounts to provide for a more flexible reporting structure.
    In any case, the scenario you describe is not possible using a single account and a single hierarchy in BPC. You can do one of the following (I'm probably missing an option):
    1. Use two hierarchies or more hierarchies, to model alternative roll-ups of the base accounts into your different P&L formats.
    2. Use a single hierarchy and another account and a script logic to copy the value of ACCOUNT1 to the new account.
    3. Use a formula account to automatically copy values to a different spot in the existing hierarchy (will not roll-up)
    Cheers,
    Ethan

  • How to set a pageBreak for a panel which is scrolling vertically ?

    HI,
    my swing application has a panel which 'll scroll vertically dynamically according to the input.It has to get printed.I used panel.printAll(g) in the printable interface.But the problem is, it is printing only that is visible in the panel.The remaining image/data is not printing.Help me to set the page Break and print the whole panel.

    Quit double and triple posting a questions: [http://forums.sun.com/thread.jspa?threadID=5365422&tstart=0]
    Learn how to use the forum properly. There is an "edit" icon on the top right of you posting that allows yous to edit your question.
    I'm not going to bother to answser your questions until you bother to learn how to use the forum properly.

Maybe you are looking for

  • GL A/c Balances and GL Line Item balances are different

    Hi All, There is a GL balance difference in the TDS Payable accounts for the fiscal year 2008. The FBL3N, GL line item balance and the GL Balances in FAGLB03(FS10N) is showing the different. I believe that there should always be the same balances ref

  • Adapter activate

    Hi XI gurus     please help me in resolving this issue    I am getting this problem that " adapter is inactive" how to over come this     i check in adapter configuration i.e when creating communication channel there the adapter status is active . In

  • JFileChooser Approve_Button moves/"jumps"

    I have created a subclass of the JFileChooser , setting the my own images on the Save/Open & Cancel buttons. I do this through a changeproperty event. Everything works well until I click the File Name textfield - this causes the Save/Open button to m

  • Jdeveloper with webservices:

    Hi friends, web services working fine in local jdeveloper(10.1.3.3.0),but it's not woking fine in Application(R12). can you post your suggestion. Thanks & Regards. M.Antonyraj.

  • HT1414 I just upgraded to an iPhone 5S and it is going haywire whenever I use it. Is there a way to resolve this without returning the phone?

    I just upgraded to an iPhone 5S and it is going haywire whenever I use it. It will randomly open applications, send emails suddenly before I am finished writing them, and much more. Is there a way to resolve this without returning the phone?