GridbagConstraints going bad?

I want 1 component to take 80% of the availible x-axis space and the other to take 20%. I do know how the theory works, but I don't know why the examples below won't work this way.
Well... everything there is to say is included in this small code snippet... should be runnable.
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
public class TestWeight extends JPanel {
    private static final long serialVersionUID = 1L;
    static JFrame frame;
    public TestWeight() {
        super(new BorderLayout());
        JPanel panel1 = new JPanel(new GridBagLayout());
        panel1.setBorder(BorderFactory.createTitledBorder("Misbehaviour on dimension-fixed width TextFields"));
        JTextField t1 = new JTextField();
        JTextField t2 = new JTextField();
        JTextField t3 = new JTextField();
        t1.setMinimumSize(new Dimension(600, t1.getPreferredSize().height));
        t2.setMinimumSize(new Dimension(600, t2.getPreferredSize().height));
        t3.setMinimumSize(new Dimension(600, t3.getPreferredSize().height));
        t1.setPreferredSize(new Dimension(600, t1.getPreferredSize().height));
        t2.setPreferredSize(new Dimension(600, t2.getPreferredSize().height));
        t3.setPreferredSize(new Dimension(600, t3.getPreferredSize().height));
        t1.setText("t1, c.weightx == 1.0, preferred size width == 600");
        t2.setText("t2, 0.8, 600");
        t3.setText("t3, 0.2, 600");
        GridBagConstraints c = new GridBagConstraints();
        c.anchor = GridBagConstraints.LINE_START;
        c.gridwidth = 2;
        c.weightx = 1.0;
        c.gridx = 0; c.gridy = 0; panel1.add(t1, c);
        c.gridwidth = 1;
        c.weightx = 0.8;
        c.gridx = 0; c.gridy = 1; panel1.add(t2, c);
        c.weightx = 0.2;
        c.gridx = 1; c.gridy = 1; panel1.add(t3, c);
        JPanel panel2 = new JPanel(new GridBagLayout());
        panel2.setBorder(BorderFactory.createTitledBorder("Right behaviour on shorter TextFields, but TextField size is wrong"));
        JTextField t4 = new JTextField();
        JTextField t5 = new JTextField(7);
        JTextField t6 = new JTextField(7);
        t4.setMinimumSize(new Dimension(4000, t4.getPreferredSize().height));
        t4.setPreferredSize(new Dimension(4000, t4.getPreferredSize().height));
        t4.setText("t4, c.weightx == 1.0, preferred size width == 4,000 (also same behaviour with anything > 600");
        t5.setText("t5, 0.8");
        t6.setText("t6, 0.2");
        c.gridwidth = 2;
        c.weightx = 1.0;
        c.gridx = 0; c.gridy = 0; panel2.add(t4, c);
        c.gridwidth = 1;
        c.weightx = 0.8;
        c.gridx = 0; c.gridy = 1; panel2.add(t5, c);
        c.weightx = 0.2;
        c.gridx = 1; c.gridy = 1; panel2.add(t6, c);
        add(panel1, BorderLayout.NORTH);
        add(panel2, BorderLayout.SOUTH);
    private static void createAndShowGUI() {
        frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JComponent newContentPane = new TestWeight();
        newContentPane.setOpaque(true);
        frame.setContentPane(newContentPane);
        frame.setSize(600, 180);
        frame.setTitle("Test");
        frame.setVisible(true);
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
}Thanks for looking into it!

Try dragging the right side of the frame to the right to see what happens when
t3 can be displayed at its prefWidth.
The relative weight proportions aren't literal; you have to play with them.
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.Insets;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
public class TestWeightRx extends JPanel {
    private static final long serialVersionUID = 1L;
    static JFrame frame;
    public TestWeightRx() {
        super(new BorderLayout());
        final JPanel panel1 = new JPanel(new GridBagLayout());
        panel1.setBorder(BorderFactory.createTitledBorder("Misbehaviour on " +
                "dimension-fixed width TextFields"));
        JTextField t1 = new JTextField();
        final JTextField t2 = new JTextField();
        final JTextField t3 = new JTextField();
        t1.setMinimumSize(new Dimension(600, t1.getPreferredSize().height));
        t2.setMinimumSize(new Dimension(600, t2.getPreferredSize().height));
        t3.setMinimumSize(new Dimension(600, t3.getPreferredSize().height));
        t1.setPreferredSize(new Dimension(600, t1.getPreferredSize().height));
        t2.setPreferredSize(new Dimension(600, t2.getPreferredSize().height));
        t3.setPreferredSize(new Dimension(600, t3.getPreferredSize().height));
        Dimension d = t1.getPreferredSize();
        d.width = 600;
        t1.setPreferredSize(d);
        t2.setPreferredSize(d);
        t3.setPreferredSize(d);
        t1.setText("t1, c.weightx == 1.0, preferred size width == 600");
        t2.setText("t2, 0.8, 600");
        t3.setText("t3, 0.2, 600");
        GridBagConstraints c = new GridBagConstraints();
        c.anchor = GridBagConstraints.LINE_START;
        c.fill = GridBagConstraints.HORIZONTAL;
        c.gridwidth = 2;
        c.weightx = 1.0;
        c.gridx = 0; c.gridy = 0; panel1.add(t1, c);
        c.gridwidth = 1;
        c.weightx = 0.46;
        c.gridx = 0; c.gridy = 1; panel1.add(t2, c);
        c.weightx = 0.1125;
        c.gridx = 1; c.gridy = 1; panel1.add(t3, c);
        JPanel panel2 = new JPanel(new GridBagLayout());
        panel2.setBorder(BorderFactory.createTitledBorder("Right behaviour " +
                "on shorter TextFields, but TextField size is wrong"));
        JTextField t4 = new JTextField();
        JTextField t5 = new JTextField(7);
        JTextField t6 = new JTextField(7);
        t4.setMinimumSize(new Dimension(4000, t4.getPreferredSize().height));
        t4.setPreferredSize(new Dimension(4000, t4.getPreferredSize().height));
        t4.setText("t4, c.weightx == 1.0, preferred size width == 4,000 " +
                "(also same behaviour with anything > 600");
        t5.setText("t5, 0.8");
        t6.setText("t6, 0.2");
        c.gridwidth = 2;
        c.weightx = 1.0;
        c.gridx = 0; c.gridy = 0; panel2.add(t4, c);
        c.gridwidth = 1;
        c.weightx = 0.8;
        c.gridx = 0; c.gridy = 1; panel2.add(t5, c);
        c.weightx = 0.2;
        c.gridx = 1; c.gridy = 1; panel2.add(t6, c);
        add(panel1, BorderLayout.NORTH);
        add(panel2, BorderLayout.SOUTH);
        addComponentListener(new ComponentAdapter() {
            public void componentResized(ComponentEvent e) {
                Insets insets = panel1.getInsets();
                int w = panel1.getWidth() - insets.left - insets.right;
                int t2w = t2.getWidth();
                int t3w = t3.getWidth();
                double pct2 = (double)t2w/w;
                double pct3 = (double)t3w/w;
                System.out.printf("width = %d  t2 width = %d/%.3f  " +
                                  "t3 width = %d/%.3f%n",
                                   w, t2w, pct2, t3w, pct3);
    public static void main(String[] args) {
        frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JComponent newContentPane = new TestWeightRx();
        newContentPane.setOpaque(true);
        frame.setContentPane(newContentPane);
        frame.setSize(600, 180);
        frame.setTitle("Test");
        frame.setVisible(true);
}

Similar Messages

  • Memory going bad???

    My K7T266 Pro2-RU system has been running stably since I built it last November. However, yesterday I started getting frequent system lock-ups, and I couldn't find anything I had done that would have caused it. I found that I could reproduce the problem when booting a Win98 floppy and running the MEMTEST program, which pretty well ruled out anything in WinXP. Then I discovered that changing the FSB from 133 down to 100 "cures" (groan) the problem (I'm running an XP1500+ and one stick of PC2100 DDR RAM). It's very repeatable - MEMTEST locks up at 133, works fine at 100. My question is this - could this be the memory module going bad, or is some other degradation more likely??? [All components are high quality, no recent H/W changes.]

    Speed Fan shows +3.3V=3.26-3.31, +5=4.95-5.0, +12=12.16-12.22, -12=-12.12 to -12.03, -5=-5.35 to -5.45
    Looks like the problem is NOT with the memory - I picked up another stick (Micron vs. Crucial) and see the same situation. Also tried BIOS 3.4 and 3.6. System seems to work fine at 100 FSB (now with 512MB!), but it's irritating!!

  • Screen goes black, shut the lid for a few minutes, open the lid the turn on chime comes on and the screen comes back to life. The computer itself has continued to update just no screen. After a few minutes goes black again. Is logic board going bad?

    Screen goes black, shut the lid for a few minutes, open the lid the turn on chime comes on and the screen comes back to life. The computer itself has continued to update just no screen. After a few minutes goes black again. Is logic board going bad or graphic card issue? Trying to decide if computer is worth repairing as it was made in 2007.

    It does sound like you might have a faulty video connection. See if you can make a Genius Bar appointment at your local Apple Store.

  • G4 MDD power button going bad?

    Hi all -
    I'm using a g4 MDD dual 1gig machine. Has been working great for the past few months, till just now. When I power down, the computer won't restart, unless I unplug it. (what?) That's right, the computer works fine, I turn it off and the power button will not turn the computer on unless I physically unplug the machine for a split second. After that it powers right up (at least for now). Prior to unplugging, the power switch does nothing, no lights, no chimes, nothing. It's like there is no power going to the compuer at all.
    Does this sound like the power button is going bad or maybe something else? A few months ago I had PRAM/ PMU issues - could they be coming back?
    Any advice is much appreciated. Thanks in advance!

    I took care of my power-up issue tonight by working on my power supply. Here is the posting I made in another thread:
    Here is what I did to troubleshoot my power issue. Your power supply can be serviced and this post offers a couple thoughts and some troubleshooting suggestions. Please read it through to the end. This isn't a cure-all for all G4 Macs, but the steps I followed seem to cover a number of bases and might prove helpful to those who are really frustrated.
    I've owned a Mac every year all the way back to 1987 and have never had an issue until now and I am convinced my problem may have been triggered by a power surge or brown-out, which we seem to have experienced a lot of around here lately. This post refers to the Samsung power supply with Apple Part Number 614-0224.
    I have a G4 Dual 1.25 MDD I purchased in 2003. I have had a brief issue with powering up my CPU. It wouldn't power up last weekend. I unplugged the power cord, then reconnected it to the machine and it powered up. I reasoned the power cord had become loose, but then last night I couldn't get it to come up at all. Not even a click. No lights.
    So I tried all the easiest possible solutions: resetting the PRAM (pulling the battery from the logic board) and resetting the PMU (Power Management Unit). The switch, by the way, is located near where the ATA drives plug in to the logic board. Neither of those two things solved my problem. The CPU would still not power up.
    I checked the lithium battery voltage with a voltmeter. It was at 3.6v, so it was still good.
    I then decided my issue was probably with the power supply. With the power cord disconnected from the back of the CPU, I pulled the black power connection from the logic board and performed a power supply voltage test following the pin schematic found in this thread:
    http://docs.info.apple.com/article.html?artnum=58561
    The +5v trickle voltage found at Pin 9 was not present. I had no other voltage readings on any of the other pins. My issue HAD to be with the power supply.
    Tonight I removed the power supply by disconnecting all of the optical drives (I have two DVD burners in this unit), all of the hard drives (three) and all of the logic board connections.
    I removed all of the screws from the outer casing of the power supply, including the fat screws attaching the two black fans to the unit and the one long screw in the middle and near the edge of where the two fans are. The casing came right off.
    There have been a lot of questions as to whether there are fuses in these power supplies. There has to be some protection for them and I have yet to see any power supply that did not have a fuse or resettable circuit breaker. This power supply was no different...it has a 250W, 8A fuse that is easily accessible and is located on the same side as the male power socket, near the edge of the circuit board. It is hiding under a yellow shield and is right next to a plastic connector.
    Bingo! My fuse was blown. Many glass fuses will show some sort of blackness and mine did, as well as being able to see the actual glob of metal where the fuse burst.
    What caused a fuse to blow will be different for each machine. I believe in my case it suffered from a power surge. There were no visible signs of burns from arcing, popped capacitors, shorts or bad chips. The board was completely clean, which tells me the issue was near the power source. The fuse may also have been on the verge of popping when I unplugged and reconnected the power cord.
    Everything's speculation, but replacing the fuse did the trick in my case and I saved myself time and about $150 (on average for a used PS on eBay). I picked up a second fuse to tape to the inside of the CPU, near the power supply, so I will have a backup fuse if I need it in the future. I may also have a drive that is going bad, or I may have too many drives operating off one supply. My Mac's been configured like this for about five years now. I will replace at least two drives with new, larger capacity drives. I keep my video and digital image files on separate drives, but have a third drive I can blow out. That surely will help prolong the life of my power supply.
    While I had the computer apart I gave it a good vacuum and a little air can action. Dust can aid overheating and defeat the purpose of good airflow from fans.
    Hope this helps.

  • Is my Video Card/Display going bad??

    My display has 30-50 vertical columns, from top to bottom, across the screen. Within each column, are numerous vertical lines, like bar codes, that are pink in color. This situation happens at start up before any applications are opened. The computer(apps) works like normal, mail, safari, etc, except these lines are always in my view, on the desktop or window/page. If I "grab" a page to move it , then the whole page turns pink. If I click off of the page and then return, the page looks normal again, except for the columns of pink, vertical bars.
    Is this my display going bad or video card?? I have the ATI Radeon X850 XT video card. If it's the video card , do I replace with a new old stock (ATI Radeon X850 XT) or can I replace with a newer, better card??
    Any help GREATLY APPRECIATED!!!!! I'm Very Novice at this!!

    Hi-
    Sounds very much like a baked graphics processor.
    Have you tried cleaning the dust from the card?
    Is the fan on the card clean and rotating freely?
    If you are at all mechanically inclined, removing the fan and reapplying thermal compound is worth a try before laying out serious cash.
    As for replacement, the X850XT was the top card ever offered by Apple.
    It is also THE most rare.
    Because of this, they command high prices:
    http://www.welovemacs.com/6613594r.html
    eBay also has a number of them for similar prices.
    Radeon X850XT
    can I replace with a newer, better card??
    Only one option for better.
    A flashed (converted PC version) Geforce 7800GS:
    http://www.barefeats.com/mutant3a.html
    At less than half the price of the X850XT, it is worth considering:
    Geforce 7800 GS.

  • Sound goes off, goes bad then effects the PC

    I'm a tumblr user and I spend most of my time there on my computer. Recently videos sounds started to go off after a few loops. Then it completely goes off or goes bad like the audio damaged terribly. Even the system slows down. When I checked other sites their sounds are bad too and even chrome or something I listen from winamp gets effected. I checked my sound settings and try to test the sound then I got an error messege saying "Failed to play test tone". It gets normal after restart.
    So I thought it's hopeless and I was even thinking of formatting my pc. But when I used chrome all day I didn't encounter this problem at all.

    Some problems with Flash video playback can be resolved by disabling hardware acceleration in your Flash Player settings. (See [[Flash Plugin - Keep it up to date and troubleshoot problems|this article]] for more information on using the Flash plugin in Firefox).
    To disable hardware acceleration in Flash Player:
    #Go to this [http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues Adobe Flash Player Help page].
    #Right-click on the Flash Player logo on that page.
    #Click on '''Settings''' in the context menu. The Adobe Flash Player Settings screen will open.
    # Click on the icon at the bottom-left of the Adobe Flash Player Settings window to open the Display panel. <br/> <br/>[[Image:fpSettings1.PNG]] <br/>
    # Remove the check mark from '''Enable hardware acceleration'''.
    # Click '''Close''' to close the Adobe Flash Player Settings Window.
    # Restart Firefox.
    This [http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html Flash Player Help - Display Settings page] has more information on Flash Player hardware acceleration, if you're interested.
    Does this solve the problem? Let us know.

  • Drive going bad - Best way to save files?

    Hi,
    I've got a drive with a bad directory. I can't boot from it, but it does mount. I get a warning that it's in a special mode and that I should get all my data off of it. I have several partial backups around, but I'd like to make one good backup of everything before I start trying to change anything on the drive.
    Dragging and dropping everything via the finder into a folder on another drive didn't work. I got an error message saying some files could not be read and wouldn't be copied and I don't know which files those are.
    Suggestions, please?

    Thanks, but I'm having trouble making that work.
    It's a long story, but the only drive I have that's bigger than the drive that's going bad is the one in my Time Capsule (please don't ask why I don't have a good, recent backup on my Time Capsule. Believe me, I wish I did). I have tried using ditto to copy files to a new folder on the Time Capsule, but it is veeeeerrrrrrrrrryyyy slow.
    As a test, I tried dittoing some files to a different external drive and the job was done quickly.
    Is there some difference between the Time Capsule and another external hard drive?
    The Time Capsule is connected via Ethernet and the other external drive is connected via USB.
    I'm really confused as to why this didn't work and would appreciate any insight anyone has.
    Thanks,
    Thad

  • My IMac 21.5 mid 2010's HD is going bad on it, after upgrading to mavericks it slowed way down and after it shut off and now won't come back on, would Seagate Barracuda ST2000DM001 2TB Serial ATA Hard Drive - 7200RPM, 64MB, SATA 6Gb/s worked?

    My IMac 21.5 mid 2010's HD is going bad on it, after upgrading to mavericks it slowed way down and after it shut off and now won't come back on, I call apple support and they told me to bring it in but the nearest store is about two hours away. They said I need it to erase my hard drive but I have too many family pics on it.
    would Seagate Barracuda ST2000DM001 2TB Serial ATA Hard Drive - 7200RPM, 64MB, SATA 6Gb/s worked on it? I could replace the internal and get an enclosure for the original until I get the pics out of it?
    Please advise, it's like five years of family pics I don't wanna loose them and I am worried.
    Thanks
    Al Florez

    A Brody,
    I really apprecate your very quick respond, Its too late to back up as of now, my hard drive wont load at all so I cannot follow your instruction to back it up. Learn a hard lesson but I will from now on following your link.
    Also my hard drive it is not available to do the free exchange program.
    I read the OWC instruction on how to replace the drive I was just wondering if the 2TB would work on it instead of the 1 TB they offer, I specifically asked for the Seage Barracuda because I had great experiences with it on PCs.
    Again, Thank you

  • Could both my internal drives be going bad at once?

    i posted an issue a moment ago about a write protection warning, which has never happened. so i run disk utility on this particular drive - and it stops half way through with a random error!
    ok, so i start dumping files onto my other internal drive like a mad man. and what do you know? when i try and open the particular folder on the backup drive which holds the data i just copied over, my system stalls for about 10 seconds and then apparently restarts my finder!
    could it be that both my drives are going bad at once? what could be causing this madness. i ran disk utility on the backup drive and it went without a hitch, but solved nothing.
    please help!

    Save your contents of your user folders to a external drive that you know that works in addition to the other internal. Especially your iTunes folder and User/name/Library/Safari & Mail folders contents.
    You might have something going wrong with your boot drive, it could be a bad sector, a bad OS install, corrupted OS file who the heck knows, but it's looking like your going to need to Erase with Zero option in DU (to eliminate bad sectors) and reinstall Tiger fresh, use your same name, drive name and password, update, install apps from fresh sources (don't use Migration Assistant, doesn't do copy protection and copies blindly) and copy those folders mentioned above back to the same location.
    If that doesn't work, it could be a mechanical problem, which the drive needs to be replaced under warranty or AppleCare. Give them a call and they can send you a new one and you can replace it yourself, holding your CC hostage until they receive the bad one.
    Later once your back up and running, learn to clone your boot drive to a external drive just for cases like this. It's boot-able, you can fix the original drive, you can copy files over and just erase and reverse clone.
    It will save your bacon. Read my text docs.
    http://homepage.mac.com/hogfish
    Oh if you do a fresh install, might as well do Tiger and iLife 06 in the process.

  • Disk device going bad on Notebook

    Getting alerts that disc device is going bad on my HP 2000 Notebook PC, and says I need to back up my files or I will lose them. Says the Disc name is Hitachi HTS543232A7A384 SATA Disc Device Volume:C:\;D:\  I contacted HP tech support and they said it needs to be replaced.  I don't know anything about computers so I have a lot of questions.  Is this disc the "Hard Drive" for my PC?  Approximately how much will it cost to get it fixed? Would it be cheaper to get a new PC? (paid $300 for this PC) What would make the disc go bad after only a year and a half? Was it caused from a virus? If I continue to use my PC until it completely stops working, will it do more harm?  I used my Norton 360 to back up my files but I don't know what I'm doing. Do I need to configure it somehow or does Norton automatically know what to save? Will Norton save things like pictures and Emails or does it only save things that make the PC operate? If anyone can answer any of these questions, I would appreciate the help. Thanks!

    Answered here:
    http://h30434.www3.hp.com/t5/Hardware-Upgrades-Rep​lacements/Notebook-disc-device-going-bad/m-p/42312​...

  • WLC2006 going bad any MTBF on them?

    Currently have six WLC2006 and three just went bad after four years is that about the standard for these going bad? Anyone esle have the same failures with these?
    Thanks
    Jerrod

    I have one at the 4.0.219 level that I had to pull the plug on twice to reload in last two weeks ~  just stopped communicating to AP's ... Ever get an answer on MTBF?
    When you say going bad what do you mean?  What SW version are they on?

  • Modem going bad?

    How can I tell if my internal modem is going bad? I have the dreaded dial-up and lately, I've been having problems with the modem disconnecting as soon as it connects (with the drop-down message saying I should check my settings). I try to connect again, and usually it works the second time. I recently had to change my modem setting from v.90 to v.92 because, out of the blue, it wouldn't connect to my server. I've never had any problems like this in the year and a half that I've had my Mac Mini.
    Any thoughts on this? Thanks.
    jmw
    Mac Mini   Mac OS X (10.3.9)  
    Mac Mini   Mac OS X (10.3.9)  
    Mac Mini   Mac OS X (10.3.9)  

    You need to run the modem in router mode..
    I would either bridge the TC or remove it completely because you need to get exact log info from the modem.
    Do isolation test.. ie remove all phones and filters and other devices from your phone line. Reboot the modem.. and wait for restart to complete.
    Copy out of the modem the full line stats, sync info and even better if you can get cli access and do some deeper level stuff.. (most of the tools I use are PC only.. ie dmt tools).
    Then make sure the log is turned on and giving max info and watch your connection.. if it drops without anything happening on the modem,, then the ISP is having issues.. which is possible although connection of cable and adsl is loose or non-existent.
    If it drops sync keep track of how often and the line stats, Particularly the SNR..
    See if you have an rf noise source in the house.. more if you are interested.

  • Is my MBP optical drive going bad?

    I think my late 2006 MBP 17" DVD drive might be going bad.
    Symptom: Every once in a while it freezes while playing back a movie and I have to hit the forward button in DVD Player to get it moving again. This has happened now with several different DVDs.
    Anybody else ever see that before? Is that a symptom of imminent failure?
    Thanks,
    doug

    There is no physical contact, Doug, but there is a lens that even a single speck of dust can stop from focusing the laser beam properly. It is open to the atmosphere (through the drive slot) and has the potential to pick up anything that happens to have collected on the DVDs that you insert or on the lining of the "slot" that you introduce it through.
    Film from cigarette smoke, cooking or industrial pollution can cause problem with such things long, long before the three years that you have had your MBP, too.
    You can buy cleaning discs intended for both "standalone" DVD players (like the ones you hook up to your TV) or for computer drives (though many of these are Windows specific) . They are essentially a DVD with small brush attached. Personally I usually use one that is intended for standalone DVD players, and simply play it using the DVD Player software that comes with every Mac. Mine came from the local supermarket! Works like a dream. Living in a mud brick house with wood fires I discovered the value of cleaning discs for myself very early on in the "optical disc" era!
    Cheers
    Rod

  • Hi having problems with my screen output right this momemt it varies from clear to sgva quality with occasional streaks of purple flashing through it while i am typing this is my screen going bad just updated nothing has been spilled in or on it.

    currently clear and ok.  Could my screen be going bad after only four years?  output resolution this after was poor no better than a PC jr of the 80's went in and recheck my perferences and they seem all in order.  Only thing I can come up with is a video card going bad or screen malfunction.  Going to take in to genius bar.  I Don't think I have any malware on it.  Anybody with any ideas.  Need this machine to complete my college courses in photoshop and illustrator.  Only have 2 gigs of memory but that has worked fine up till today.  Occasionally screen is darken on the edges till I jump into a program or the internet.  Thanks for any suggestions  Douglaswilliams1@mac .com

    currently clear and ok.  Could my screen be going bad after only four years?  output resolution this after was poor no better than a PC jr of the 80's went in and recheck my perferences and they seem all in order.  Only thing I can come up with is a video card going bad or screen malfunction.  Going to take in to genius bar.  I Don't think I have any malware on it.  Anybody with any ideas.  Need this machine to complete my college courses in photoshop and illustrator.  Only have 2 gigs of memory but that has worked fine up till today.  Occasionally screen is darken on the edges till I jump into a program or the internet.  Thanks for any suggestions  Douglaswilliams1@mac .com

  • Is my hard drive going bad?

    What are some of the signs of a hard drive going bad?
    Lately my computer has been acting funny. Every few seconds I hear noises like my computer is trying to do something but then it winds down then stops. It's sounds like it could be the hard drive, but I'm not sure. It even does this when the computer is in sleep mode. I'm not sure what else to do. I've ran several Utillity programs such as Tech Tool Pro and Disk Warrior. I've also ran Disk Utility. While it's doing this it sometimes causes a lag (spinning beach ball) in some of the programs I'm using.
    Does it sound like I may need to buy a new hard drive? If so, any suggestions would be much appreciated. Right now I have a 80gig hard drive.
    thanks,
    Tim

    Hello again Tim,
    Maybe your machine is not in as bad shape as you are trying not to think about. You have had no errors reported by the hardware test or Tech Tool. Chances are you have a corrupted system cache, internet cache and a couple of .plist (preference) files, which common and not difficult to cure.
    First thing to do is to install and run a cache cleaner. I've attached the link to Onyx. After you've installed and opened Onyx select the cleaning button. Then select system cache and internet cache and run it.
    You should also delete the preference files for Mail and for Safari and any other apps that seem to hang. The easiest way to find them is by typing the app's name into the search box of a Finder window and delete the .plist files. You can delete any of these files for slow apps without danger of removing important files - anything with .plist is OK. I've also attached a link to free app that checks all your system preference files. It may pick up on the corruption without eliminating them one by one.
    Don't pull the RAM yet! There's still a few more tricks to try.
    Onyx - http://www.titanium.free.fr/pgs/english.html
    Preferential treatment - http://www.versiontracker.com/dyn/moreinfo/macosx/22790

Maybe you are looking for

  • Barcoded form with XML-data

    Hi all, In our solution we have some barcodes on a form (7 barcodes on the one that I am using), they contain compressed XML data (I know that this uses much space in the barcode - anyway it should work regardless of this). What the interesting thing

  • Application Won't Remain Open

    Every time I open my mail it will open for maybe half a second then show this: The application Mail quit unexpectedly Mac OS X and other applications are not affected. Click Reopen to open the application again. Click Report to see more details or se

  • SBLW-XPWEB-W3-US how can i get

    I recently exchanged my computer and removed all the upgrades i had on the older one and installed it on this one. i installed my li've 5. sound and game port card but i can't use it. windows does recognized it but when i install the file you so loid

  • Why do I get INVALID URL when I try to use links thru facebook?

    I use a laptop, running Windows7, with Mozilla and Safari as my main browsers. I've noticed that 75% of the time,(when I'm on Firefox) and I am on Facebook, when I try to play my games I get INVALID URL. If it happens on Mozilla it also happens on Sa

  • Indesign 5 crashes on opening on my Retina.

    Indesign 5 crashes on opening on my Retina. Works fine on my other Macbook. Mountain Lion on both. Indesign 3 works fine on both computers.