Static on Monitor

The right side of my monitor is buzzing. It looks like static. I'm noticing my radio is also experiencing static and there is an audible buzzing on my iPhone. Thoughts?

Okay, the problem appears to be a larger one because if I don't boot the laptop while it's connected to the external display, my laptop display only shows a bunch of scrambled colours. It doesn't do this with a safe boot...any ideas?
I appreciate any help.

Similar Messages

  • Static on monitor when computer wakes from sleep

    When the mac mini comes out of sleep mode, the screen is scrambled as if you are watching a TV station with no signal. There seems to be a wide spread problem with the mac mini. Is there a fix for this?
    Also, I read that the mini is HD. It is currently connected to a Samsung Synmaster 2333HD 23'' monitor. Is there something that needs to be done to have the output become HD?

    You might try looking at these Apple support articles:
    http://support.apple.com/kb/PH11099
    http://support.apple.com/kb/PH10662 - very simple suggestions only
    Here is another thread with a suggestion:
    https://discussions.apple.com/message/18848093#18848093
    You also might want to consider filing a feedback report. A lot of people are having similiar problems:
    http://www.apple.com/feedback/
    If you monitor the "More Like This" box (top right), other threads appear. Opening them usually displays other threads.

  • Intermittent static on external monitor with MacBook Pro

    I have a MBP (mid-2009) and added an Acer external monitor last year.  When I plug the monitor in or the computer wakes for sleep I often get this intermittent static; the monitor alternates between displaying correctly and displaying static.  The period between static can change...one time when I plugin the external monitor it can be 20 seconds and the next time I plug it in it might be 2 seconds between static and regular display. 
    I can't imagine I'm the only one that has this issue.  I've searched endlessly but haven't found anyone else with the same specific problem.  Hopefully there's a solution. 
    Something that's extra quirky is that I run any number of programs on a daily basis including stock brokerage application(Java based), browsers, programming applications, etc. but none of them triggers this behavior EXCEPT iTunes.  Not sure if that helps but maybe it does.
    Any help is greatly appreciated.  I figured I've wasted an hour or more of my life plugging and unplugging the monitor cable trying to get it to run without the static so it was time to ask for help!
    Here's a link to a video...I figured this would make it easy to understand the issue.  http://tinypic.com/player.php?v=11al7yv%3E&s=8#.U3bfpFhdVK4

    Hello dscher,
    The article linked below provides some useful troubleshooting steps that you may find helpful.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT1573
    Cheers,
    Allen

  • No network interfaces showing

    Hello everyone. I have been using arch linux for a few months now and loving it, except for one weirdly persistent problem with my wireless. In fact this is the third time it has happened to me and have been unable to fix it. The last two times I simply reinstalled arch after failure of any progress but that is very tedious, timewasting and most important unnecessary, so I am calling upon the arch-linux forum for help.
    Basically my problem is this, I have been using wifi-menu to connect to my wireless network since I got arch and everything was going smoothly, no problems at all, until one day I booted up my computer and was unable to find any connections what so ever. At first I thought it was just my router crashing or something but everyone else was able to connect fine so I ran the command iw dev and was surprised to see that there was no output. It had discovered no connections or interfaces at all, not just my personal connection had dissapeared but so had all of my neighbours. I tried plugging in an ethernet cable to my laptop but was unable to receive any connection from that either. It may be helpful to note that in the past the interface for my wireless connections changed at random. It changed from wlp2s0 to wlo1.
    Here are somethings that I have tried doing recently to fix the problem.
    Although I doubted it would help me as my problem seems to be that I have no wireless interfaces available, I had heard that having multiple packages, e.g dhpcd and netctl, handling your connection at once can cause conflicts. I tried disabling all dhpcd services running because I believe netctl is what wifi-menu uses. Here is the current states of my services from the command systemctl list-unit-files.
    UNIT FILE STATE
    proc-sys-fs-binfmt_misc.automount static
    org.freedesktop.hostname1.busname static
    org.freedesktop.locale1.busname static
    org.freedesktop.login1.busname static
    org.freedesktop.machine1.busname static
    org.freedesktop.timedate1.busname static
    dev-hugepages.mount static
    dev-mqueue.mount static
    proc-sys-fs-binfmt_misc.mount static
    sys-fs-fuse-connections.mount static
    sys-kernel-config.mount static
    sys-kernel-debug.mount static
    tmp.mount static
    systemd-ask-password-console.path static
    systemd-ask-password-wall.path static
    session-c1.scope static
    alsa-restore.service static
    alsa-state.service static
    alsa-store.service static
    [email protected] disabled
    avahi-daemon.service disabled
    avahi-dnsconfd.service disabled
    canberra-system-bootup.service disabled
    canberra-system-shutdown-reboot.service disabled
    canberra-system-shutdown.service disabled
    colord.service static
    console-getty.service disabled
    console-shell.service disabled
    [email protected] static
    cronie.service disabled
    dbus-org.freedesktop.hostname1.service static
    dbus-org.freedesktop.locale1.service static
    dbus-org.freedesktop.login1.service static
    dbus-org.freedesktop.machine1.service static
    dbus-org.freedesktop.timedate1.service static
    dbus.service static
    debug-shell.service disabled
    dhcpcd.service disabled
    [email protected] disabled
    dmeventd.service static
    emergency.service static
    ftpd.service disabled
    [email protected] enabled
    [email protected] static
    gpm.service disabled
    httpd.service disabled
    initrd-cleanup.service static
    initrd-parse-etc.service static
    initrd-switch-root.service static
    initrd-udevadm-cleanup-db.service static
    ip6tables.service disabled
    iptables.service disabled
    kmod-static-nodes.service static
    krb5-kadmind.service disabled
    krb5-kdc.service disabled
    krb5-kpropd.service disabled
    [email protected] static
    lvm-monitoring.service disabled
    lvmetad.service static
    mdadm.service disabled
    [email protected] static
    mkinitcpio-generate-shutdown-ramfs.service static
    mysqld.service disabled
    [email protected] disabled
    [email protected] disabled
    netctl-sleep.service disabled
    netctl.service disabled
    [email protected] static
    [email protected] enabled
    [email protected] enabled
    nscd.service disabled
    ntop.service disabled
    polkit.service static
    quotaon.service static
    rescue.service static
    [email protected] static
    rrdcached.service disabled
    [email protected] static
    [email protected] disabled
    systemd-ask-password-console.service static
    systemd-ask-password-wall.service static
    [email protected] static
    systemd-binfmt.service static
    systemd-fsck-root.service static
    [email protected] static
    systemd-halt.service static
    systemd-hibernate.service static
    systemd-hostnamed.service static
    systemd-hybrid-sleep.service static
    systemd-initctl.service static
    systemd-journal-flush.service static
    systemd-journal-gatewayd.service static
    systemd-journald.service static
    systemd-kexec.service static
    systemd-localed.service static
    systemd-logind.service static
    systemd-machined.service static
    systemd-modules-load.service static
    systemd-networkd.service disabled
    [email protected] disabled
    systemd-poweroff.service static
    systemd-quotacheck.service static
    systemd-random-seed.service static
    systemd-readahead-collect.service disabled
    systemd-readahead-done.service static
    systemd-readahead-drop.service disabled
    systemd-readahead-replay.service disabled
    systemd-reboot.service static
    systemd-remount-fs.service static
    [email protected] static
    systemd-shutdownd.service static
    systemd-suspend.service static
    systemd-sysctl.service static
    systemd-timedated.service static
    systemd-tmpfiles-clean.service static
    systemd-tmpfiles-setup-dev.service static
    systemd-tmpfiles-setup.service static
    systemd-udev-settle.service static
    systemd-udev-trigger.service static
    systemd-udevd.service static
    systemd-update-utmp-runlevel.service static
    systemd-update-utmp.service static
    systemd-user-sessions.service static
    systemd-vconsole-setup.service static
    talk.service static
    [email protected] static
    tor.service disabled
    udisks2.service static
    [email protected] static
    uuidd.service static
    [email protected] disabled
    [email protected] disabled
    wpa_supplicant.service disabled
    [email protected] disabled
    -.slice static
    machine.slice static
    system.slice static
    user.slice static
    avahi-daemon.socket disabled
    dbus.socket static
    dmeventd.socket static
    git-daemon.socket disabled
    krb5-kpropd.socket disabled
    lvmetad.socket static
    rlogin.socket disabled
    rrdcached.socket disabled
    rsh.socket disabled
    syslog.socket static
    systemd-initctl.socket static
    systemd-journal-gatewayd.socket disabled
    systemd-journald.socket static
    systemd-shutdownd.socket static
    systemd-udevd-control.socket static
    systemd-udevd-kernel.socket static
    talk.socket disabled
    telnet.socket disabled
    uuidd.socket disabled
    basic.target static
    bluetooth.target static
    busnames.target static
    cryptsetup.target static
    ctrl-alt-del.target disabled
    default.target static
    emergency.target static
    final.target static
    getty.target static
    graphical.target static
    halt.target disabled
    hibernate.target static
    hybrid-sleep.target static
    initrd-fs.target static
    initrd-root-fs.target static
    initrd-switch-root.target static
    initrd.target static
    kexec.target disabled
    local-fs-pre.target static
    local-fs.target static
    multi-user.target static
    network-online.target static
    network.target static
    nss-lookup.target static
    nss-user-lookup.target static
    paths.target static
    poweroff.target disabled
    printer.target static
    reboot.target disabled
    remote-fs-pre.target static
    remote-fs.target enabled
    rescue.target disabled
    rpcbind.target static
    shutdown.target static
    sigpwr.target static
    sleep.target static
    slices.target static
    smartcard.target static
    sockets.target static
    sound.target static
    suspend.target static
    swap.target static
    sysinit.target static
    system-update.target static
    time-sync.target static
    timers.target static
    umount.target static
    systemd-readahead-done.timer static
    systemd-tmpfiles-clean.timer static
    206 unit files listed.
    I also tried disabling netctl@(my profile).service and left netctl@(my other profile).service (I have multiple profiles from when my interface name changed) enabled to make sure there were no conflicts there. Just so you know when my problem occurred neither wireless connections were enabled at the time. As I said I was using wifi-menu to manually connect after start up.
    The only thing I have read about solutions similar to my problem is the mention of getting wireless drivers in the arch-wiki but I already have broadcom-wl drivers installed(although I may not have set them up this time over as they were not active meaning I was probably using broadcom brcmsmac/brcmfmac or b43). I thought that possibly my the drivers had somehow been disabled and when I checked with lsmod | grep broadcom nothing came up. I then loaded the module with sudo modprobe broadcom. Now lsmod | grep broadcom returns two results.
    broadcom 7334 0
    libphy 21639 1 broadcom
    Here is what I currently get from lsmod | less.
    Module Size Used by
    nls_iso8859_1 4421 1
    nls_cp437 5953 1
    vfat 10119 1
    fat 51960 1 vfat
    cfg80211 431038 0
    broadcom 7334 0
    libphy 21639 1 broadcom
    snd_hda_codec_hdmi 36588 5
    uvcvideo 72804 0
    videobuf2_vmalloc 3304 1 uvcvideo
    videobuf2_memops 2335 1 videobuf2_vmalloc
    videobuf2_core 29255 1 uvcvideo
    videodev 122955 2 uvcvideo,videobuf2_core
    btusb 20136 0
    bluetooth 342577 2 btusb
    coretemp 6390 0
    iTCO_wdt 5375 0
    hp_wmi 7595 0
    sparse_keymap 3146 1 hp_wmi
    6lowpan_iphc 11364 1 bluetooth
    rfkill 15619 3 cfg80211,hp_wmi,bluetooth
    nouveau 1080866 2
    snd_hda_codec_idt 43700 1
    snd_hda_codec_generic 53211 1 snd_hda_codec_idt
    joydev 9631 0
    media 12103 2 uvcvideo,videodev
    mousedev 10464 0
    kvm_intel 132876 0
    iTCO_vendor_support 1929 1 iTCO_wdt
    hid_generic 1153 0
    ir_lirc_codec 4795 0
    snd_hda_intel 37704 0
    mxm_wmi 1467 1 nouveau
    ttm 64361 1 nouveau
    drm_kms_helper 35540 1 nouveau
    snd_hda_codec 99871 4 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel
    evdev 10629 19
    lirc_dev 11391 1 ir_lirc_codec
    ir_rc6_decoder 3561 0
    ir_nec_decoder 3113 0
    ir_sanyo_decoder 2861 0
    ir_rc5_decoder 2473 0
    ir_sony_decoder 2379 0
    ir_mce_kbd_decoder 4822 0
    ir_jvc_decoder 2601 0
    drm 237667 4 ttm,drm_kms_helper,nouveau
    r8169 58423 0
    hp_accel 16520 0
    kvm 404172 1 kvm_intel
    rc_rc6_mce 1380 0
    mac_hid 3305 0
    ene_ir 14142 0
    serio_raw 4977 0
    lpc_ich 13368 0
    jmb38x_ms 11144 0
    lis3lv02d 11251 1 hp_accel
    rc_core 16731 12 lirc_dev,ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,ene_ir,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_sanyo_decoder,rc_rc6_mce
    hwmon 3057 2 coretemp,nouveau
    memstick 7504 1 jmb38x_ms
    mii 4027 1 r8169
    crc32c_intel 14185 0
    input_polldev 2818 1 lis3lv02d
    i2c_i801 11269 0
    i2c_algo_bit 5391 1 nouveau
    i2c_core 24824 6 drm,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau,videodev
    i7core_edac 17669 0
    edac_core 44694 1 i7core_edac
    microcode 16837 0
    ac 3334 0
    snd_hwdep 6332 1 snd_hda_codec
    snd_pcm 79815 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
    snd_timer 18718 1 snd_pcm
    pcspkr 2027 0
    snd 59286 8 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
    soundcore 5418 1 snd
    psmouse 88854 0
    shpchp 25393 0
    wmi 8251 3 hp_wmi,mxm_wmi,nouveau
    video 11705 1 nouveau
    thermal 8556 0
    battery 7533 0
    button 4477 1 nouveau
    acpi_cpufreq 9818 1
    processor 24385 1 acpi_cpufreq
    ext4 481838 2
    crc16 1359 2 ext4,bluetooth
    mbcache 6074 1 ext4
    jbd2 82704 1 ext4
    usb_storage 48231 1
    hid_microsoft 3202 0
    usbhid 40577 0
    hid 91094 3 hid_generic,hid_microsoft,usbhid
    sd_mod 36882 5
    sr_mod 14930 0
    crc_t10dif 1039 1 sd_mod
    cdrom 34880 1 sr_mod
    crct10dif_common 1372 1 crc_t10dif
    atkbd 16806 0
    libps2 4187 2 atkbd,psmouse
    ahci 23627 2
    libahci 21484 1 ahci
    libata 172264 2 ahci,libahci
    sdhci_pci 12219 0
    sdhci 28916 1 sdhci_pci
    firewire_ohci 31781 0
    ehci_pci 3928 0
    led_class 3547 2 sdhci,hp_accel
    scsi_mod 134432 4 usb_storage,libata,sd_mod,sr_mod
    ehci_hcd 64491 1 ehci_pci
    firewire_core 52100 1 firewire_ohci
    mmc_core 95529 2 sdhci,sdhci_pci
    crc_itu_t 1363 1 firewire_core
    usbcore 182430 6 btusb,uvcvideo,usb_storage,ehci_hcd,ehci_pci,usbhid
    usb_common 1648 1 usbcore
    i8042 12950 1 libps2
    serio 10721 6 serio_raw,atkbd,i8042,psmouse
    And the output from lspci -v for Ethernet controller is:
    03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
    Subsystem: Hewlett-Packard Company Device 3659
    Flags: bus master, fast devsel, latency 0, IRQ 46
    I/O ports at 5000 [size=256]
    Memory at d4104000 (64-bit, prefetchable) [size=4K]
    Memory at d4100000 (64-bit, prefetchable) [size=16K]
    Expansion ROM at d4110000 [disabled] [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: r8169
    Kernel modules: r8169
    I find it odd that this is happening to me on arch linux only. My windows 8 is fine (I have a dual boot) and even when I used Manjaro over the course of a couple of months, which is based on arch, it worked fine for me. I was using wicd on Manjaro and am thinking of using that next time for arch. It is also important to remember that it's not only my wireless that's not working, neither is my wired connection.
    Any help would be appreciated. I have no idea what to do to fix it and can not find any reports of similar problems happening to anyone else. I really want to get back to linux. My productivity has dropped alot since I have been using Windows 8. If you need me to post the output of any commands just say and I will do so. Once again thank you for any help.

    Haha yea I'm sure.
    Yea I know but I could never get it to work. Then again I haven't used wired on arch before.
    Sure it's:
    00:00.0 Host bridge [0600]: Intel Corporation Core Processor DMI [8086:d132] (rev 11)
    00:03.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express Root Port 1 [8086:d138] (rev 11)
    00:08.0 System peripheral [0880]: Intel Corporation Core Processor System Management Registers [8086:d155] (rev 11)
    00:08.1 System peripheral [0880]: Intel Corporation Core Processor Semaphore and Scratchpad Registers [8086:d156] (rev 11)
    00:08.2 System peripheral [0880]: Intel Corporation Core Processor System Control and Status Registers [8086:d157] (rev 11)
    00:08.3 System peripheral [0880]: Intel Corporation Core Processor Miscellaneous Registers [8086:d158] (rev 11)
    00:10.0 System peripheral [0880]: Intel Corporation Core Processor QPI Link [8086:d150] (rev 11)
    00:10.1 System peripheral [0880]: Intel Corporation Core Processor QPI Routing and Protocol Registers [8086:d151] (rev 11)
    00:1a.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 05)
    00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 05)
    00:1c.0 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [8086:3b42] (rev 05)
    00:1c.1 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 [8086:3b44] (rev 05)
    00:1c.3 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 [8086:3b48] (rev 05)
    00:1c.4 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 [8086:3b4a] (rev 05)
    00:1c.7 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 8 [8086:3b50] (rev 05)
    00:1d.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] (rev 05)
    00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev a5)
    00:1f.0 ISA bridge [0601]: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller [8086:3b03] (rev 05)
    00:1f.2 SATA controller [0106]: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller [8086:3b2f] (rev 05)
    00:1f.3 SMBus [0c05]: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller [8086:3b30] (rev 05)
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT216M [GeForce GT 230M] [10de:0a28] (rev a2)
    01:00.1 Audio device [0403]: NVIDIA Corporation High Definition Audio Controller [10de:0be2] (rev a1)
    02:00.0 Network controller [0280]: Broadcom Corporation BCM43225 802.11b/g/n [14e4:4357] (rev 01)
    03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 03)
    04:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7160 [1131:7160] (rev 03)
    05:00.0 FireWire (IEEE 1394) [0c00]: JMicron Technology Corp. IEEE 1394 Host Controller [197b:2380]
    05:00.1 System peripheral [0880]: JMicron Technology Corp. SD/MMC Host Controller [197b:2382]
    05:00.2 SD Host controller [0805]: JMicron Technology Corp. Standard SD Host Controller [197b:2381]
    05:00.3 System peripheral [0880]: JMicron Technology Corp. MS Host Controller [197b:2383]
    05:00.4 System peripheral [0880]: JMicron Technology Corp. xD Host Controller [197b:2384]
    ff:00.0 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture Generic Non-Core Registers [8086:2c52] (rev 04)
    ff:00.1 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture System Address Decoder [8086:2c81] (rev 04)
    ff:02.0 Host bridge [0600]: Intel Corporation Core Processor QPI Link 0 [8086:2c90] (rev 04)
    ff:02.1 Host bridge [0600]: Intel Corporation Core Processor QPI Physical 0 [8086:2c91] (rev 04)
    ff:03.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller [8086:2c98] (rev 04)
    ff:03.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Target Address Decoder [8086:2c99] (rev 04)
    ff:03.4 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Test Registers [8086:2c9c] (rev 04)
    ff:04.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Control Registers [8086:2ca0] (rev 04)
    ff:04.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Address Registers [8086:2ca1] (rev 04)
    ff:04.2 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Rank Registers [8086:2ca2] (rev 04)
    ff:04.3 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers [8086:2ca3] (rev 04)
    ff:05.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Control Registers [8086:2ca8] (rev 04)
    ff:05.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Address Registers [8086:2ca9] (rev 04)
    ff:05.2 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Rank Registers [8086:2caa] (rev 04)
    ff:05.3 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers [8086:2cab] (rev 04)

  • Mac mini screen blurs/fuzzy

    Hi I bought a mac a while ago, anyway I decided to begin using it but i'm noticing over time my screen becomes fluzzy / static (The monitors fine and i've tested it on my main pc)

    What model Mac Min?
    How is it connected?
    What specific monitor?
    Is the monitor connected top the PC the same way with same cable?
    We do not respond privately via email in this form

  • Problem with "NoClassDefFoundError"

    I tried to compile and run "MathOps.java (from Eckel=C03) and I get the following 3 errors:
    C:\java>javac -cp . MathOps.java
    MathOps.java:5: package com.bruceeckel.simpletest does not exist
    import com.bruceeckel.simpletest.*;
    ^
    MathOps.java:9: cannot resolve symbol
    symbol: class Test
    location: class MathOps
    static Test monitor=new Test ();
    ^
    MathOps.java:9:cannot resolve symbol
    symbol: class Test
    location: class MathOps
    static Test monitor=new Test ();
    ^
    3 errors
    What did I do wrong?
    Compiler did not create a Math.Ops class file.
    My set classpath is set to C:\java (where all my .java files are located)
    Thank you for your great help.
    Charles.

    You need to study how packages are used in Java.
    Your .java file needs to live in the directory structure matching its defined package.
    In your example, the MathOps.java class defines com.bruceeckel.simpletest as the package.
    Therefore, your file needs to live here:
    c:\java\com\bruceeckel\simpletest\MathOps.java
    And when you compile, you need to reference the class's package:
    c:\java> javac -classpath . com.bruceeckel.simpletest.MathOps
    And to execute:
    c:\java> java -classpath . com.bruceeckel.simpletest.MathOps

  • Compiling trouble

    I am currently reading "Thinking in Java" 3rd edition by Bruce Eckel but am having trouble compiling his source code. I think it has something to do with path or classpath.
    Here is the source and compiler errors.
    import com.bruceeckel.simpletest.*;
    class Number {
    int i;
    public class Assignment {
    static Test monitor = new Test();
    public static void main(String[] args) {
    Number n1 = new Number();
    Number n2 = new Number();
    n1.i = 9;
    n2.i = 47;
    System.out.println("1: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    n1 = n2;
    System.out.println("2: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    n1.i = 27;
    System.out.println("3: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    monitor.expect(new String[] {
    "1: n1.i: 9, n2.i: 47",
    "2: n1.i: 47, n2.i: 47",
    "3: n1.i: 27, n2.i: 27"
    } ///:~
    G:\javaTutSource\c03>javac Assignment.java
    g:\javaTutSource\com\bruceeckel\simpletest\Test.java:9: package java.util.regex
    does not exist
    import java.util.regex.*;
    ^
    g:\javaTutSource\com\bruceeckel\simpletest\TestStream.java:9: package java.util.
    regex does not exist
    import java.util.regex.*;
    ^
    g:\javaTutSource\com\bruceeckel\simpletest\Test.java:24: cannot resolve symbol
    symbol : method getStackTrace ()
    location: class java.lang.Throwable
    new Throwable().getStackTrace()[1].getClassName();
    ^
    g:\javaTutSource\com\bruceeckel\simpletest\TestExpression.java:6: package java.u
    til.regex does not exist
    import java.util.regex.*;
    ^
    g:\javaTutSource\com\bruceeckel\simpletest\TestExpression.java:9: cannot resolve
    symbol
    symbol : class Pattern
    location: class com.bruceeckel.simpletest.TestExpression
    private Pattern p;
    ^
    g:\javaTutSource\com\bruceeckel\simpletest\Test.java:44: cannot resolve symbol
    symbol : constructor RuntimeException (java.io.IOException)
    location: class java.lang.RuntimeException
    throw new RuntimeException(e);
    ^
    g:\javaTutSource\com\bruceeckel\simpletest\Test.java:67: cannot resolve symbol
    symbol : constructor RuntimeException (java.lang.InterruptedException)
    location: class java.lang.RuntimeException
    throw new RuntimeException(e);
    ^
    g:\javaTutSource\com\bruceeckel\simpletest\TestStream.java:50: cannot resolve sy
    mbol
    symbol : constructor RuntimeException (java.io.FileNotFoundException)
    location: class java.lang.RuntimeException
    throw new RuntimeException(e);
    ^
    g:\javaTutSource\com\bruceeckel\simpletest\TestExpression.java:19: cannot resolv
    e symbol
    symbol : variable Pattern
    location: class com.bruceeckel.simpletest.TestExpression
    this.p = Pattern.compile(expression);
    ^
    9 errors
    Any help will be appreciated as i really want to lean java!!!

    See if this helps with how packages are structured.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file: package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

  • Synchronized scope/performance confusion

    I have a servlet that takes the path to an image and the desired size and resizes it and writes it back out through the response.
    In it there are a couple of lines that need to be throttled or the server quickly becomes overloaded when several people are looking at different pages of thumbnails that are being rendered from large images. To do this I started playing around with synchronizing them. This caused a larger then expected performance decrease for two methods and actually increased performance in the third. So the question is what on earth is the difference between the following three examples
    //the servlets doPost do get calls doPost.
        protected void doPost(HttpServletRequest request,
                HttpServletResponse response) throws ServletException, IOException {
             java2D(request, response);
    EXAMPLE 1 - This was just horrible I understands it locks the whole method
         private synchronized void java2D(HttpServletRequest request, HttpServletResponse response) {
                            BufferedImage thumbImage = null; //the shrunken image
                            Image smallImage;
                   Graphics2D g = thumbImage.createGraphics();
                   g.drawImage(smallImage,0,0,null);
    EXAMPLE 2 - This really did not behave any different then the above example.
         private void java2D(HttpServletRequest request, HttpServletResponse response) {
                            BufferedImage thumbImage = null; //the shrunken image
                            Image smallImage;
                       synchronized(this){
                   Graphics2D g = thumbImage.createGraphics();
                   g.drawImage(smallImage,0,0,null);
    EXAMPLE 3 - This time I created a static inner class to do the work and it performs great (on our integration server). I am suspect that some how I am not preventing it from only being run once at a time but it seems that it should only run once as it is synchronized.
    //The inner class
         static class ImageRender {
              public static synchronized void drawImage(BufferedImage thumbImage, Image smallImage) {
                   Graphics2D g = thumbImage.createGraphics();
                   g.drawImage(smallImage,0,0,null);
         private void java2D(HttpServletRequest request, HttpServletResponse response) {
                            BufferedImage thumbImage = null; //the shrunken image
                            Image smallImage;
                   ImageRender.drawImage(thumbImage, smallImage);
             }Thanks for any discussion

    The difference between 2) and 3) is what monitor it synchronizes on. In case 3) it synchronizes on the Class object representing the inner class. My guess is that something in your server's processes is synchronizing on the servlet instance (and is therefor being blocked).
    Try creating a monitor just for this purpose as
    private static Object monitor = new Object();
      synchronized(monitor) {
         Graphics2D g = thumbImage.createGraphics();
          g.drawImage(smallImage,0,0,null);
       }But you probably ought to consider being a bit more sophisticated, like allowing up to a certain number of these things to run simultaneously and, probably, caching the results.

  • Instance Initialization Question (Why Is It Required Here???)

    In the example below, I don't understand why instance initialization is required for the line below to succeed. Any chance someone can explain it to me? :) Thanks in advance.
    THIS IS THE LINE I'M REFERRING TO
    cost = Math.round(price);
    [java]
    //: c08:Parcel9.java
    // Using "instance initialization" to perform
    // construction on an anonymous inner class.
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    import com.bruceeckel.simpletest.*;
    public interface Destination {
         String readLabel();
    public class Parcel9 {
         private static Test monitor = new Test();
         public Destination dest(final String dest, final float price) {
              return new Destination() {
                   private int cost;
                   // Instance initialization for each object:
                        cost = Math.round(price);
                        if(cost > 100)
                             System.out.println("Over budget!");
                   private String label = dest;
                   public String readLabel() { return label; }
         public static void main(String[] args) {
              Parcel9 p = new Parcel9();
              Destination d = p.dest("Tanzania", 101.395F);
              monitor.expect(new String[] {
              "Over budget!"
    [java]

    return new Destination() {
    };Here you define an anonymous local class. Anonymous classes can't have constructors, so if there are any operations that need to be done when an instance of the class is created, they have to go in the instance initializer block. (Like with regular classes, it's illegal to have anything but declarations in the class body.)
    But the particular line you refer to actually doesn't have to be there; it's possible to combine the declaration and assignment of the cost variable:    private int cost = Math.round(price);

  • Deafult route propagation in MPLS

    Hi,
    (Default Route <------) CE1------PE1---P----PE2---CE2(--->Default Route)
    In  above, Let CE1 and CE2 have default static route monitored with IP SLA.  CE and PE ospf running OSPF. The target is, if IPSLA on CE1 becomes  invalid, the static default route shuld disappear from CE1 and it should  get default route via CE2 and so on viceversa for IPSLA of CE2 is  down...
    I tried above scenario on GNS3 it worked but when i  tried on real environment, i always needed to clear OSPF process of PE. I  have IOS-XR with v3.9.2. If is do not clear OSPF process, i will still  see PE pointing  default route towards CE ( where static default route  is invalid) but in CE, i see default route towards PE .
    I guess it is bug of IOS-XR V  3.9.2.
    CSCtq86051    BGP vpnv4 prefixes not imported into VRF table under special cases
    Can anybody plz suggest?

    Could you please share your configurations ?
    I'm not sure if you are hitting this bug.

  • Cannot find package error and cannot resolve symbol error

    Hi
    I have a file Assignment.java in C:\TIJCode\c03 folder. But this file belongs to the default package. This file imports a package com.bruceeckel.simpletest which is in C:\TIJCode\ folder. Now this package has a file named Test.java which accesses a few more files fromt he same package.
    I set the classpath to C:\TIJCode. When i try to run the Assignment file I get an error saying package com.bruceeckel.simpletest cannot be found and cannot resolve symbol error. symbol: Test Class: Assignment.
    The files in com.bruceeckel.simpletest package were not compiled. So I first tried to do that. But I get a cannot resolve symbol error while trying to compile a file NumOfLinesException which inherits SImpleTestException file. The exact error message is
    NumOfLinesException.java : 7 : cannot resolve symbol
    symbol : class SimpleTestException
    location : class com.bruceeckel.simpletest.NumOfLinesException extends SimpleTestException
    The exact code in each of above mentioned files is
    //: c03:Assignment.java
    // Assignment with objects is a bit tricky.
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    import com.bruceeckel.simpletest.*;
    class Number {
    int i;
    public class Assignment {
    static Test monitor = new Test();
    public static void main(String[] args) {
    Number n1 = new Number();
    Number n2 = new Number();
    n1.i = 9;
    n2.i = 47;
    System.out.println("1: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    n1 = n2;
    System.out.println("2: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    n1.i = 27;
    System.out.println("3: n1.i: " + n1.i +
    ", n2.i: " + n2.i);
    monitor.expect(new String[] {
    "1: n1.i: 9, n2.i: 47",
    "2: n1.i: 47, n2.i: 47",
    "3: n1.i: 27, n2.i: 27"
    } ///:~
    //: com:bruceeckel:simpletest:SimpleTestException.java
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    package com.bruceeckel.simpletest;
    public class SimpleTestException extends RuntimeException {
    public SimpleTestException(String msg) {
    super(msg);
    } ///:~
    //: com:bruceeckel:simpletest:NumOfLinesException.java
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    package com.bruceeckel.simpletest;
    public class NumOfLinesException extends SimpleTestException {
    public NumOfLinesException(int exp, int out) {
    super("Number of lines of output and "
    + "expected output did not match.\n" +
    "expected: <" + exp + ">\n" +
    "output: <" + out + "> lines)");
    } ///:~
    //: com:bruceeckel:simpletest:Test.java
    // Simple utility for testing program output. Intercepts
    // System.out to print both to the console and a buffer.
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    package com.bruceeckel.simpletest;
    import java.io.*;
    import java.util.*;
    import java.util.regex.*;
    public class Test {
    // Bit-shifted so they can be added together:
    public static final int
    EXACT = 1 << 0, // Lines must match exactly
    AT_LEAST = 1 << 1, // Must be at least these lines
    IGNORE_ORDER = 1 << 2, // Ignore line order
    WAIT = 1 << 3; // Delay until all lines are output
    private String className;
    private TestStream testStream;
    public Test() {
    // Discover the name of the class this
    // object was created within:
    className =
    new Throwable().getStackTrace()[1].getClassName();
    testStream = new TestStream(className);
    public static List fileToList(String fname) {
    ArrayList list = new ArrayList();
    try {
    BufferedReader in =
    new BufferedReader(new FileReader(fname));
    try {
    String line;
    while((line = in.readLine()) != null) {
    if(fname.endsWith(".txt"))
    list.add(line);
    else
    list.add(new TestExpression(line));
    } finally {
    in.close();
    } catch (IOException e) {
    throw new RuntimeException(e);
    return list;
    public static List arrayToList(Object[] array) {
    List l = new ArrayList();
    for(int i = 0; i < array.length; i++) {
    if(array[i] instanceof TestExpression) {
    TestExpression re = (TestExpression)array;
    for(int j = 0; j < re.getNumber(); j++)
    l.add(re);
    } else {
    l.add(new TestExpression(array[i].toString()));
    return l;
    public void expect(Object[] exp, int flags) {
    if((flags & WAIT) != 0)
    while(testStream.numOfLines < exp.length) {
    try {
    Thread.sleep(1000);
    } catch (InterruptedException e) {
    throw new RuntimeException(e);
    List output = fileToList(className + "Output.txt");
    if((flags & IGNORE_ORDER) == IGNORE_ORDER)
    OutputVerifier.verifyIgnoreOrder(output, exp);
    else if((flags & AT_LEAST) == AT_LEAST)
    OutputVerifier.verifyAtLeast(output,
    arrayToList(exp));
    else
    OutputVerifier.verify(output, arrayToList(exp));
    // Clean up the output file - see c06:Detergent.java
    testStream.openOutputFile();
    public void expect(Object[] expected) {
    expect(expected, EXACT);
    public void expect(Object[] expectFirst,
    String fname, int flags) {
    List expected = fileToList(fname);
    for(int i = 0; i < expectFirst.length; i++)
    expected.add(i, expectFirst[i]);
    expect(expected.toArray(), flags);
    public void expect(Object[] expectFirst, String fname) {
    expect(expectFirst, fname, EXACT);
    public void expect(String fname) {
    expect(new Object[] {}, fname, EXACT);
    } ///:~

    What do you have in the C:\TIJCode\ directory? Does the directory structure mimic the package structure for the stuff you're importing?

  • Back to fundamentals

    As soon as i think i get it, one or 2 paragraphs later i'm stuck again; so let me know, please, if i'm right in saying the following:
    Student newonthis = puzzled;
    here i go:
    the object reference NEWONTHIS is an object of STUDENT type [the var newonthis contains a reference to an obj of type Student] which (obj) contains the value PUZZLED.
    =============
    Now another question,pls:
    (from B Eckel's book Thinking in java)
    //: c03:EqualsMethod2.java
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    import com.bruceeckel.simpletest.*;
    class Value {
      int i;
    public class EqualsMethod2 {
      static Test monitor = new Test();
      public static void main(String[] args) {
        Value v1 = new Value();
        Value v2 = new Value();
        v1.i = v2.i = 100;
        System.out.println(v1.equals(v2));
        monitor.expect(new String[] {
          "false"
    } ///:~The output is FALSE because we are comparing primitives (integers) and not object values, right?
    thanks in advance

    Student newonthis = puzzled;
    here i go:
    the object reference NEWONTHIS is an object of STUDENT
    type [the var newonthis contains a reference to an obj
    of type Student]Correct up to here.
    which (obj) contains the value
    PUZZLED.No. That newon=puz assignment just assigns newon to point to the same Student object that puz is already pointing to. It is not the case that the object has the value puzzled. An object's "value" (which term isn't really standard, AFAIK) has nothing to do with which referenc(es) are pointing at it.
    =============
    Now another question,pls:
    (from B Eckel's book Thinking in java)
    //: c03:EqualsMethod2.java
    // From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel
    2002
    // www.BruceEckel.com. See copyright notice in
    CopyRight.txt.
    import com.bruceeckel.simpletest.*;
    class Value {
    int i;
    public class EqualsMethod2 {
    static Test monitor = new Test();
    public static void main(String[] args) {
    Value v1 = new Value();
    Value v2 = new Value();
    v1.i = v2.i = 100;
    System.out.println(v1.equals(v2));
    monitor.expect(new String[] {
    "false"
    } ///:~The output is FALSE because we are comparing
    primitives (integers) and not object values, right?It's false because you're invoking the equals method which appears not to have been overriden. If you don't override equals, you'll get Object's equals method, which just compares references, so v1.equals(v2) in that case is the same as v1==v2. That comparison is false becuase v1 and v2 refer to two different objects. If you override equals to check the value of field i, it will return true.
    Here's a chapter from Bloch's book that covers overriding equals and hashCode. You shold find more in any decent tutorial or text.
    http://developer.java.sun.com/developer/Books/effectivejava/Chapter3.pdf

  • Laptop - External Display

    Hi all,
    I'm trying to setup Arch so that when my laptop is docked it will display video on the attached DVI monitor.
    My xorg.conf:    http://paste.pocoo.org/show/285243/
    Thanks!

    First try restarting X without an xorg.conf and see what `xrandr --query` lists, then you can move on from there to build up an xorg.conf.
    Why do you have several device sections pointing to the same pci address? Afaict from what you want you need one device, one screen and several monitor sections. Maybe try following http://intellinuxgraphics.org/dualhead.html on how to configure a static dual monitor setup. By the sounds of it though you want to have it switch while X is running, then using xrandr along with either a hotkey, script/icon or an acpi event would be the way to go, as hokasch mentioned and linked to.

  • FocusLost event/navigatedOutColumn to non-DACF controls

    In the textAreaControl source I see:
    // Focus Listener implementation
    * This method is an implementaion side effect
    public void focusLost(FocusEvent event)
    When I do a focus lost event off the property panel in Designer... and add code to simply do a System.out.println("Focus Lost") on the control... nothing happens when I move to another control and the textareacontrol lost focus.
    The correct approach seems to be use the NavigatedOutColumn event which does fire. ( hurrah! )...
    BUT.... as I had a suspicion... if I enter into a DACF control, and then click in a NON-DACF control ( in this case, a secondary plain jtextfield password confirmation field )... neither FocusLost nor NavigatedOutColumn fires.
    It sorta makes sense, because we haven't navigated into a new Column. ( Is this a terminology conflict/level mix problem? It seems to be relating Column to a rowSetInfo AttributeInfo / EO/VO attribute?
    Note that, at least in my case, there are PLENTY of non DACF controls. Particularly JButtons.
    As mentioned before, I avoided ButtonControls because I had no DataItemName to associate with 'em... which seemed to cause grief in other places ( in my memory using 3.O ). I actually went back and changed all the ButtonControls I had to JButtons.
    This puts me into a rather interesting quandary... or is it safe in 3.2/JRE1.3 to use ButtonControls with no property set for the DataItemName()?
    TIA

    You are being tripped up by two things. One is a bug and the other is a difference between the 3.2 and 9i (aka 5.0) versions of the NavigationManager. The ComponentNavigationMonitor is OK though. Both of these can be worked around using the ComponentNavigationManager though the resultant code will not be compatible with the code released in the next version of JDeveloper. The solution is to rewrite the focusGained() method and write the new method _applyEdits(). The rewritten and new methods are below in a new version of the class. Notice the package name change; it is now in a new package called oracle.dacf.unsupported. This way, you can just change the package name when the next version is released:
    <code>
    // oracle/dacf/unsupported/ComponentNavigationMonitor.java
    // Oracle JDeveloper
    // Copyright (c) 2001 by Oracle Corporation
    // All rights reserved.
    package oracle.dacf.unsupported;
    // imports
    import java.awt.Component;
    import java.awt.event.FocusAdapter;
    import java.awt.event.FocusEvent;
    import java.awt.event.FocusListener;
    import javax.swing.SwingUtilities;
    import oracle.dacf.control.ApplyEditsListener;
    import oracle.dacf.control.ApplyEditsValidationException;
    import oracle.dacf.control.Control;
    import oracle.dacf.control.NavigationManager;
    ** The ComponentNavigationMonitor allows a Component, AWT or Swing,
    ** to be used in an application and still have the DAC navigation and
    ** validation event framework generate the proper events at the
    ** appropriate times. Normally, non-Control components can not
    ** participate in the DAC navigation and validation event framework
    ** because they don't have the mechanisms to notify the framework that
    ** the focus has moved.
    ** This class is implemented as a singleton and could be hooked into every
    ** non-Control Component that is displayed on the screen. It should not be
    ** attached to DAC Controls because these classes already contain the
    ** functionality contained in this class. Attaching this class to a DAC
    ** Control will minimally result in double navigation and validation
    ** eventing with the resultant performance degradation. Redundant
    ** navigation and validation could also result in anomalous application
    ** behavior.
    ** The DAC design-time and runtime framework does not automatically
    ** register non-Controls with the ComponentNavigationMonitor because of
    ** the ambiguity surrounding when this should be done. If the components
    ** are constructed using a Factory design pattern, then the factory would
    ** be the optimal place to attach this listener. If your application
    ** doesn't use this approach then you will have to individually hook each
    ** component. (Sorry, but there is no way around this fact.) You might
    ** try something like what the following code fragment illustrates in the
    ** method that instantiates the component:
    ** <blockquote>
    ** <code>
    ** TextField dateWidget =
    ** new TextField((new Date()).toLocaleString());
    ** ComponentNavigationMonitor.observe(dateWidget);
    ** </code>
    ** </blockquote>
    ** For example, if JDeveloper was used to generate code, via either the
    ** DAC wizards or the visual designer, then you would place this code in
    ** the jbInit() method of the panel or frame.
    ** @author Donald King
    public class ComponentNavigationMonitor
    extends FocusAdapter
    private NavigationManager nm;
    private static ComponentNavigationMonitor monitor;
    private static Object observeGate = new Object();
    private static final boolean _DEBUG = true;
    private ComponentNavigationMonitor()
    } // ComponentNavigationMonitor
    ** Responds to the gaining of focus by a component.
    ** This method is responsible for causing validation to be performed and
    ** restoring forcus to the proper control if validation fails.
    public void focusGained(FocusEvent evt)
    Control ctrl;
    if (nm == null)
    nm = NavigationManager.getNavigationManager();
    ctrl = nm.getFocusedControl();
    // the getChangeLevel() parameters are reversed to workaround
    // bug 1678351; fixed for 9i (aka 5.0)
    if (ctrl != null &&
    !_applyEdits(ctrl) &&
    !nm.validateFocusedControl(nm.getChangeLevel(null,ctrl)))
    Component c = ctrl.getComponent();
    // Paranoia is a good thing; the following is expensive, only do
    // it if we must
    if (c != null)
    SwingUtilities.invokeLater(new DelayedFocus(c));
    else
    // move the NavigationManager into the proper state so that it
    // can properly respond to the next control that gains focus
    nm.validateFocusChange(null);
    ** This functionality is embedded in the 9i (aka 5.0) version of
    ** NavigationManager.validateFocusedControl(int changeLevel)
    private boolean _applyEdits(Control ctrl)
    boolean ok = true;
    if (ctrl instanceof ApplyEditsListener)
    try
    ((ApplyEditsListener)ctrl).applyEdits();
    catch(ApplyEditsValidationException aeve)
    ok = false;
    return(ok);
    ** Registers the ComponentNavigationMonitor as a FocusListener.
    public static void observe(Component c)
    synchronized(observeGate)
    if (monitor == null)
    monitor = new ComponentNavigationMonitor();
    c.addFocusListener(monitor);
    ** Unregisters the ComponentNavigationMonitor as a FocusListener.
    public static void unobserve(Component c)
    synchronized(observeGate)
    if (monitor == null)
    monitor = new ComponentNavigationMonitor();
    c.removeFocusListener(monitor);
    private class DelayedFocus
    implements Runnable
    private Component pending;
    DelayedFocus(Component c)
    pending = c;
    public void run()
    if (pending != null)
    pending.requestFocus();
    private void _debug(String s)
    if (_DEBUG)
    System.out.println("ComponentNavigationMonitor: " + s);
    } // _debug
    } // ComponentNavigationMonitor
    // oracle/dacf/unsupported/ComponentNavigationMonitor.java
    // Oracle JDeveloper
    // Copyright (c) 2001 by Oracle Corporation
    // All rights reserved.
    </code>

  • External monitor filled with static, blue squares, and red dots

         My family bought a Mac like 8 or so years ago. I am unsure of the exact model, but says iMac on the back (Which isn't very specific, so I apologise).
         You'd expect problems after a few years, so when our mac became cluttered with multi-coloured lines, I wasn't surprised.
         Eventually, it got to be a problem when the screen started to have larger lines whose lights seemed to be failing. It got to a point in which the whole screen had static, and there was very little of the screen that could actually be scene. It was easy enough to fix, we just got a new monitor.
    It did the job, no more lines, the screen did have a yellow tint, but I wasn't worried.
         Now, I was watching some youtube videos, then all of a sudden, both screens stopped, and red dots appeared. After countless efforts to exit the video, I unplugged the computer. When I turned it back on, it was even worse, with blue squares filling the screen, static filling it, and countless more red dots.
         While the external monitor does not have the multicoloured lines, and such, both seem to have the same blue squares, static and red dots, at least for what I can tell.
         Curiously enough, the waiting symbol for the cursor appeared and none of the screen problems overlapped the original.
    Did I do something to it?
    Is there some way to fix it, or will I have to get a new one?
    Also, I apologise if this question is in the wrong category, I'm new.

    Welcome to the forum!
    Your GPU is failing.
    Lenovo might or might not fix it, although it's out of warranty. They are *extremely* well-aware of the problem that plagued these chips.
    Reading related threads here or on Bill Morrow's ThinkPad Forum will reveals hundreds - if not thousands - of similar cases...
    Good luck.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

Maybe you are looking for