This is very strange...

Ok. This really surprised me, with all the talk about how great Apple computers really are.
I've had my Powerbook G4 since July 8th, 2005. Yes, I got it over the summer, so I haven't had it that long.
My Powerbook has been acting sort of weird lately, I'm not sure if I had a virus on it or what. So that leads to my first question. How can I check to make sure that my laptop is virus free?
Anyways, yesterday I noticed that a couple settings were switched around, and then I opened my iTunes and noticed that all my music was gone and then iTunes was acting as if I had just installed it and was doing the whole introduction thing and everything. Thank god, I found my music safely stored in a file on my laptop and just reimported my music, which didn't take that long. Then I opened iPhoto and it did the same. All my pictures were gone and it was leading me through the whole setup process again. I was so annoyed and at first I couldn't find any of my pictures and then found half of them stored in the Pictures folder under the iPhoto library, and then found the other half in the Pictures folder but in the Kodak Easyshare file, which was strange.
Today I shut down my laptop to clean it and then after I was done I restarted it again and then all my settings were changed back to the default and the background was set to default and everything. I don't know what's going on but now all my documents are gone, which doesn't really matter that much because there wasn't anything THAT important on there, but still. I don't understand what's going on with my laptop. Should I take it in?
Thanks and sorry for the long post, I'm just concerned and want to know what's going on.
Any help is appreciated!

It's safe to say that you don't have a virus.
Have you changed anything, either on purpose or possibly by accident, relating to your log-in?
More specifically, did you change the name of your Home folder at any point after you initially set up your machine?
If so, see if this KBase article helps: http://docs.info.apple.com/article.html?artnum=107854
Tuttle

