Cannot See Components Added To JComponent

Hi,
It seems that components added to direct descendents of JComponent are not visible. Please see the following pseudocode:
// In the following b is NOT visible:
class MyComponent extends JComponent{}
b = JButton("OK")
p = MyComponent()
p.add(b)
f = JFrame()
f.contentPane.add(p)
f.show()
// In the following b IS visible:
b = JButton("OK")
p = JPanel()
p.add(b)
f = JFrame()
f.contentPane.add(p)
f.show()
How does one make JComponent-added components visible?
Thanx
--A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Components and Containers are a bit different. Try calling paintChildren on your custom component like this:
public void paintComponent(Graphics g){
   ...//do what you need to
   paintChildren(g);

Similar Messages

  • I cannot see added pictures by previewing from iPad

    I can see pictures, audo files, and texts which I added to a template in ibooks author.  However, when I clicked "preview" and send my work to iPad, I cannot see any added pirctures, texts, audio files.  What is wrong?  I appreciate any help and suggestions.

    Hi Kalachan,
    Check iOS/iBooks version and update to the latest one; Also can you confirm what all things you see in Ipad.

  • Cannot see the appended fields on BW side

    Hello all,
    I appended the extract structure of a datasource (added two fields), I can see those field in RSA6 and can see the data in RSA3. Then I replicate it on BW side and am trying to create transformation between that datasource and DSO but I cannot see the added fields in the transformation rules so that I can map it to the infoobjects in DSO. When I see the fields tab of datasource (in datasource tab in RSA1) I can see those two fields but I am not getting now how do I map it with DSO objects.
    Can someone throw some light please.
    Thanks,
    Kiran

    hello all,
    I tried same thing completely by using 3.x method transfer rules and update rules and it works good.
    I finally can see the appended fields. I did the whole process as the 3.x method, transferred the fields in transfer structure, added my infoobjects in communication structure and then did the transfer rules. So now finally I am able to see the fields in datasource and now I am able to map the source fields to the target fields (Z infoobjects) in DSO.
    I can see the data in PSA, so I just went ahead and did a direct assignment so that data will go to the target infoobjects but for some reason still those columns are blank, so basically there is data in PSA but its not getting to DSO.
    Do we have to anything different in this new version like write a routine or something in transformation rules?
    Are these steps right for the new version NW 2004s, or is there any additional step in this new version.
    Thanks,
    Kiran
    Message was edited by: Kiran Mehendale

  • I would like to see the added keywords under the picture like iPhoto does it. Is that possible? I cannot find an answer

    I would like to see the added keywords under the picture like iPhoto does it. Is that possible? I cannot find an answer in Aperture 3.2.1

    Hello Wontolla, I meant the Aperture main menu, there is a sub menu "View", see the Screenshot:
    Set all flags in the Metadata Display submenu as I did,  to show Metadata in Viewer and Browser, and then select "Customize"
    Pick the Metadata fields you want to display for all views.
    Make sure, that "Contents -> Keywords" is checked.
    Regards
    Léonie

  • New Jabber user cannot see (only) one of the added buddies

    Running ichat server, just a handful of OD users. OD is on the same machine as Ichat server. Nothing is limiting the use of Ichat by any of the OD users. Server G5 10.4.9, Clients managed Intel Imacs 10.4.9
    Added a new user.
    New user can add buddies in the Jabber List.
    New user can see all but 1 of them in the List.
    One of the buddies, lets say UserX, can see the new user in her Jabber List.
    No matter what we have tried from within Ichat the new user cannot see UserX.
    Both users are members of the same groups and have matching access abilities.
    Any suggestions. Thanks for looking at this.

    New user can see all but 1 of them in the List.
    If I understand it this correctly, 'new user' can see all other buddies except one. And all the other users can see this buddy.
    Lets call the new user "userX" and the one they cannot see "userY" and lets call your ichat server "jabber.myserver.com"
    The configuration files for users buddylist is stored in the spool di rectorywhich you can find at /var/jabber/spool/. In there you will find a directory the matches the name of your ichat server. For me that is jabber.clayford.com. In this directory you will find one xml file for eash user of ichat server. Their file name is the OD logon name for the server.
    Stop the ichat server service and make back up of any files you edit before you start.
    Open the file for "userX.xml" In this file you will see some xml code that starts <item jid='[email protected]' subscription='xxxxxx'>. there will be a number of them, one for each buddy.
    Mke sure the xxxxxx is the word 'both' [with the quotes] and if the text ask='subscribe' exists in that line before the >,remove it. So that definition should now be: <item jid='[email protected]' subscription='both'>.
    Save the file and now open the file userY.xml and check that the item <item jid='[email protected]' subscription='both'> exists.
    Restart the ichat server and the problem should be fixed...

  • Cannot see the components in ESS after import it into CBS

    Hi all:
    After we import ESS 100 ( in ECC ) into JDI. Then in NWDS we can see the configuration, but we cannot see the components inside the ESS repository.
    In CMS - Transport Studio, we have done the check-in, Development, Consolidation, there are all sucessful.
    Anybody can give us some help ?

    Hi Jain.
    In Development Configurations Perspective
    Inactive DCS
    I cannot see the design components which I import from CBS
    Another question is I meet with problem when I try to activate this ESSTrack in Activation View .
    Retrieving pending activities failed: CBS Server Error: The compartment for given software component is being initialized( internal code: BS_SC_META_DATA_NOT_AVAILABLE)

  • Cannot see any new content added??

    What new content has been added this week? I have looked and cannot see any new content.
    I thought new content was added every Thursday?

    jam2000 wrote:
    What new content has been added this week? I have looked and cannot see any new content.
    I thought new content was added every Thursday?
    Content is added on a friday, but we currently have titles missing on the classic platform (old software) which haven't been added yet and I hope they don't try adding these tomorrow as the new content
    response from the vision guys and they’ve confirmed that there 10 more assets (movies) which were not listed in the HD Category on Classic, but it does appear as if there are 20 odd titles missing from the Classic platform. We will add the missing assets (movies) into the category and will investigate the titles which are missing from the platform.

  • HT5361 suddenly I cannot see my gmail in my inbox on my macbook.  I deleted the gmail account and added it back but I cannot see new gmail in my inbox.  I can see sent gmail but not incoming gmail.  The gmail is visible if I go to my google account on goo

    Suddenly I cannot see my gmail in my inbox on my macbook.  I tested it and I can see my gmail in google.  I deleted my gmail account on my macbook mail and re-added it and still cannot see incoming gmail.  I can see new icloud e-mail.  I have both a gmail account and an icloud account.    For my test e-mail in gmail, I can see sent gmail but not incoming gmail.  How do I fix this?

    Try rebuilding the mailbox. This can take awhile if you have a lot of mail.
    Rebuild mailbox
    Try re-indexing the mailbox. This can take awhile if you have a lot of mail.
    Reindex messages
    What does Mail/Window/Connection Doctor Show? If the server is red, select it and look at the Show Details box.
    Troubleshooting sending and receiving email messages

  • Stage goes white and I cannot see any of my mc_s

    Hey Team,
    Wondering if you can help me out here, I am working on a Flash file that has lots of FLV player components all in different movieclips, all reading external flv files.  (This is all I can think of that I have been adding that has led to this worsening problem) I have noticed recently that the stage is becoming white more and more frequently and the movieclips on the stage are becoming invisible (yes i have not turned the eye off on the timeline) when you click on the white space you can go inside these invisible movieclips, you just cannot see what is there.  I have to close and restart Flash to see again, which I am having to do more and more often, I also notice that my .swf or projector file has become unstable when I export it and it will fail or close without warning or error.
    Here is some video of the problem..
    http://www.youtube.com/watch?v=HfQJ6UozIM8&feature=youtu.be
    Any help as to what I am doing wrong would be greatly appreciated
    cheers
    sub

    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Full Details Here  >  http://support.apple.com/kb/HT1751
    An Added Bonus is that you will have a Backup of iTunes.
    OR...
    Download Past Purchases
    http://support.apple.com/kb/HT2519

  • Cannot see new SQL 2008 R2 Express instance on Small Business Server 2011!

    Hi,
    As it is stated on the subject line, I'm having a problem after I did a new install of SQL 2008 R2 Express and put a new instance on SBS 2011.
    I'm developing a new program using SQL 2008 in C# and VB.Net. I have SQL 2008 R2 Express installed on my computer called "MSQL8R2EDATA" on my PC. Now I need to deploy it on SBS 2011 so I can do some testing on other workstations.
    I'm currently running Windows 7, 64 bit, and it's named STEVE-PC. The SBS 2011 is named SERVER1, and it's 64 bit as well.
    After installation on SERVER1 (SBS 2011), I then fired up SQL Server Configuration Manager and enabled Named Pipes, TCP/IP, and VIA.
    After I've completed the SQL Configuration on SERVER1, I went back on my PC (STEVE-PC) and I tried to use Management Studio to connect to the  new instance MSQL8R2EDATA on SBS 2011, only problem is, I only see the computer name, not the new instance
    I've installed.
    Back on SBS 2011 (SERVER1), I've verified that all the protocols are enabled, and the SQL Server Browser is automatically loaded and currently running, as well the MSQL8R2EDATA instance is automatically loaded and running, yet I still cannot see
    it from my PC (STEVE-PC). I even switched from dynamic ports to a static port of 64719 (that was what the MSQL8R2EDATA was listening on that port when it was dynamic), and then added new rules to the Windows Firewall for program of the SQLSERVR.EXE, and
    for UDP and TCP for port 64719 to "Allow All Connections" for Domain, Private, and Public; yet I still cannot connect SERVER1\MSQL8R2EDATA. I even disabled the firewall and then trying to connect once again to SBS 2001 and it still fails.
    In case you're wondering, I left it on port 64719 since there are other active SQL Servers on SBS 2011 (SharePoint, SBSMonitoring, and ACT7).
    Interestingly, when I run Management Studio on SBS 2011, I can see STEVE-PC\MSQL8R2EDATA and I'm able to log in and connect to it.
    So what's going on here?!? Why am I able to connect to STEVE-PC which is Windows 7 64 from SBS 2011 (SERVER1), but I cannot connect from my computer to that instance on SBS 2011??
    I really could use some big time help on this.
    EDIT: Sorry for the confusion, but on the Windows Firewall (WF.msc), I did add new rules for incoming connections on:
    Program incoming connections to SQLSERVR.EXE
    TCP Port 64719
    UDP Port 64719
    EDIT: To further assist, I have Management Studio installed on the SBS 2011, and I can locally log in and connect to the MSQL8R2DATA on SERVER1 with success. I even tried tcp:SERVER1\MSQL8R2DATA and again it is successful log-in and connection.
    Thanks in advance!
    Steve

    Hi,
    Thanks for the response, but I have a question:
    Installing SQL Express or SQL Server is not recommended on SBS
    2011 because it is a DC, however technically it will work.
    I'm a newbie when it comes to SBS 2011 and I'm taking a crash course on the subject. Can you explain to me what you mean by "DC"? Also, why
    isn't recommended to install a new instance on SBS 2011?
    As I also stated, I've added "New Rules" to the Windows Firewall to allow incoming connections on port 64719 for both TCP and UDP, and I also allowed incoming connections for SQLSERVR.EXE but no joy to connect to the SERVER1\MSQL8R2EDATA.
    And yes, I can log-in and connect locally on SERVER1 using Management Studio with success. I even used tcp:SERVER1\MSQL8R2EDATA with the same success. It's my workstation STEVE-PC that fails. If that fails, then the rest of the workstations are going to fail.
    Are you suggesting that I put the SQL Server 2008 Express on another workstation and just allow to to be
    accessed that way?

  • Excel - Cannot see any new data in Excel Workbook

    Hi There,
    Wonder if anyone can help, we have a .xlsx file, we have it setup so that only one person at a time can edit the workbook.
    When a colleague edits some data and saves the change, I go into it but cannot see the new data. I then do the same but she cannot see the changes and neither can a 3rd colleague. In effect, whenever any one
    makes a change in the workbook, no one else can see the new saved data that has been added. 
    The work book is not protected. It is stored on a server, all users are running Office 2013 apart from
    1 who is using 2003, but it doesnt matter as even if a change is made using office2013, another office 2013 client still can't see the change.
    It doesn't seem to happen with any other workbooks.
    Tried open and repair which didn't work. Also tried saving a new version of the workbook, this works for a while but then the issue comes back on the new version.
    Any ideas, as currently we keep having to save new versions of the workbook.

    Hi,
    What's the extension of this particular file ?Try another file format to test this issue.
    Did you get any message when try to save the document? Also does this problem happens when use the 'save as' option within Excel to save the file?
    Also try to download the excel file to local driver, update the Excel file,then upload it to the server.
    Wind Zhang
    TechNet Community Support

  • Cannot see Cookies with new update of firefox. I recently updated firefox, but when I look on the PRIVACY window, where websites store cookies, I am no longer a

    Cannot see Cookies with new update of firefox.<br />
    I recently updated firefox, but when I look on the PRIVACY window, where<br />
    websites store cookies, I am no longer able to see any cookies that<br />
    are being stored, and I am not able to delete the cookies as soon as I leave<br />
    their site, as I had been doing for a long time prior to updating.<br />
    So I am wondering where the heck are the cookies being stored now, with the<br />
    new update? I like to be able to delete their cookies immediately, and<br />
    I also wonder why firefox does not make it much easier for us to see<br />
    all the cookies and delete them with one click, instead of having to <br />
    use the &lt;&lt;TOOLS&lt;&lt;OPTIONS&lt;&lt;PRIVACY way of looking at and deleting cookies.<br />
    The option to delete the cookies when firefox closes is not as efficient<br />
    and I will get tracked until I close firefox, and I prefer to not be tracked<br />
    so I like to just delete their cookies as soon as I am no longer using their<br />
    site anymore.

    (my question was not fully showing so I added this here)
    way of looking at and deleting cookies.
    The option to delete the cookies when firefox closes is not as efficient
    and I will get tracked until I close firefox, and I prefer to not be tracked
    so I like to just delete their cookies as soon as I am no longer using their
    site anymore. So I need to know how to make the cookies visible again, so I can immediately delete them. thank you

  • Moving TM disk from Network to USB: cannot see previous backups

    Hi,
    I have decided to move my external USB disk from the Airport Extreme USB port to my computer USB port to speed up backups and restores.
    Unfortunately it seems that I cannot see anymore previous backups in the disk using TM.
    The disk was accessed through the network and it was setup to have user level access to it: each user have his folder on the disk.
    So, what I have done is to move back the disk to my computer, I have run disk utility to check and fix the disk since when the drive is attached to the AE with user privileges, it will report errors once you connect back to the computer. Once that permission errors were addressed, I have moved the time machine backup to the disk root and I have told TM to use this new disk as backup location.
    Then I have made a new backup to the disk and it seems that TM was able to detect the previous backups because it has added only few GB to the backup.
    Then I have moved to a random folder were I have made changes, and I have started TM: when I do that, TM window will switch me back to "MyComputer" where I can see all drives.
    I can move around but I am unable to move back in time, like there are no other backups.
    TM backup file is about 140 GB and I can fully access it by using finder: I see that all previous data is there, but TM cannot see it.
    I have not changed computer name,
    I have tried to use the TM option to "open other TM disks" but It doesn't show any other disk in the select window.
    Does anybody know what is happening and how I can try to fix?
    thanks!

    Thanks for the replies,
    I would like to move from a wired network TM backup to a local firewire/USB backup.
    So the first error I have made is to have deleted the user directory in the Airport Extreme external USB disk: I have moved the TM sparse bundle file to the new location but I didn't noticed that other hidden files were there.
    Second, I was unable to browse the older TM backups using TM and it seems that I cannot "browse other TM backups" using such TM option because the window were not showing me any drive.
    I have then realized that I have to mount the sparse bundle to see it in such TM option: then it seems to work perfectly.
    So there is no need for me to find a solution to use again the same backup with the local disk: if I need something in future I will use the TM option to browse other backups and I think I will be able to recover any file from there. May be I cannot recover mails in this way.
    I think it is also possible to fix by using the procedure listed in the previous link: I didn't try just because I don't want to spend more time on this issue and because I have not enough free space on other drives... but...
    ...it should be enought to:
    1- connect a new drive to the computer;
    2- mount the old TM sparse bundle image;
    3- use SuperDuper to copy all contents of mounted sparse bundle image into the new attached drive;
    contents of the sparse bundle image seems to be equal to the structure and names used by a new fresh backup on a local USB disk, so I suppose that it could work... if someone wants to try a tell if it is so... thanks!

  • Standart Portal User cannot see Website created with WPC?!?

    Hi there,
    just a new Question.
    I created a Website with WPC as shown in this Blog:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5924
    Web Page Composer u2013 how easy it is to create and publish a web page (Part III)
    I created also a User that have rights:
    Groups:
    Everyone
    Authenticated Users
    Roles:
    Testrole  (That one i created for the Website)
    But my user cannot see the Website after Logging in.. In the Menu there is a Menuentry called: Website
    Thats correct. But the Site do not load.
    After i put the User in: Group - Administrators i can see the Website... whats wrong here?
    Regards
    Bjoern

    OK i am a step forward.
    i checked help.sap.com and find a hint to the Security Zones.
    Defining Permissions for Security Zones
           1.      Navigate to Security Zones ® com.sap.nw.wpc ® wpc.
           2.      In the context menu of the following folders, choose Open Permissions and define the permissions specified.
    Permissions for Security Zones
    Folders
    Roles/Groups
    Permissions
    medium_safety
    Site owners, editors, and authors (for example, the wpc_editor_role role)
    Select the End User checkbox.
    You can leave the default entry for the Administrator column as None.
    no_safety
    Visitors (for example, the everyone group)
    Select the End User checkbox.
    You can leave the default entry for the Administrator column as None.
    I changed the no_safety (i added Group - Everyone)
    Now i can see the Page.. but i also see at the top right of the page: EDIT PAGE
    And a Standart EndUser should not see: Edit Page
    What can i do here?
    Regards
    Bjoern

  • Upgraded to 10.6.1.7 as prompted and now cannot see any music purchased since March 23, 2012.  How can I get these back?

    Upgraded to 10.6.1.7 as prompted and now cannot see any music purchased since March 23, 2012.  How can I get these back?
    The error message says it cannot find the file but it exists as it was transferred to my ipod.
    Thanks.

    Ack! We don't need that much.
    What you posted looks like the iTunes Library.xml file  I will let you read about how iTunes works but not only is the .xml not your main library it is just the listing of tracks in your library and where the music files should be located.  Your music is actually in media files (by the way, it is pointless to zip those as they are already compressed).  Anyway, read these and you will see that your true library file (iTunes Library.itl) is only a small, but still important, part of a complete library.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391
    As you can see, a library has several components, so "getting it back" depends upon what is missing, what it was you actually backed up in the end, if any of this music was purchased from the iTunes Store, etc.

Maybe you are looking for