JScrollPane: Contents not visible

I am having trouble using JScrollPane. My situation is this ...
I have an abstract class (PanelSupport) that extends JPanel and a class (TaskPane) that extends this abstract class. I want to add the class TaskPane to a JScrollPane but when I do this the scroll pane appears empty.
I previously had the TaskPane being displayed without a scroll pane and it worked a treat but as soon as I introduce the JScollPane and insert the TaskPane into that I see nothing in the scroll pane. Any clues as to why?

I am having trouble using JScrollPane. My situation
is this ...
I have an abstract class (PanelSupport) that extends
JPanel and a class (TaskPane) that extends this
abstract class. I want to add the class TaskPane to a
JScrollPane but when I do this the scroll pane appears
empty.
I previously had the TaskPane being displayed without
a scroll pane and it worked a treat but as soon as I
introduce the JScollPane and insert the TaskPane into
that I see nothing in the scroll pane. Any clues as
to why?Just a stab in the dark but if you are not already doing this, try:
yourscrollpane.getViewport().add(yourpanel);

Similar Messages

  • How to know if a scrollbar is been drawn if the JScrollPane is not visible.

    I have a JTabbedPane with one JPanel in each tab. Each of these panels contains one JLabel with a JTextBox on the top and under it the rest is filled with a JScrollPane containing a JTable. I am using a GridBagLayout.
    Now, the requirement is that the JTextBox must have the same length as the content of the JScrollPane; it means that if the JScrollPane has a vertical scroll, the JText has to be shorter on the right side by whatever the scroll width is, but if there's no vertical scroll then the JTextBox must be extended to the top of the right side.
    Now, this that looks so simple is becoming a nightmare...
    The main problem here is that this check to look if the JScrollPane has a scroll or not is done in tabs that are not visible, so i cannot use just a simple isVerticalScrollVisible() because the answer is always NO. I have been trying to catch all the events i could think may help but no luck and sometimes a refresh in one of the tabs produces the JTextField in another tab gets a wrong width.
    One posible approach is the length of the total rows of the JTable, multiply it by the row height and compare it with... with what because the scroll is not visible and the heigh is 0.
    Any ideas? Any one knows how can i know if the the silly scrollbar is visible or not in a non visible tab?
    Thanks in advance.

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

  • Email contents not visible using Yahoo mail, Windows 7 pro, FF3.6; email content fine in IE

    New laptop with Windows 7 pro; loaded FF....worked fine for a couple weeks....then, contents in email no longer visible-----just blank box where text would normally appear. Only known changes were auto updates to adobe and auto updates to Windows. Zonealarm security in place since beginning, no changes since installation. When using IE, email is visible.
    Just uninstalled Firefox and reinstalled. Same result....emails still not visible.
    Appreciate any suggestions.....I hate using IE.

    When you send mail the field you mention is used to populate the "ReplyTo: fild in the mail header. Otherwise it has no purpose and setting it to nothing will also work.
    Yahoo are obviously checking that field as you send mail. that is points to a valid address, and I have a sneaking suspicion that is might be required to point to your yahoo mail account.
    Historically the"Nigerian" type scam emails used a replyto address completely different from the one used to send the mail. So even if the sending account was closed down they still got the replies. The mail quite commonly originated in Yahoo and replied to Hotmail accounts. So I guess they have a check to try and discourage that legitimate, but undesirable from their perspective, use.

  • Web Page Content not Visible

    Hi,
    I'm having a problem, I think is isolated to Internet
    Explorer 6.0. A few people using this version of the browser have
    reported that the contents of my main page are not visible unless
    you scroll down quite a ways. Any ideas what could be causing this?
    MyAfricanDiaspora.com

    On Wed, 19 Sep 2007 14:23:31 +0000 (UTC), "dreamnew"
    <[email protected]> wrote:
    >Hi,
    >
    > I'm having a problem, I think is isolated to Internet
    Explorer 6.0. A few
    >people using this version of the browser have reported
    that the contents of my
    >main page are not visible unless you scroll down quite a
    ways. Any ideas what
    >could be causing this?
    >
    http://www.myafricandiaspora.com
    138 apparent validation errors - but that will reduce once
    you start
    fixing the problems.
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.myafricandiaspora.com%2F&charset=%28det ect+automatically%29&doctype=Inline&ss=1&group=0&verbose=1#line-378
    ~Malcolm N....
    ~

  • Portal Content not visible

    Hi All,
    We are working on EP 7.0 SP9 using Internet Explorer 6.0 SP2 browser, but still the portal content directory in the portal is not visible. It shows javascript error in the status bar. The page gets loaded but with javascript errors.I am logging into portal with super admin role, but the same problem is coming. Even in Mozilla browser, the same error is displayed. I have even added the portal URL in trusted site.
    Useful answer will be awarded suitably.
    Regards,
    Udit

    Hi Leandro,
    The javascript error that is coming is:
    Line:165
    Char:4
    Error: Object required
    Code:0
    URL: http://<domain name>:<port no>/irj/portal/prtroot/com.sap.portal.appdesigner.framework.loading?loadingStr=Loading...&scroll=no&contentUrl=%2firj%2fservlet%2fprt%2fportal%2fprtroot%2fpcd!3aportal_content!2fadministrator!2fsuper_admin!2fsuper_admin_role!2fcom.sap.portal.content_administration!2fcom.sap.portal.content_admin_ws!2fcom.sap.portal.portal_content!2fcom.sap.portal.contentCatalogTreeContent
    Plz guide me.

  • Portal content not visible after installation nw2004s

    Hello
    Portal Content folders not visible after logon to EP after installation
    using the url  http://172.22.218.120:50400/irj
    logon is using Administrator id.
    top level navigation is displayed. but no folder hierarchy in PCD.
    Please help
    regards
    John

    Hello John,
    Used the host name instead of the ip address in the url http://<host name>:50400/irj/portal.
    Maintain the host name in the host file of the OS.
    ip address  host name.
    Regards
    Deb
    [Reward Points for helpful answers]

  • Content not visible while using DVBClassLoader

    Hi, we have a problem with DVBClassLoader. We need to download several *.class files from WWW server in our application. The file is downloaded, but the problem is that the content is not visible for main Xlet class. Can someone help us please???
    try {
                   classPath[0] = new java.net.URL("file:" + sBuffer.toString());
                   System.out.println("URL is " + classPath[0]);
                   classPath[1] = new java.net.URL("http://XXX.YYY.146.233/");
              } catch (MalformedURLException e) {
              cl = DVBClassLoader.newInstance(classPath);
              try {
                   cl.findClass("SecondClass");
                   System.out.println("SecondClass read");
              } catch (ClassNotFoundException e) {
              secondClass = new SecondClass(context, scene, mainContainer, telo);
              secondClass.display(path1);

    I haven't tried it, but it looks to me like you need to provide the parent ClassLoader in order to handle delegation to the DVBClassLoader.
    intstead of this: DVBClassLoader.newInstance(classPath);
    use: DVBClassLoader.newInstance(classPath, getClass().getClassLoader());

  • ESS Content not visible in Content Administration

    I've installed SAP Netweaver 2004s Java + Portal 7.00 SP7.
    I also deployed ESS, MSS and PCUI_GP. The content of ESS is not visible when I look in de content administration. I'd expected it under "Portal Content --> Content provided by SAP --> End user content".
    Noting strange hapened during deployment. I'm using user Administrator (UME = Java database).
    Any sugestions?

    Hi wilbert
    Import the Portal content Buisness Package for ESS/MSS
    if u r working with ERP2004 download it from following link.
    ESS:-
    https://smpdl.sap-ag.de/~swdc/002007974700000167412004D/BPERP4ESS0_0-10003146.zip?_ACTION=DL_DIRECT
    MSS:-
    https://smpdl.sap-ag.de/~swdc/002007974700000246072005D/BP_ERP4MSS0_2-10002991.zip?_ACTION=DL_DIRECT
    unzip the zip file import it into portal.
    regards,
    kaushal

  • Mobil email content not visible

    Since a July 5th security update to Firefox an email that I receive daily from a vendor, who uses his mobil phone to send a daily price quote, is not visible. The header to the email is visible but not the content. However, if I start a "reply" to the email - then I can see the content. I have cleared cache and history and done a reset of Firefox without success. The email is viewable on Explorer and Chrome but not Firefox. It is the only email of hundreds that cannot be seen after July 5th.

    My speculation would be that something changed in the underlying HTML of the messages themselves, and/or how they are rendered by your email site, that causes Firefox to view the July 3+ messages differently.

  • USB disk contents not visible

    Hi -
    I connected a 2TB external HDD (AC powered 3.5") via the USB port to the Airport extreme (5th gen.).. . The external HDD is OSX extended/journaled and has 800GB of stuff on it, but these files are not visible through the airport extreme network.  I can read and write NEW files to this HDD, but cannot access any extisting/previous files...
    Have not tried a powered USB hub yet - as my HDD is self-powered and SHOULD not require any additional power.
    Any thoughts?  Thanks!

    I have not tried a powered USB hub yet - as my HDD is self-powered and SHOULD not require any additional power.
    I have 3 different hard drives, all with own separate power supplies, so they should work.
    But none of them will work with AirPort Extreme unless I use a powered USB hub.
    I cannnot say that this will help you, but it is worth a try if you have exhausted all other possibilities.

  • Page oversized entire contents not visible on hvga

    Site displayed in full and not scrolling or zooming out on hvga screen making other parts not visible
    Note adult site

    Problem can be found within the SEND method of the CL_ALERT_MANAGER class. In this method it executes the following code:
        CALL METHOD alert_cat_man->get_short_text
          EXPORTING
            ip_cat       = l_cat
            ii_container = li_container
            ip_langu     = l_langu
          IMPORTING
            ep_text      = ep_textstring.
    li_container has an attribute mt_elements which contains the values of the containers of the alert category, the recipients and the logical system.
    ep_textstring is an ordinary string.
    I have an alert category which has 1 container, a char160 field. I want to put a char140 field in it:
    <i>XIDCLNT050 : Testtype on 20070419 / 103154 interval of 30 min, less than 1 received!</i>
    This char140 field is put in the &ERROR_TEXT& container.
    The ep_textstring is the finalized string (as defined in transaction ALRTCATDEF).
    and in my case should look like:
    <i>Alert IDOC_MONI: &ERROR_TEXT&</i>
    If we put in the actual value of &ERROR_TEXT& we get:
    <i>Alert IDOC_MONI: XIDCLNT050 : Testtype on 20070419 / 103154 interval of 30 min, less than 1 received!</i>.
    However the output of ep_textstring looks like:
    <i>Alert IDOC_MONI: XIDCLNT050 : TESTTYPE ON 20070419 / 103154 INTERVAL OF 30 MIN, LESS THAN 1 RECEI</i>
    ep_textstring is 97 characters long and the correct string should be 101 characters long so both should fit easily in a short text.
    In my opinion it's a bug in SAP so im trying to get an answer from them.
    Kind regards,
    Wouter Luijten
    edit: got an answer. all texts are 80 characters long. So if your texts are longer than that, they will be truncated.
    Message was edited by:
            Wouter Luijten

  • Placeholder content not visible in Preview

    I am a RoboHelp10 newbie with two projects on the go, one inherited and one new.  Placeholder content (breadcrumbs and Topic TOCs) is visible in Preview mode (Ctrl+W) in the inherited project, but not in the new project.  They don't show in Firefox/IE Preview either.  All other content/formatting seems to preview just fine.  MS_HTML_Help is the designated primary layout for both projects.  Based on a post in this forum, I tried updating DHTML effects, but it didn't help.  Any suggestions?
    I am assuming if they don't appear in Preview, they won't appear in the generated CHM.  Correct?
    RESOLUTION:  I finally fixed the problem with brut force by starting a new project and importing the HTML pages, etc.  Even then, it took a few tries before it worked.  Still don't know the underlying cause. 
    Message was edited by: Steve@SSA on 16Nov2013

    Vamsi mailed me offline and I have suggested looking at Using RH7 on my site where this problem is covered.
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • Content not visible in Firefox

    Hi! I use your awesome browser as my #1 browser. Since the most recent update, however, I can not see content on Facebook that was available (and works on all other browsers).
    Here is a link where you can see it working on all other broswers but not FF:
    https://www.facebook.com/pages/The-Gables-Inn/91848818163?id=91848818163&sk=app_243138959111822
    It in an iFrame FYI.
    I have developed over 3000 FB pages and now they only work in the other browsers. I have gotten most of my clients to instal FF so this is an even bigger issue. I am out of ideas. Please let me know if its me or what to do to make it work.
    Thank you so much!!!!
    Sean

    Yes, I am aware it is mixed content. Awareness isn't the issue. It's that there was no warning of this and it isn't intutitive to solve it.
    Many people who have FB Business pages, but who aren't techie savvy won't be able to figure this out.
    That's why there should be some type of dialog box that opens up giving them an option to choose.

  • Ipod recognised but contents not visible in windows explorer

    Hi There,
    I have this strage problem with my 5G ipod from many days. When I connect the device to windows, it is recognised but i am unable to see the contents of it. I can see only only the folder "Photos" which has 1 file named "Photo Database".
    When it do Run-> "G:/ipod_control" in windows, i can see the contents of this folder. I normally use my ipod to store my documents in disc mode and i would like to access them now. Unfortunately i do not remember the folder names to a Run-> G:/whatever...
    Is there any way i get to see/access those non ipod-default-folders?
    I rally appreciate any kind of help on this. Thanks guys!
    Cheers
    Kondal

    Click here and follow the instructions.
    (50100)

  • Content not visible until after refresh

    I have two sites live now via muse, and once in a while some of the content isn't visible (mostly text) until after I refresh the page. Has anyone else had this issue?

    If the widget requires you to add it to each Master, then yes. Also, as the issue lies with Chrome's latest release, please wait for Google to release an updated version of the browser. You may want to follow this thread - https://code.google.com/p/chromium/issues/detail?id=336476&q=font&colspec=ID%20Pri%20M%20I teration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified.
    Thanks,
    Vinayak

Maybe you are looking for