Similar Messages

  • This is very strange: I can't connect to only three sites!

    Hello,
    First of all sorry for my bad english, I hope to be enough clear to explain this strange problem.
    I have recently experienced a problem fot what I have not any idea of the solution.
    About one week ago, after installing the new iLife suite and iWork suite I have seen that it was impossible to connect at few web sites: Google, Version Tracker, eBay.... just this and two or three other.
    All the other websites run perfectly.
    I have try to trash the preferences of the browser, to change the browser (using another one: Opera, for example), to clear the cache... anything possible... but nothing happens: the three sites still can't upload.
    The only solution (very hard for me) was to make one archive and install of the system, and this make all the thing OK.
    Today I have downloaded all the new upgrades (from the iWork suite, to the iLife suite) and I have start to experience the same probelm.
    I don't want experienced again another re-install...
    Ah.. this issue coming only on the G5 desktop with the Powerbook I haven't any problem...
    Anybody can give me some info or input about this?
    Thanks a lot

    Another interesting issue is that if I try to connect via USB mobile Phone (or bluetooth mobile phone) through the UMTS network, everything run perfect and all the website are correctly upload.
    This indicates that the problem is a DNS issue. The ISP that you use normally isn't giving you reliable information about where web sites are located, while the UMTS network is providing reliable DNS information.
    To test this further, try using OpenDNS addresses. This will bypass whatever DNS your ISP is using. If you're able to access Google, Versiontracker, and eBay on your normal connection after making this change, then you know the problem has to do with your ISP's DNS. You can use OpenDNS addresses indefinitely if that improves your web browsing.

  • Call from 0000000000 - This is VERY Strange

    I'm NOT an AT&T subscriber and I've had this call about five times in the past week in my cell, and on my landline showing up as (0). This is, truly odd. Hopefully someone will figure it out. When I answer it seems like the line disconnects immediately. I'm wondering if It would do any good to report it to my carrier? Thoughts?

    Maxijamz wrote:
    I'm NOT an AT&T subscriber and I've had this call about five times in the past week in my cell, and on my landline showing up as (0). This is, truly odd. Hopefully someone will figure it out. When I answer it seems like the line disconnects immediately. I'm wondering if It would do any good to report it to my carrier? Thoughts?
    it is very easy to spoof the number displayed, it is a trick used by collection agencies, spam sellers and other organizations that do not want to disclose the trackable number to prevent a report by a end user that has their home or cell number on a do not call list. The only end users that can see the true calling number at any time are first reponders such as 911. Sorry but reporting it is pretty much a dead end.
     

  • When i click on itunes on my ipad2 i get the error ..'cannot connect to itunes store'...i'm able to access podcasts and itunesU but not itunes store. This is very strange as i can access app's store

    when i click on itunes on my ipad2 i get the error ..'cannot connect to itunes'...I'm able to access podcasts and itunes U but not itunes store..my apps store and safari are also working perfectly but don't know whats the issue with i tunes store...i use an airtel broadband connection through a wifi router..pls help

    I was having this problem. The settings on my wireless router was set to hide my IP address so it wouldn't connect. When I changed that, I connected no problem. While this is annoying since I don't want my IP address to be out there, I just switch my router when I need to connect to the App/iTunes Store. Hope this helps. It worked for me.

  • Very strange error in text properties - AI CS6

    Hello Everyone,
    This morning I found very very STRANGE error in Adobe CS6 about text properties. Here you go.
    In the picture one text 'ei and mosterd' was bold.
    But after copy to new string the bold characters are changed to 'ig and mosterdz'.
    This is very strange error I have seen ever.
    Do you guys have any reason why CS6 act like this?
    also do you  have any option to fix this issue?
    For your information:
    I just done copy past. Nothing else.
    All the properties are same for both.
    No difference except the text string size
    I tried the same file in different machines for check. But I still see the same error in all the machines.
    System properties:
    Mac os x: 10.8.5
    Processor 2,8 Ghz Intel Core i5
    Memory: 8 GB
    Software: Adobe CS6
    Regards,
    FroQ

    Wow, this is absolutely incredible... you try to parse an empty String to an int and it throws an exception... I'd never have thought.

  • Very strange bug with compareTo: returning incorrect results

    Hello everyone! I have used the method compareTo many times to maintain my database project's entries. However recently I have discovered a bug, in which:
    a and b both being Storage type objects:
    private static class Storage {
    object data
    int nextData //an array stores the Storage objects
    int previousData //this uses an integer to locate previous in array
    Problem:
    ((Comparable)(a.data)).compareTo((Comparable)(b.data)) returns a 3, when a.data is clearly 5, and b.data is clearly 20.
    This is very strange, as the compareTo should return a -1 instead of a positive number. Is this a known bug with the compareTo method? I have been using it reliably for many programs but this is the first time it ever occurs to me.

    Problem:
    ((Comparable)(a.data)).compareTo((Comparable)(b.data))
    returns a 3, when a.data is clearly 5, and b.data is
    clearly 20.
    This is very strange, as the compareTo should return a
    -1 instead of a positive number. Is this a known bug
    with the compareTo method? I have been using it
    reliably for many programs but this is the first time
    it ever occurs to me.Not really... comparing Strings "5" to "20"
    is really the same as comparing "5" to "2"
    being the first character of the string, difference
    being, surprise, surprise = 3.
    If you want the Strings to be comparable that way you should left-fill them with spaces or zeros.
    Or, better still, override compareTo and make your Storage implement Comparable instead of all that casting of the data objects.

  • Caps lock button acting very strange.

    I recently got a Lenovo T420 thinkpad. Everything has been great until earlier today I tried to log-in to buzzport ( a GT website) and when I hit the caps lock button all these weird things happened. Google Chrome went into full screen, and the "elements" thing came up. Im not sure exactly what it is, but it looks like some sort of HTML code for the website. oh and if it also enters the text "09" when caps lock is pressed. well anyways, now this happens everytime I press caps lock. I opened notepad and pressed caps lock. The result was "09" followed by an endless stream of 1's which continued until I pressed caps lock again. This is very strange and I couldn't find any information about this on google. I don't know what could have caused this, but its very frustrating because this is a brand new laptop. Any help is appreciated. Thank you!
    edit: so i've been playing with it, and im convinced that basically instead of just doing what caps lock does, it is pressing a series of other buttons as well including the 09, the 1's, and opening what i now know is called the elements pannel which normally opens with ctrl + shift + C. so in other words, for some reason pressing caps lock preses the buttons "09 ctrl + shift + C 11111111111111111111111111111111111111111" 
    edit 2: ok it just got weirder. I fixed the problem...sort of. I started thinking about everything i have done differently today. I mean ive only had the lap top for a few days after all. tonight is the first night i used the mute button. i unmuted the laptop, and now everything is fine. if i mute, then caps lock acts weird again. I could just always go to zero volume rather than mute, but just as a curiosity, why is this happening? it makes no sense!

    I noticed that some problems don't seem to get attention. I am typing this using a bluetooth keyboard on top of my G4 PowerBook, which is hardly an elegant solution to my caps lock problem. If I spend close to $2000 on a laptop, which is close to the most I spend on any consumer product after a house and car, is it unreasonable to expect that after a mere four years, it can be repaired, rather than simply tossed aside. I am an expat living in a SE Asian country without any Apple Authorised resellers etc. When I make the trip to Thailand to get my machine fixed, I'd like to know that someone there will know what to do to sort this problem, without me being faced with the prospect of having to pay a lot of money to buy a new one or replace hardware that is not in fact needing replaced. That is why I posted on this forum. Was I mistaken in thinking that in the entire Mac using community, there isn't more than one other person having the same issue as me? Is anybody from Apple aware of this problem and do they have any idea how to fix it? I'm not seeking to be antagonistic here, I'd just like to think that somebody, somewhere out there has some idea, what has gone wrong with my PowerBook and can help me get it fixed.
    p.s I sorted out the large fuzzy Apple on startup by zapping the PROM, so that doesn't seem to be directly connected to the game of green light tennis I can now play between my caps lock and num lock keys. (My caps lock key is permanently lit and when I try to turn it off, it reduces the volume of my speakers and "types" "rfr" and other such gobbledegook.)

  • This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangly (I need help trying to use it)

    My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
    I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)

    My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
    I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)

  • Help with getting values from request. Very Strange!!

    Hello,
    My very strange problem is the following.
    I have created three dynamic list boxes. When the user select
    the first list box, the second becomes populated with stuff
    from a database. The third becomes populated when the second
    is selected. Now, I have used hidden values in order for
    me to get the selected value from the first listbox. The
    following code is my first listbox:
    <SELECT NAME="resources" onChange="document.hiddenform.hiddenObject.value = this.option [this.selectedIndex].value; document.hiddenform.submit();">
    <OPTION VALUE =""> Resource</OPTION>
    <OPTION VALUE ="soil"> Soil </OPTION>
    <OPTION VALUE ="water"> Water </OPTION>
    <OPTION VALUE ="air"> Air </OPTION>
    <OPTION VALUE ="plants"> Plants </OPTION>
    <OPTION VALUE ="animals"> Animals </OPTION>
    </SELECT>
    I use the getRequest method to get the value of hiddenObject.
    At this time I am able to get the value of hiddenObject to populate
    the second list box.
    But, when the user selects an item from the second list box
    and the second form is also submitted,
    I lose the value of hiddenObject. Why is this??
    The code to populate my second listbox is the following:
    <SELECT NAME ="res_categories" onChange="document.hiddenform2.hiddenObject2.value = this.options[this.selectedIndex].value; document.hiddenform2.submit(); ">
    <OPTION VALUE ="" SELECTED> Category</OPTION>
    Here I access a result set to populate the list box.
    Please help!!

    Form parameters are request-scoped, hence the request.getParameter("hiddenObject"); call after the submission of the second form returns a null value because the hiddenObject parameter does not exist within the second request.
    A solution would be to add a hiddenObject field to your second form and alter the onChange event for res_categories to read
    document.hiddenform2.hiddenObject.value=document.1stvisibleformname.resources.option[document.1stvisibleformname.resources.selectedIndex].value;
    document.hiddenform2.hiddenObject2.value = this.options[this.selectedIndex].value;
    document.hiddenform2.submit();You will then come across a similar problem with your third drop-down if indeed you need to resubmit the form...
    A far better approach would be to create a session scoped bean, and a servlet to handle these requests. Then when the servlet is called, it would set the value of the bean property, thus making it available for this request, and all subsequent requests within the current session. This approach would eliminate the need for the clunky javascript, making your application far more stable.

  • Address Book behaves very strange

    Hello members and outside viewers,
    First thing: My Address Book behaves very strange.
    - After startup, the window freezes. Only if I minimize and click again, works OK. I began used to it, BUT
    - Since yesterday, Addresses gone, disappeared from every entry.
    - Under Preferences » Address Format is uneditable, it has "Item3" in it, unclickable drop down menu.
    - Under Preferences »Template » Add Field several options are grey: "Phone", "Email", "Related Names", "Instant Messaging", "Address".
    Please can you help me! I deleted both plist files from Preferences folder and deleted the whole folder under Application Support/AddressBook, also reinstalled Address Book from Leopard DVD, but nothing helped so far.
    Second thing: when I invoke Spotlight, and start typing after 2-3 seconds, it quits and also Dock unusable, restarts automatically. Spotlight is useless, it behaves every time like this. Spotlight in Finder windows are OK, system-wide menubar has this error. Also, it was suddenly gone wrong like Address Book. Can I think of some virus?
    P.S. (off topic), might helpful to share: very frustating, that registering to Discussions took me over an hour.
    - With Safari 4.03 the "Name" and "AppleID" are blank fields on "Create New User Account", therefore impossible to proceed. ( Error: invalid AppleID. Please login with a different AppleID )
    - With Firefox you can actually see them, but "?" instead of accounted letters.
    - After changing My Info, I finally realised that Apple ID should be complete e-mail address.
    - That means my "visionfresh" account is totally different from "[email protected]" (or me.com, whatever..)
    - Not to mention that I created a new Apple ID, that was also not working.
    - Bottom line: my "[email protected]" account is working also in Safari after editing my Name (replace accented characters), but I could not proceed with the nickname "visionfresh", I chose "matyashuszar".

    {quote:title=Console.App shows this when starting Address Book}
    2009.09.03. 18:45:48 Mail[228] SyncServices[ISyncSessionDriver]: Caught top level exception: I/O error for database at /Users/matyashuszar/Library/Mail/AvailableFeeds. SQLite error code:1, 'SQL logic error or missing database' Stack trace: (0x91ffcfeb 0x966c4e3b 0x92071f1a 0x920713f8 0x9206d18b 0x920a2e40 0x92097c2d 0x920977da 0x92077001 0x38767c 0x38758d 0x38751a 0x92061302 0x920a7260 0x920a6ad4 0x920a67ff 0x920633c8 0x92062f99 0x92061ea0 0x387303 0x38748e 0x1627da55 0x94ddd1e8 0x94dc923d 0x94e632cb 0x904d1dfd 0x904d19a4 0x95d56155 0x95d56012)
    2009.09.03. 18:51:27 Address Book[6144] -[ABAddressBook setDefaultCountryCode:] called with unknown country code 'us'
    2009.09.03. 18:51:27 Address Book[6144] NSScanner: nil string argument
    2009.09.03. 18:51:27 Address Book[6144] * -[NSCFArray insertObject:atIndex:]: attempt to insert nil
    {quote}
    Please help what to to do!

  • My iPhone is saying its taking up 10g of photos and I only have 154 pictures. Also when I got my screen fixed I had 2,000 and when I got it back I had 0 but my wallpapers remained.. Very strange. It's as if my phone still has the pictures but I can't see

    My phone is saying all my storage for pictures is taken up when I only have 154 picture.. It happened when I got my screen fixed at a kiosk in a mall and I had 2,000 pictures when I gave it to him and when I got it back I had 0 but my wallpapers remained.. Very strange it's as if my phone still has the pictures on there.. But I can't see them. Anybody know what I should do :( I keep having to delete apps because I have no more storage for no reason :(((

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

  • Very strange error: unable to activate any messgae mapping in IR

    very strange error,
    i m unable to activating any message mapping in IR,
    while activating the error thrown was:
    /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapdddd0cb0100311dca6090012799eddc6/source/com/sap/xi/tf/_MM_sdptestFileToFile_.java (No such file or directory (errno:2))
    My observation:
    On looking at the error, i found that the folder Mapdddd0cb0100311dca6090012799eddc6 is not created at the proper place.....
    Which i assume is created dynamically created on activating a message mapping,
    Now, i saw that the directory in which these Map* folders were created, already contained 32765 folders....... since this machine is UNIX, the max no. of directories that can be inside a directory cannot be more than 32768(not confirm).....
    hence the folder Map* cant be created at the proper place...and hence message mapping cant be activated.........
    ever encountered this problem....................
    pls help

    solved by self,
    solution: delete temporary folders created during any activation of message-mapping in IR, in the classpath_resolver folder of XID HOME directory......
    solution is specific to file system/OS....

  • Files transferred to external HD end up in trash - very strange issue

    Hi,
    I seem to be having a very strange issue, hopefully somebody can help or has seen this before.
    Hardware: MacBook Air, Western Digital Passport external HD, 250gb, formatted NTFS.
    Software: OSX 10.7 Lion, Paragon (allows me to write to an NTFS formatted HD)
    Issue Summary: I copy something to the external HD; I empty trash; the file I copied is deleted from the external HD. It doesn't happen every time.
    I do also seem to have a persistent folder in trash called "WD Sync Data" that won't go away unless I re-delete it as it's also in the root of the drive. Not sure if this is related somehow.
    Recently I copied 3 video files inside a folder to the HD, then disconnected the HD. When I reconnected it a while later and noticed that inside the "WD Sync Data" folder in trash were the 3 files I'd copied. I then looked inside the same folder on the root of the drive and the files were there, instead of inside the folder that I'd copied to the drive, which had vanished. If I hadn't noticed and had emptied the trash, those files would've been deleted.
    It's definitely happened more than once; last time I actually deleted the files from my computer after copying, then emptied trash, and they were gone from the external HD also.
    I've only found one person who seemed to be experiencing a similar problem back in 2010. It sounds similar though it could've been user error: http://www.mac-forums.com/forums/apple-notebooks/188224-weird-external-hard-driv e-trash-problem-help-please.html
    Has anyone experienced this or have any suggestions?

    Quick update: I ran a verify then a repair in Disk Utility as there were a couple of errors. Hopefully this has solved the issue, however it'd still be interesting to know if anyone's come across this before and what caused it?

  • I use an iPhone since several years and it was recognized as a camera by my PC. I have recently switch my PC of an iMac and now my I phone is no longer recognized. Very strange concerning two apple products wich ara supposed to match perfectly together.

    I use an iPhone since several years and it was recognized as a camera by my PC with no problem. I have recently switch my PC for an iMac and now my I phone is no longer recognized. Very strange concerning two apple products wich are supposed to match perfectly together. Can anyone help?

    Did you try the suggestions in this article? iPhone not recognized in iTunes for Mac OS X

  • Trying to do something very strange with layouts and painting components

    I'm trying to do something very strange with changing the layout of a container, then painting it to a bufferedImage and changing it back again so nothing has changed. However, I am unable to get the image i want of this container in a new layout. Consider it a preview function of the different layouts. Anyway. I've tried everything i know about swing and have come up empty. There is probably a better way to do what i am trying to do, i just don't know how.
    If someone could have a look perhaps and help me out i would be much appreciative.
    Here is a self contained small demo of my conundrum.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.BoxLayout;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.border.LineBorder;
    // what is should do is when you click on the button "click me" it should place a image on the panel of the buttons in a
    // horizontal fashion. Instead it shows the size that the image should be, but there is no image.
    public class ChangeLayoutAndPaint
         private static JPanel panel;
         private static JLabel label;
         public static void main(String[] args)
              // the panel spread out vertically
              panel = new JPanel();
              panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
              // the buttons in the panel
              JButton b1, b2, b3;
              panel.add(b1 = new JButton("One"));
              panel.add(b2 = new JButton("Two"));
              panel.add(b3 = new JButton("Three"));
              b1.setEnabled(false);
              b2.setEnabled(false);
              b3.setEnabled(false);
              // the label with a border around it to show size in a temp panel with flowlayout to not stuff around
              // with the actual size we want.
              JPanel thingy = new JPanel();
              label = new JLabel();
              label.setBorder(new LineBorder(Color.black));
              thingy.add(label);
              // the button to make things go
              JButton button = new JButton("click me");
              button.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e)
                        //change layout
                        panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
                        panel.doLayout();
                        //get image
                        BufferedImage image = new BufferedImage(panel.getPreferredSize().width, panel.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB);
                        Graphics2D g = image.createGraphics();
                        panel.paintComponents(g);
                        g.dispose();
                        //set icon of jlabel
                        label.setIcon(new ImageIcon(image));
                        //change back
                        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
                        panel.doLayout();
              // the frame
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(400,200);
              frame.setLocation(100,100);
              frame.getContentPane().add(panel, BorderLayout.NORTH);
              frame.getContentPane().add(thingy, BorderLayout.CENTER);
              frame.getContentPane().add(button, BorderLayout.SOUTH);
              frame.setVisible(true);
    }

    Looks like you didn't read the API for Container#doLayout().
    Causes this container to lay out its components. Most programs should not call this method directly, but should invoke the validate method instead.
    There's also a concurrency issue here in that the panel's components may be painted to the image before revalidation completes. And your GUI, like any Swing GUI, should be constructed and shown on the EDT.
    Try this for size -- it could be better, but I've made the minimum possible changes in your code:import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.BoxLayout;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    import javax.swing.border.LineBorder;
    public class ChangeLayoutAndPaint {
      private static JPanel panel;
      private static JLabel label;
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            // the panel spread out vertically
            panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            // the buttons in the panel
            JButton b1, b2, b3;
            panel.add(b1 = new JButton("One"));
            panel.add(b2 = new JButton("Two"));
            panel.add(b3 = new JButton("Three"));
            b1.setEnabled(false);
            b2.setEnabled(false);
            b3.setEnabled(false);
            // the label with a border around it to show size in a temp panel with flowlayout to not stuff around
            // with the actual size we want.
            JPanel thingy = new JPanel();
            label = new JLabel();
            // label.setBorder(new LineBorder(Color.black));
            thingy.add(label);
            // the button to make things go
            JButton button = new JButton("click me");
            button.addActionListener(new ActionListener() {
              @Override
              public void actionPerformed(ActionEvent e) {
                //change layout
                panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
                //panel.doLayout();
                panel.revalidate();
                SwingUtilities.invokeLater(new Runnable() {
                  @Override
                  public void run() {
                    //get image
                    BufferedImage image = new BufferedImage(panel.getPreferredSize().width,
                        panel.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB);
                    Graphics2D g = image.createGraphics();
                    panel.paintComponents(g);
                    g.dispose();
                    //set icon of jlabel
                    label.setIcon(new ImageIcon(image));
                    //change back
                    panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
                    //panel.doLayout();
                    panel.revalidate();
            // the frame
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(400, 200);
            frame.setLocation(100, 100);
            frame.getContentPane().add(panel, BorderLayout.NORTH);
            frame.getContentPane().add(thingy, BorderLayout.CENTER);
            frame.getContentPane().add(button, BorderLayout.SOUTH);
            frame.setVisible(true);
    }db
    edit I prefer this:import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    public class LayoutAndPaint {
      JPanel panel;
      JLabel label;
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            new LayoutAndPaint().makeUI();
      public void makeUI() {
        JButton one = new JButton("One");
        JButton two = new JButton("Two");
        JButton three = new JButton("Three");
        one.setEnabled(false);
        two.setEnabled(false);
        three.setEnabled(false);
        panel = new JPanel();
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
        panel.add(one);
        panel.add(two);
        panel.add(three);
        label = new JLabel();
        JButton button = new JButton("Click");
        button.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            layoutAndPaint();
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400, 400);
        frame.add(panel, BorderLayout.NORTH);
        frame.add(label, BorderLayout.CENTER);
        frame.add(button, BorderLayout.SOUTH);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      private void layoutAndPaint() {
        panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
        panel.revalidate();
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            BufferedImage image = new BufferedImage(panel.getPreferredSize().width,
                panel.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB);
            Graphics g = image.createGraphics();
            panel.paintComponents(g);
            g.dispose();
            label.setIcon(new ImageIcon(image));
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            panel.revalidate();
    }db
    Edited by: DarrylBurke

Maybe you are looking for

  • Controlling event with two controls

    Here's what I have. I have two separate Time loops. Inside each timed loop I have an event structure. Each even structure is trigger by pressing a button each. This works just fine. However, I'd like to add a third button, that executes both event st

  • .Mac 'Personal Domain' and Aperture Galleries?

    hi all. I have a personal domain www.gregory.hk and I've arranged with my DNS guys to set up a subdomain gallery.gregory.hk with the CNAME pointing to web.mac.com I'm getting two impressions from searches I've done on Apple: 1. personal domains only

  • [SOLVED] ADF skin CSS works properly in FF, IE7 but not in IE6

    Hi I have an ADF BC application written in jdev 10.1.3 that has a custom skin. The main pages in the app each have an af:menuBar with af:commandMenuItem items within it. The menubar is skinned to be transparent other than a top and bottom border whil

  • Create new group for texting

    i am trying to create a new permanent group for texting in the future. surely an iphone 4 will create  and save a specific group of certain people to send texts too later on.. please tell me how to create and SAVE new group?? its really important i f

  • Error with topdown_doc_list WS sample

    [echo] Generating service interface [java] Error: Unknown argument: -mapping [java] Command: [java] genInterface - Generates an interface [java] Required argument(s): wsdl [java] Optional argument(s): classpath, dataBinding, ddFileName, debug, hel p,