Why do we use "super" for some methods?

What I have noticed is that in some methods we have
- (void)dealloc {
[label release];
[message release];
[super dealloc];
where at the end of the method we have [super dealloc]
Why do we have that?

The parent class may have allocated resources that you don't know about. Once you're finished deallocating resources in your object, you call the super-class' (parent-class') dealloc method to deallocate the things that it allocated. If you don't, whatever it allocated won't be deallocated.

Similar Messages

  • Need help!! How to use super in equals() method and makeCopy() method?

    This is my Name class:
    class Name {
        private String title;
        private String name;
        public Name(){
             title=" ";
             name=" ";
        public Name(String title){
             setTitle(title);
             name=" ";
        public Name(String title,String name){
             setTitle(title);
             setName(name);
        public void setTitle(String title){
             this.title=title;
        public String getTitle(){
             return title;
        public void setName(String name){
             this.name=name;
        public String getName(){
             return name;
        }   This is my Person Class
    class Person extends Name{
        private String address;
        private String tel;
        private String email;     
        public Person(){
             super();
             address=" ";
             tel=" ";
             email=" ";
        public Person(String name){
             super(name);
             address=" ";
             tel=" ";
             email=" ";
        public Person(String title,String name,String addressStr){
             super(title,name);
             setAddress(addressStr);
             tel=" ";
             email=" ";
        public Person(String title,String name,String addressStr,String phoneNum){
             super(title,name);
             setAddress(addressStr);
             setTel(phoneNum);
             email=" ";
        public Person(String title,String name,String addressStr,String phoneNum,String emailStr){
             super(title,name);
             setAddress(addressStr);
             setTel(phoneNum);
             setEmail(emailStr);
        public void setAddress(String add){
             address=add;
        public String getAddress(){
             return address;
        public void setTel(String telephone){
             tel=telephone;
        public String getTel(){
             return tel;
        public void setEmail(String emailAdd){
             email=emailAdd;
        public String getEmail(){
             return email;
         public boolean equals(Person inputRecords){
             boolean equalOrNot=false;
             if(inputRecords.super(getTitle()).equals(title))         //this is wrong
                  if(inputRecords.super(getName()).equals(name))           //this is wrong
                       if(inputRecords.getAddress().equals(address))
                            if(inputRecords.getTel().equals(tel))
                                 if(inputRecords.getEmail().equals(email))
                                      equalOrNot=true;
             return equalOrNot;   
            public void makeCopy(Person copyInto){
                 copyInto.super(setTitle(title));             //this is wrong
                 copyInto.super(setName(name));           //this is wrong
                 copyInto.setAddress(address);
                 copyInto.setTel(tel);
                 copyInto.setEmail(email);
    }How can I correct the wrong part?
    I don't understand how to use super in equals() method and makeCopy() method.

    Try something like this ...
    public boolean equals(Object other) {
      if (other==null || !(other instanceof Person)) return false;
      Person that = (Person) other;
      return getTitle().equals(that.getTitle())
          && getName().equals(that.getName())
          && getAddress().equals(that.getAddress())
          && getTel().equals(that.getTel())
          && getEmail().equals(that.getEmail())
    Notes:
    * This overrides Object's public boolean equals(Object other), which is (probably) what you meant.
    * You don't need to call "super.getWhatever" explicitly... just call "getWhatever" and let java workout where it's defined... this is better because if you then override getTitle() for example you don't need to change your equals method (which you would otherwise probably forget to do, which would probably have some interesting side effects.
    Cheers. Keith.

  • [SOLVED] Getting freezes after using dwm for some time and exiting it

    Hello, I have an Asus Ux51, with a fresh (less than a month) arch installation. If I recall correctly I had a couple of freezes in other occasions but I don't remember much about those so I rather focus on the only freeze I can more or less reproduce and I've been having lately. After using dwm for some time with a couple of programs opened (rTorrent, browser, and some terminals for instance), if I close dwm or just press the power button to shut down, it starts closing everything and either stays with a black screen, or hangs while X prints the log information. It's not always though, for example, if I just boot it, open dwm and close it without giving it much use it usually closes fine.
    Tried googling a bit to see the usual ways to troubleshoot this but didn't get really far.
    This is my /var/log/Xorg.0.log
    [ 7.573]
    X.Org X Server 1.14.2
    Release Date: 2013-06-25
    [ 7.573] X Protocol Version 11, Revision 0
    [ 7.573] Build Operating System: Linux 3.9.7-1-ARCH x86_64
    [ 7.574] Current Operating System: Linux arch 3.10.3-1-ARCH #1 SMP PREEMPT Fri Jul 26 11:26:59 CEST 2013 x86_64
    [ 7.574] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=74e92d67-41b6-4911-8ceb-009ae8c9cdab ro quiet add_efi_memmap i915.i915_enable_rc6=1 pcie_aspm=force drm.vblankoffdelay=1 i915.semaphores=1 "acpi_osi=!Windows 2012"
    [ 7.574] Build Date: 01 July 2013 10:48:42AM
    [ 7.574]
    [ 7.574] Current version of pixman: 0.30.0
    [ 7.574] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 7.574] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 7.574] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Aug 10 19:08:34 2013
    [ 7.574] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 7.575] (==) No Layout section. Using the first Screen section.
    [ 7.575] (==) No screen section available. Using defaults.
    [ 7.575] (**) |-->Screen "Default Screen Section" (0)
    [ 7.575] (**) | |-->Monitor "<default monitor>"
    [ 7.575] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 7.575] (==) Automatically adding devices
    [ 7.575] (==) Automatically enabling devices
    [ 7.575] (==) Automatically adding GPU devices
    [ 7.578] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
    [ 7.578] Entry deleted from font path.
    [ 7.578] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 7.578] Entry deleted from font path.
    [ 7.578] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 7.578] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 7.578] Entry deleted from font path.
    [ 7.578] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 7.578] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/OTF/
    [ 7.578] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 7.578] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    [ 7.578] (II) Loader magic: 0x7fdc20
    [ 7.578] (II) Module ABI versions:
    [ 7.578] X.Org ANSI C Emulation: 0.4
    [ 7.578] X.Org Video Driver: 14.1
    [ 7.578] X.Org XInput driver : 19.1
    [ 7.578] X.Org Server Extension : 7.0
    [ 7.578] (II) xfree86: Adding drm device (/dev/dri/card1)
    [ 7.579] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 7.580] (--) PCI:*(0:0:2:0) 8086:0166:1043:15a7 rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
    [ 7.580] (--) PCI: (0:1:0:0) 10de:0fd1:1043:15a7 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
    [ 7.580] Initializing built-in extension Generic Event Extension
    [ 7.580] Initializing built-in extension SHAPE
    [ 7.580] Initializing built-in extension MIT-SHM
    [ 7.580] Initializing built-in extension XInputExtension
    [ 7.580] Initializing built-in extension XTEST
    [ 7.580] Initializing built-in extension BIG-REQUESTS
    [ 7.580] Initializing built-in extension SYNC
    [ 7.580] Initializing built-in extension XKEYBOARD
    [ 7.580] Initializing built-in extension XC-MISC
    [ 7.580] Initializing built-in extension SECURITY
    [ 7.580] Initializing built-in extension XINERAMA
    [ 7.580] Initializing built-in extension XFIXES
    [ 7.580] Initializing built-in extension RENDER
    [ 7.581] Initializing built-in extension RANDR
    [ 7.581] Initializing built-in extension COMPOSITE
    [ 7.581] Initializing built-in extension DAMAGE
    [ 7.581] Initializing built-in extension MIT-SCREEN-SAVER
    [ 7.581] Initializing built-in extension DOUBLE-BUFFER
    [ 7.581] Initializing built-in extension RECORD
    [ 7.581] Initializing built-in extension DPMS
    [ 7.581] Initializing built-in extension X-Resource
    [ 7.581] Initializing built-in extension XVideo
    [ 7.581] Initializing built-in extension XVideo-MotionCompensation
    [ 7.582] Initializing built-in extension XFree86-VidModeExtension
    [ 7.583] Initializing built-in extension XFree86-DGA
    [ 7.583] Initializing built-in extension XFree86-DRI
    [ 7.584] Initializing built-in extension DRI2
    [ 7.584] (II) LoadModule: "glx"
    [ 7.585] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 7.586] (II) Module glx: vendor="X.Org Foundation"
    [ 7.586] compiled for 1.14.2, module version = 1.0.0
    [ 7.586] ABI class: X.Org Server Extension, version 7.0
    [ 7.586] (==) AIGLX enabled
    [ 7.587] Loading extension GLX
    [ 7.587] (==) Matched intel as autoconfigured driver 0
    [ 7.587] (==) Matched nouveau as autoconfigured driver 1
    [ 7.587] (==) Matched nvidia as autoconfigured driver 2
    [ 7.587] (==) Matched nv as autoconfigured driver 3
    [ 7.587] (==) Matched intel as autoconfigured driver 4
    [ 7.587] (==) Matched vesa as autoconfigured driver 5
    [ 7.587] (==) Matched modesetting as autoconfigured driver 6
    [ 7.587] (==) Matched fbdev as autoconfigured driver 7
    [ 7.587] (==) Assigned the driver to the xf86ConfigLayout
    [ 7.587] (II) LoadModule: "intel"
    [ 7.588] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
    [ 7.592] (II) Module intel: vendor="X.Org Foundation"
    [ 7.592] compiled for 1.14.2, module version = 2.21.12
    [ 7.592] Module class: X.Org Video Driver
    [ 7.592] ABI class: X.Org Video Driver, version 14.1
    [ 7.592] (II) LoadModule: "nouveau"
    [ 7.592] (WW) Warning, couldn't open module nouveau
    [ 7.592] (II) UnloadModule: "nouveau"
    [ 7.592] (II) Unloading nouveau
    [ 7.592] (EE) Failed to load module "nouveau" (module does not exist, 0)
    [ 7.592] (II) LoadModule: "nvidia"
    [ 7.592] (WW) Warning, couldn't open module nvidia
    [ 7.592] (II) UnloadModule: "nvidia"
    [ 7.592] (II) Unloading nvidia
    [ 7.592] (EE) Failed to load module "nvidia" (module does not exist, 0)
    [ 7.592] (II) LoadModule: "nv"
    [ 7.592] (WW) Warning, couldn't open module nv
    [ 7.592] (II) UnloadModule: "nv"
    [ 7.592] (II) Unloading nv
    [ 7.592] (EE) Failed to load module "nv" (module does not exist, 0)
    [ 7.592] (II) LoadModule: "vesa"
    [ 7.593] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
    [ 7.593] (II) Module vesa: vendor="X.Org Foundation"
    [ 7.593] compiled for 1.14.0, module version = 2.3.2
    [ 7.593] Module class: X.Org Video Driver
    [ 7.593] ABI class: X.Org Video Driver, version 14.1
    [ 7.593] (II) LoadModule: "modesetting"
    [ 7.593] (WW) Warning, couldn't open module modesetting
    [ 7.593] (II) UnloadModule: "modesetting"
    [ 7.593] (II) Unloading modesetting
    [ 7.593] (EE) Failed to load module "modesetting" (module does not exist, 0)
    [ 7.593] (II) LoadModule: "fbdev"
    [ 7.593] (WW) Warning, couldn't open module fbdev
    [ 7.593] (II) UnloadModule: "fbdev"
    [ 7.593] (II) Unloading fbdev
    [ 7.593] (EE) Failed to load module "fbdev" (module does not exist, 0)
    [ 7.593] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
    i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
    E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
    965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
    4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
    Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
    Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
    Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
    Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
    Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server,
    Ivybridge Server (GT2), HD Graphics, HD Graphics 4600,
    Haswell Desktop (GT3), HD Graphics, HD Graphics 4600,
    Haswell Mobile (GT3), HD Graphics, HD Graphics P4600/P4700,
    Haswell Server (GT3), Haswell (GT1), Haswell (GT2), Haswell (GT3),
    HD Graphics, Haswell (GT2), Haswell (GT3), Haswell SDV Desktop (GT1),
    Haswell SDV Desktop (GT2), Haswell SDV Desktop (GT3),
    Haswell SDV Mobile (GT1), Haswell SDV Mobile (GT2),
    Haswell SDV Mobile (GT3), Haswell SDV Server (GT1),
    Haswell SDV Server (GT2), Haswell SDV Server (GT3),
    Haswell SDV (GT1), Haswell SDV (GT2), Haswell SDV (GT3),
    Haswell SDV (GT1), Haswell SDV (GT2), Haswell SDV (GT3),
    Haswell ULT Desktop (GT1), Haswell ULT Desktop (GT2),
    Iris(TM) Graphics 5100, HD Graphics, HD Graphics 4400,
    HD Graphics 5000, Haswell ULT Server (GT1), Haswell ULT Server (GT2),
    Iris(TM) Graphics 5100, Haswell ULT (GT1), Haswell ULT (GT2),
    Iris(TM) Graphics 5100, HD Graphics, HD Graphics 4200,
    Iris(TM) Graphics 5100, Haswell CRW Desktop (GT1), HD Graphics 4600,
    Iris(TM) Pro Graphics 5200, Haswell CRW Mobile (GT1),
    HD Graphics 4600, Iris(TM) Pro Graphics 5200,
    Haswell CRW Server (GT1), Haswell CRW Server (GT2),
    Iris(TM) Pro Graphics 5200, Haswell CRW (GT1), Haswell CRW (GT2),
    Iris(TM) Pro Graphics 5200, Haswell CRW (GT1), Haswell CRW (GT2),
    Iris(TM) Pro Graphics 5200, ValleyView PO board
    [ 7.594] (II) VESA: driver for VESA chipsets: vesa
    [ 7.594] (++) using VT number 1
    [ 7.594] (WW) Falling back to old probe method for vesa
    [ 7.594] (II) intel(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
    [ 7.594] (==) intel(0): Depth 24, (--) framebuffer bpp 32
    [ 7.594] (==) intel(0): RGB weight 888
    [ 7.594] (==) intel(0): Default visual is TrueColor
    [ 7.594] (--) intel(0): Integrated Graphics Chipset: Intel(R) Ivybridge Mobile (GT2)
    [ 7.594] (**) intel(0): Relaxed fencing enabled
    [ 7.594] (**) intel(0): Wait on SwapBuffers? enabled
    [ 7.594] (**) intel(0): Triple buffering? enabled
    [ 7.594] (**) intel(0): Framebuffer tiled
    [ 7.594] (**) intel(0): Pixmaps tiled
    [ 7.594] (**) intel(0): 3D buffers tiled
    [ 7.594] (**) intel(0): SwapBuffers wait enabled
    [ 7.594] (==) intel(0): video overlay key set to 0x101fe
    [ 7.594] (II) intel(0): Output eDP1 has no monitor section
    [ 7.595] (--) intel(0): found backlight control interface /sys/class/backlight/acpi_video1
    [ 7.596] (II) intel(0): Output VGA1 has no monitor section
    [ 7.596] (II) intel(0): EDID for output eDP1
    [ 7.596] (II) intel(0): Manufacturer: LGD Model: 323 Serial#: 0
    [ 7.596] (II) intel(0): Year: 2012 Week: 0
    [ 7.596] (II) intel(0): EDID Version: 1.4
    [ 7.596] (II) intel(0): Digital Display Input
    [ 7.596] (II) intel(0): 6 bits per channel
    [ 7.596] (II) intel(0): Digital interface is DisplayPort
    [ 7.596] (II) intel(0): Max Image Size [cm]: horiz.: 35 vert.: 19
    [ 7.596] (II) intel(0): Gamma: 2.20
    [ 7.596] (II) intel(0): No DPMS capabilities specified
    [ 7.596] (II) intel(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    [ 7.596] (II) intel(0): First detailed timing is preferred mode
    [ 7.596] (II) intel(0): Preferred mode is native pixel format and refresh rate
    [ 7.596] (II) intel(0): redX: 0.629 redY: 0.350 greenX: 0.349 greenY: 0.614
    [ 7.596] (II) intel(0): blueX: 0.154 blueY: 0.112 whiteX: 0.313 whiteY: 0.329
    [ 7.596] (II) intel(0): Manufacturer's mask: 0
    [ 7.596] (II) intel(0): Supported detailed timing:
    [ 7.596] (II) intel(0): clock: 138.0 MHz Image Size: 345 x 194 mm
    [ 7.596] (II) intel(0): h_active: 1920 h_sync: 1952 h_sync_end 1988 h_blank_end 2088 h_border: 0
    [ 7.596] (II) intel(0): v_active: 1080 v_sync: 1085 v_sync_end 1090 v_blanking: 1102 v_border: 0
    [ 7.596] (II) intel(0): LG Display
    [ 7.596] (II) intel(0): LP156WF4-SPB1
    [ 7.596] (II) intel(0): EDID (in hex):
    [ 7.596] (II) intel(0): 00ffffffffffff0030e4230300000000
    [ 7.596] (II) intel(0): 00160104952313780a25b5a159599d27
    [ 7.596] (II) intel(0): 1c505400000001010101010101010101
    [ 7.596] (II) intel(0): 010101010101e83580a8703816402024
    [ 7.596] (II) intel(0): 550059c2100000180000000000000000
    [ 7.596] (II) intel(0): 00000000000000000000000000fe004c
    [ 7.596] (II) intel(0): 4720446973706c61790a2020000000fe
    [ 7.596] (II) intel(0): 004c503135365746342d535042310069
    [ 7.596] (II) intel(0): Not using default mode "320x240" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "512x384" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "640x480" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "640x512" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "800x600" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "896x672" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "928x696" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "960x720" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "700x525" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "1024x768" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Printing probed modes for output eDP1
    [ 7.597] (II) intel(0): Modeline "1920x1080"x60.0 138.00 1920 1952 1988 2088 1080 1085 1090 1102 -hsync -vsync (66.1 kHz eP)
    [ 7.597] (II) intel(0): Modeline "1400x1050"x60.0 122.00 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
    [ 7.597] (II) intel(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
    [ 7.597] (II) intel(0): Modeline "1280x960"x60.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz d)
    [ 7.597] (II) intel(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz d)
    [ 7.597] (II) intel(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz d)
    [ 7.597] (II) intel(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz d)
    [ 7.597] (II) intel(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz d)
    [ 7.598] (II) intel(0): EDID for output VGA1
    [ 7.598] (II) intel(0): Output eDP1 connected
    [ 7.598] (II) intel(0): Output VGA1 disconnected
    [ 7.598] (II) intel(0): Using exact sizes for initial modes
    [ 7.598] (II) intel(0): Output eDP1 using initial mode 1920x1080
    [ 7.598] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
    [ 7.598] (II) intel(0): Kernel page flipping support detected, enabling
    [ 7.598] (==) intel(0): DPI set to (96, 96)
    [ 7.598] (II) Loading sub module "fb"
    [ 7.598] (II) LoadModule: "fb"
    [ 7.598] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 7.599] (II) Module fb: vendor="X.Org Foundation"
    [ 7.599] compiled for 1.14.2, module version = 1.0.0
    [ 7.599] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 7.599] (II) Loading sub module "dri2"
    [ 7.599] (II) LoadModule: "dri2"
    [ 7.599] (II) Module "dri2" already built-in
    [ 7.599] (II) UnloadModule: "vesa"
    [ 7.599] (II) Unloading vesa
    [ 7.599] (==) Depth 24 pixmap format is 32 bpp
    [ 7.599] (II) intel(0): [DRI2] Setup complete
    [ 7.599] (II) intel(0): [DRI2] DRI driver: i965
    [ 7.599] (II) intel(0): Allocated new frame buffer 1920x1080 stride 7680, tiled
    [ 7.599] (II) UXA(0): Driver registered support for the following operations:
    [ 7.599] (II) solid
    [ 7.599] (II) copy
    [ 7.599] (II) composite (RENDER acceleration)
    [ 7.599] (II) put_image
    [ 7.599] (II) get_image
    [ 7.599] (==) intel(0): Backing store disabled
    [ 7.599] (==) intel(0): Silken mouse enabled
    [ 7.600] (II) intel(0): Initializing HW Cursor
    [ 7.600] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
    [ 7.600] (==) intel(0): DPMS enabled
    [ 7.600] (==) intel(0): Intel XvMC decoder enabled
    [ 7.600] (II) intel(0): Set up textured video
    [ 7.600] (II) intel(0): [XvMC] xvmc_vld driver initialized.
    [ 7.600] (II) intel(0): direct rendering: DRI2 Enabled
    [ 7.600] (==) intel(0): hotplug detection: "enabled"
    [ 7.613] (--) RandR disabled
    [ 7.634] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    [ 7.634] (II) AIGLX: enabled GLX_INTEL_swap_event
    [ 7.634] (II) AIGLX: enabled GLX_ARB_create_context
    [ 7.634] (II) AIGLX: enabled GLX_ARB_create_context_profile
    [ 7.634] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
    [ 7.634] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
    [ 7.634] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
    [ 7.634] (II) AIGLX: Loaded and initialized i965
    [ 7.634] (II) GLX: Initialized DRI2 GL provider for screen 0
    [ 7.634] (II) intel(0): Setting screen physical size to 508 x 285
    [ 7.669] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
    [ 7.669] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 7.669] (II) LoadModule: "evdev"
    [ 7.669] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 7.670] (II) Module evdev: vendor="X.Org Foundation"
    [ 7.670] compiled for 1.14.2, module version = 2.8.1
    [ 7.670] Module class: X.Org XInput Driver
    [ 7.670] ABI class: X.Org XInput driver, version 19.1
    [ 7.670] (II) Using input driver 'evdev' for 'Video Bus'
    [ 7.670] (**) Video Bus: always reports core events
    [ 7.670] (**) evdev: Video Bus: Device: "/dev/input/event9"
    [ 7.670] (--) evdev: Video Bus: Vendor 0 Product 0x6
    [ 7.670] (--) evdev: Video Bus: Found keys
    [ 7.670] (II) evdev: Video Bus: Configuring as keyboard
    [ 7.670] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input10/event9"
    [ 7.670] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 6)
    [ 7.670] (**) Option "xkb_rules" "evdev"
    [ 7.670] (**) Option "xkb_model" "pc104"
    [ 7.670] (**) Option "xkb_layout" "us"
    [ 7.684] (II) config/udev: Adding input device Video Bus (/dev/input/event8)
    [ 7.684] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 7.684] (II) Using input driver 'evdev' for 'Video Bus'
    [ 7.684] (**) Video Bus: always reports core events
    [ 7.684] (**) evdev: Video Bus: Device: "/dev/input/event8"
    [ 7.684] (--) evdev: Video Bus: Vendor 0 Product 0x6
    [ 7.684] (--) evdev: Video Bus: Found keys
    [ 7.684] (II) evdev: Video Bus: Configuring as keyboard
    [ 7.684] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:03/LNXVIDEO:00/input/input9/event8"
    [ 7.684] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
    [ 7.684] (**) Option "xkb_rules" "evdev"
    [ 7.684] (**) Option "xkb_model" "pc104"
    [ 7.684] (**) Option "xkb_layout" "us"
    [ 7.684] (II) config/udev: Adding input device Power Button (/dev/input/event2)
    [ 7.685] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 7.685] (II) Using input driver 'evdev' for 'Power Button'
    [ 7.685] (**) Power Button: always reports core events
    [ 7.685] (**) evdev: Power Button: Device: "/dev/input/event2"
    [ 7.685] (--) evdev: Power Button: Vendor 0 Product 0x1
    [ 7.685] (--) evdev: Power Button: Found keys
    [ 7.685] (II) evdev: Power Button: Configuring as keyboard
    [ 7.685] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2/event2"
    [ 7.685] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
    [ 7.685] (**) Option "xkb_rules" "evdev"
    [ 7.685] (**) Option "xkb_model" "pc104"
    [ 7.685] (**) Option "xkb_layout" "us"
    [ 7.685] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
    [ 7.685] (II) No input driver specified, ignoring this device.
    [ 7.685] (II) This device may have been added with another device file.
    [ 7.685] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
    [ 7.685] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
    [ 7.685] (II) Using input driver 'evdev' for 'Sleep Button'
    [ 7.685] (**) Sleep Button: always reports core events
    [ 7.685] (**) evdev: Sleep Button: Device: "/dev/input/event3"
    [ 7.685] (--) evdev: Sleep Button: Vendor 0 Product 0x3
    [ 7.685] (--) evdev: Sleep Button: Found keys
    [ 7.685] (II) evdev: Sleep Button: Configuring as keyboard
    [ 7.685] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input3/event3"
    [ 7.685] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
    [ 7.685] (**) Option "xkb_rules" "evdev"
    [ 7.685] (**) Option "xkb_model" "pc104"
    [ 7.685] (**) Option "xkb_layout" "us"
    [ 7.685] (II) config/udev: Adding drm device (/dev/dri/card1)
    [ 7.685] (II) config/udev: Adding drm device (/dev/dri/card0)
    [ 7.686] (II) config/udev: Adding input device USB2.0 HD UVC WebCam (/dev/input/event6)
    [ 7.686] (**) USB2.0 HD UVC WebCam: Applying InputClass "evdev keyboard catchall"
    [ 7.686] (II) Using input driver 'evdev' for 'USB2.0 HD UVC WebCam'
    [ 7.686] (**) USB2.0 HD UVC WebCam: always reports core events
    [ 7.686] (**) evdev: USB2.0 HD UVC WebCam: Device: "/dev/input/event6"
    [ 7.686] (--) evdev: USB2.0 HD UVC WebCam: Vendor 0x4f2 Product 0xb36e
    [ 7.686] (--) evdev: USB2.0 HD UVC WebCam: Found keys
    [ 7.686] (II) evdev: USB2.0 HD UVC WebCam: Configuring as keyboard
    [ 7.686] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input6/event6"
    [ 7.686] (II) XINPUT: Adding extended input device "USB2.0 HD UVC WebCam" (type: KEYBOARD, id 10)
    [ 7.686] (**) Option "xkb_rules" "evdev"
    [ 7.686] (**) Option "xkb_model" "pc104"
    [ 7.686] (**) Option "xkb_layout" "us"
    [ 7.686] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event5)
    [ 7.686] (II) No input driver specified, ignoring this device.
    [ 7.686] (II) This device may have been added with another device file.
    [ 7.686] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 7.686] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    [ 7.686] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
    [ 7.686] (**) AT Translated Set 2 keyboard: always reports core events
    [ 7.686] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    [ 7.686] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
    [ 7.686] (--) evdev: AT Translated Set 2 keyboard: Found keys
    [ 7.686] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
    [ 7.686] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
    [ 7.686] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
    [ 7.686] (**) Option "xkb_rules" "evdev"
    [ 7.686] (**) Option "xkb_model" "pc104"
    [ 7.686] (**) Option "xkb_layout" "us"
    [ 7.686] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event7)
    [ 7.686] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchpad catchall"
    [ 7.686] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall"
    [ 7.687] (**) ETPS/2 Elantech Touchpad: Applying InputClass "Default clickpad buttons"
    [ 7.687] (II) LoadModule: "synaptics"
    [ 7.687] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    [ 7.687] (II) Module synaptics: vendor="X.Org Foundation"
    [ 7.687] compiled for 1.14.1, module version = 1.7.1
    [ 7.687] Module class: X.Org XInput Driver
    [ 7.687] ABI class: X.Org XInput driver, version 19.1
    [ 7.687] (II) Using input driver 'synaptics' for 'ETPS/2 Elantech Touchpad'
    [ 7.687] (**) ETPS/2 Elantech Touchpad: always reports core events
    [ 7.687] (**) Option "Device" "/dev/input/event7"
    [ 7.810] (II) synaptics: ETPS/2 Elantech Touchpad: found clickpad property
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: x-axis range 0 - 3260 (res 32)
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: y-axis range 0 - 2119 (res 32)
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: pressure range 0 - 255
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: finger width range 0 - 15
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: buttons: left double triple
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: Vendor 0x2 Product 0xe
    [ 7.810] (**) Option "TapButton1" "1"
    [ 7.810] (**) Option "TapButton2" "2"
    [ 7.810] (**) Option "TapButton3" "3"
    [ 7.810] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
    [ 7.810] (**) ETPS/2 Elantech Touchpad: always reports core events
    [ 7.853] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio4/input/input8/event7"
    [ 7.853] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 12)
    [ 7.853] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MinSpeed is now constant deceleration 2.5
    [ 7.853] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MaxSpeed is now 1.75
    [ 7.853] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) AccelFactor is now 0.051
    [ 7.853] (**) ETPS/2 Elantech Touchpad: (accel) keeping acceleration scheme 1
    [ 7.853] (**) ETPS/2 Elantech Touchpad: (accel) acceleration profile 1
    [ 7.853] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
    [ 7.853] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
    [ 7.853] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
    [ 7.853] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0)
    [ 7.853] (**) ETPS/2 Elantech Touchpad: Ignoring device from InputClass "touchpad ignore duplicates"
    [ 7.853] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
    [ 7.853] (II) No input driver specified, ignoring this device.
    [ 7.853] (II) This device may have been added with another device file.
    Found this recent thread in the forums, I'll give REISUB a try late, but the times it freezed I remember trying to blindly reboot it, or switching off virtual console and couldn't.
    In case it's of any use, this is my # uname -a
    Linux arch 3.10.3-1-ARCH #1 SMP PREEMPT Fri Jul 26 11:26:59 CEST 2013 x86_64 GNU/Linux
    Could it have something to do with the nvidia optimus setup that this laptop has? When installing arch I found out that there was no support yet for it so I'm just using the intel drivers (following what the arch wiki said).
    Any ideas or advice to point me in the right direction would be very much appreciated.
    Thanks in advance.
    Last edited by contiver (2013-08-16 20:25:34)

    I don't start st in my .xinitrc. I launch it from dmenu and usually everything is fine. If I launch it from dwm's internal command using Alt-Shf-Return, X freezes 100% of the time. A workaround was suggested by st's main developer to call st like this:
    static const char *termcmd[] = { "/bin/sh", "-c", "st", NULL };
    but it didn't work for me.
    Very rarely X will freeze anyway. I haven't been able to pin it down. When X fails, my journal returns this:
    BUG: unable to handle kernel paging request at ffffc90014ce8000
    IP: [<ffffffff812bfe7f>] bitfill_aligned+0x8f/0x140
    PGD 7c00b067 PUD 7c018067 PMD 7b3eb067 PTE 0
    Oops: 0002 [#1] PREEMPT SMP
    Modules linked in: nls_cp437 vfat fat snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq_device snd_pcm snd_page_alloc snd_timer
    CPU: 1 PID: 7520 Comm: X Not tainted 3.10.5-1-ck #1
    Hardware name: /D410PT, BIOS MOPNV10N.86A.0155.2009.1106.0430 11/06/2009
    task: ffff88007aa786b0 ti: ffff8800797ee000 task.ti: ffff8800797ee000
    RIP: 0010:[<ffffffff812bfe7f>] [<ffffffff812bfe7f>] bitfill_aligned+0x8f/0x140
    RSP: 0018:ffff8800797efaa8 EFLAGS: 00010212
    RAX: 0000000003ffff5c RBX: 0000000000000000 RCX: 0000000000000000
    RDX: 0000000003ffff5c RSI: ffffc90014901520 RDI: ffffc90014ce7fe0
    RBP: ffff8800797efab8 R08: 00000000ffffd700 R09: 0000000003f83204
    R10: 0000000000000000 R11: ffffc90014ce7fd8 R12: ffffffffffffffff
    R13: ffffc90014901520 R14: ffffffff812bfdf0 R15: 0000000000000320
    FS: 00007fb350033880(0000) GS:ffff88007ea80000(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: ffffc90014ce8000 CR3: 000000007b104000 CR4: 00000000000007e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Stack:
    0000000000000000 ffff88007a4d3000 ffff8800797efb28 ffffffff812bfbb9
    ffffffff00000000 ffff88007c00c000 0000000000000000 ffffffff8186f240
    0000000000000000 ffffffff00000006 ffffd700797efb58 ffff88007a4d3000
    Call Trace:
    [<ffffffff812bfbb9>] cfb_fillrect+0x1c9/0x400
    [<ffffffff812ba2e5>] bit_clear_margins+0x165/0x190
    [<ffffffff812b3633>] fbcon_clear_margins+0x63/0x90
    [<ffffffff812b7a9f>] fbcon_switch+0x3df/0x570
    [<ffffffff813200bd>] redraw_screen+0x17d/0x240
    [<ffffffff812b6eeb>] fbcon_blank+0x20b/0x2d0
    [<ffffffff81320767>] do_unblank_screen+0xa7/0x1b0
    [<ffffffff813175d1>] vt_ioctl+0x10d1/0x1170
    [<ffffffff8130b407>] tty_ioctl+0x277/0xb90
    [<ffffffff8118fb21>] ? mntput_no_expire+0x41/0x150
    [<ffffffff81183a3e>] do_vfs_ioctl+0x2de/0x4c0
    [<ffffffff8117328e>] ? ____fput+0xe/0x10
    [<ffffffff8107766c>] ? task_work_run+0x9c/0xe0
    [<ffffffff81183ca3>] SyS_ioctl+0x83/0xa0
    [<ffffffff814bab9d>] system_call_fastpath+0x1a/0x1f
    Code: 08 45 01 d8 31 d2 44 89 c0 41 f7 f1 83 f8 07 89 c2 76 4f 44 8d 08 48 8d 3e 0f 1f 00 4c 89 17 4c 89 57 08 4c 89 57 10 4c 89 57 18 <4
    RIP [<ffffffff812bfe7f>] bitfill_aligned+0x8f/0x140
    RSP <ffff8800797efaa8>
    CR2: ffffc90014ce8000
    ---[ end trace aff6cb5ad5097aef ]---

  • I do not have an apple computer,  I have had Itunes  Previously but had not used it for some time.  when I try to use it now the following message keeps coming up no matter how many times  install Itunes.  "The Itunes library is locked on a locked disc ?

    I do not have an Apple computer,  I have had Itunes previously but had not used it for some time,  I have Itunes gift cards but can not get ,on to use them.  I have tried to download Itunes again but the following keeps poping up, "The Itunes library is locked on a locked disc, oryou do not have write permission for this file."  How can I overcome this?

    To solve this issue all I did was check to ensure that the file permissions were set as described by the earlier posts, followed by simply deleting the iTunes Library Genius.itdb file.  Once the file was deleted I was able to open iTunes without difficulty.  Note that I am running Windows 8.  Hope this helps!

  • Hello I am having all of a sudden with my Face Tiime on MacBook Pro. I can't get it to verify my email address with I have always used. For some reason it had me log back in and now won't verify.It's always worked. No one can reach me. It goes straig

    Hello I am having all of a sudden with my Face Tiime on MacBook Pro. I can't get it to verify my email address with I have always used. For some reason it had me log back in and now won't verify.It's always worked. No one can reach me. It goes straight to my phone instead of my MacBook Pro. Help!!

    Any error message?

  • Why do we use dunning for vendors

    Hi All...
    We create dunning for customer to send them reminders for payment....But why do we use dunning for vendors (in Vendor Master Data)??
    Txk,
    Umesh

    Hi,
    If you dun customers who are also vendors and want to clear the items, the dunning program lists both the overdue customer items and the overdue vendor items in the dunning proposal, and determines a joint balance.When you dun a customer who is also a vendor, only the master record information of the customer is relevant.The items can only be cleared if the same dunning procedure has been defined in the standard dunning area for both customer and vendor.
    Hope this helps you. let me know if you need anyother information.
    Rgds
    Manish
    ===========================================================================

  • Why should we use WSDL for developing webservices

    I need to develop Webservice Application for our Client .
    I dont know anything about WSDL4J
    Hi from the net i found this
    "The Web Services Description Language for Java Toolkit (WSDL4J) allows the creation, representation, and manipulation of WSDL documents.
    Is the reference implementation for JSR110 'JWSDL' (jcp.org)."
    But anybody please tell me why should we use WSDL for developing webservices ??
    Is there any specific advantage we will get ??
    And Can body please point me a link where to start for working with WSDL4j ?
    Thank you very much

    i seriously doubt you want to use wsdl4j unless you are doing really advanced webservice work. assuming you are developing this webservice from scratch, you basically want to use JAXWS: define an appropriate interface and your value classes, and let JAXWS do the rest. metro is the JAXWS implementation included in the oracle jdk and it has great tutorials and reference documentation online. i'd suggest you start here: http://metro.java.net/getting-started/

  • Where-used list for view methods, and context elements

    I want to know where a context element in the component controller is used (and if I can delete it).
    Is there something like a where-used list for a context element?
    Similar question:
    Is there a where-used list for a method of a view?
    Best regards,
    Daniel

    Hi Daniel,
    Its not supported for both of these..
    Regards
    Anuj Goyal

  • Ok I just used monolingual for some reason I had a great idea that is to get rid of the intel architecture since intel 64 bit is current one now my Mac  mini is completely messed up what do  to fix it?

    I used monolingual for some stupid reason, I decided to get rid of the intel architecture, since it indicated that currently architecture was intel 64, now my desktop is not behaving properly what can I do to fix this?

    Hi,
    Time to reinstall the OS....
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition.

  • Why, after using Firefox for some years ,can I get on to the Virgin Media site but not the Virgin Media e-mail or anypart of My Virgin Media.

    I have used Firefox for a few years with great success but now I cannot receive my email from the Virgin Media site. The rest of the site is fine but as soon as I click on "Check your e-mail" I get an error message. This is very frustrating.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Click the menu button [[Image:New Fx Menu]], choose History, and then "Clear Recent History...".
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the "Clear Now" button.
    Further information can be found in the [[Delete browsing, search and download history on Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.
    If this doesn't work, contact Virgin for more assistance.

  • Why do we use super when there is no superclass?

    Hello,
    I have a question about the word "super " and the constructor. I have read about super and the constructor but there is somethong that I do not understand.
    In the example that I am studying there is a constructor calles " public MultiListener()" and there you can see " super" to use a constructor from a superclass. But there is no superclass. Why does super mean here?
    import javax.swing.*;
    import java.awt.GridBagLayout;
    import java.awt.GridBagConstraints;
    import java.awt.Insets;
    import java.awt.Dimension;
    import java.awt.Color;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class MultiListener extends JPanel
                               implements ActionListener {
        JTextArea topTextArea;
        JTextArea bottomTextArea;
        JButton button1, button2;
        final static String newline = "\n";
        public MultiListener() {
            super(new GridBagLayout());
            GridBagLayout gridbag = (GridBagLayout)getLayout();
            GridBagConstraints c = new GridBagConstraints();
            JLabel l = null;
            c.fill = GridBagConstraints.BOTH;
            c.gridwidth = GridBagConstraints.REMAINDER;
            l = new JLabel("What MultiListener hears:");
            gridbag.setConstraints(l, c);
            add(l);
            c.weighty = 1.0;
            topTextArea = new JTextArea();
            topTextArea.setEditable(false);
            JScrollPane topScrollPane = new JScrollPane(topTextArea);
            Dimension preferredSize = new Dimension(200, 75);
            topScrollPane.setPreferredSize(preferredSize);
            gridbag.setConstraints(topScrollPane, c);
            add(topScrollPane);
            c.weightx = 0.0;
            c.weighty = 0.0;
            l = new JLabel("What Eavesdropper hears:");
            gridbag.setConstraints(l, c);
            add(l);
            c.weighty = 1.0;
            bottomTextArea = new JTextArea();
            bottomTextArea.setEditable(false);
            JScrollPane bottomScrollPane = new JScrollPane(bottomTextArea);
            bottomScrollPane.setPreferredSize(preferredSize);
            gridbag.setConstraints(bottomScrollPane, c);
            add(bottomScrollPane);
            c.weightx = 1.0;
            c.weighty = 0.0;
            c.gridwidth = 1;
            c.insets = new Insets(10, 10, 0, 10);
            button1 = new JButton("Blah blah blah");
            gridbag.setConstraints(button1, c);
            add(button1);
            c.gridwidth = GridBagConstraints.REMAINDER;
            button2 = new JButton("You don't say!");
            gridbag.setConstraints(button2, c);
            add(button2);
            button1.addActionListener(this);
            button2.addActionListener(this);
            button2.addActionListener(new Eavesdropper(bottomTextArea));
            setPreferredSize(new Dimension(450, 450));
            setBorder(BorderFactory.createCompoundBorder(
                                    BorderFactory.createMatteBorder(
                                                    1,1,2,2,Color.black),
                                    BorderFactory.createEmptyBorder(5,5,5,5)));
        public void actionPerformed(ActionEvent e) {
            topTextArea.append(e.getActionCommand() + newline);
            topTextArea.setCaretPosition(topTextArea.getDocument().getLength());
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("MultiListener");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            JComponent newContentPane = new MultiListener();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    OP wrote:
    >
    Isn't that simplier to use the constructor instead of using "super"? I mean using the constructor jpanel () ?
    >
    You can't call the super class constructor directly if you are trying to construct the sub-class. When you call it directly it will construct an instance of the super class but that instance will NOT be an integral part of the 'MultiListener' sub class you are trying to create.
    So since 'MultiListener' extends JPanel if you call the JPanel constructor directly (not using super) your code constructing a new instance of JPanel but that instance will not be an ancestor of your class that extends JPanel. In fact that constructor call will not execute until AFTER the default call to 'super' that will be made without you even knowing it.
    A 'super' call is ALWAYS made to the super class even if your code doesn't have an explicit call. If your code did not include the line:
    super(new GridBagLayout()); Java would automatically call the public default super class constructor just as if you had written:
    super();If the sub class cannot access a constructor in the super class (e.g. the super class constructor is 'private') your code won't compile.

  • Trying to use super class's methods from an anonymous inner class

    Hi all,
    I have one class with some methods, and a second class which inherits from the first. The second class contains a method which starts up a thread, which is an anonymous inner class. Inside this inner class, I want to call a method from my first class. How can I do this?
    If I just call the method, it will use the second class's version of the method. However, if I use "super," it will try to find that method in the Thread class (it's own super class) and complain.
    Any suggestions?
    Code:
    public class TopClass
         public void doSomething(){
              // do something
    =============================
    public class LowerClass extends TopClass
         // overrides TopClass's doSomething.
         public void doSomething(){
              // do something
         public void testThread(){
              Thread t = new Thread(){
                   public void run(){
                        doSomething();               //fine
                        super.doSomething();          //WRONG: searches class Thread for doSomething...
              t.start();
    }

    Classes frequently call the un-overridden versions of methods from their superclasses. That's that the super keyword is for, if I'm not mistaken.You're not mistaken about the keyword, but you're not calling the superclass method from a subclass. Your anonymous inner class is not a subtype of TopLevel. It's a subtype of Thread.
    Here it is no different, except that I happen to be in a thread at the time.It's vastly different, since you're attempting to call the method from an unrelated class; i.e., Thread.
    I could also be in a button's action listener, for example. It seems natural to me that if I can do it in a method, I should be able to do it within an anonymous inner class which is inside a method.If you were in an button's action listener and needed to call a superclass' implementation of a method overridden in the button, I'd have the same questions about your design. It seems smelly to me.
    ~

  • Upgraded to IOS 8.  iMessage has changed for the worse, losing messages now.  How can I force iMessage to use SMS for some contacts?

    SMS works well and is generally free for most plans here.  I'd like to be able to send messages via SMS from my iPhone for many of these contacts because something changed in IOS 8 iMessage and now iMessages seem to get lost.   Plus as before they can end up in multiple threads.  This latter issue seems to be worse as well with iOS8 but not sure why. 
    For example one friend set up an iPad with her apple ID and subsequently gave it to her son.  She also has an iPhone. I've been exchanging iMessage/SMS's with her which worked fine until the upgrade.  Then she stopped getting my messages on her iPhone.  Turns out that they were landing on the iPad.  While it may be that she doesn't have things sorted correctly on her iPhone that doesn't change the fact that prior to iOS8 she could get my messages.  So I'd like to designate her and a number of other contacts as SMS only.
    Additionally I am seeing more multiple threads from the same contacts.  Not sure why but it seems to have something to do with iOS 8 sucking in additional email addresses, e.g. @icloud.com and subsequently using these in some messages even though the contact is the same person.  I've tried adding the new email address into the contact card I have on file for that person and this simply resulted in two threads with the same contact name.
    Really what is up with this and why does Messages need to keep track of all this info?  The only requirement to direct a message between to iDevices should be valid Apple ID's on both with a means to reference this (Phone Number, Apple ID Email Address) in the respective contact.  In the absence of this the message should be sent as SMS.

    I have the same problem on iOS 7.0.3. With one particular friend I receive iMessages from her just fine and I can send her iMessages from Mac OS X and Messages on iPad, but Messages on my iPhone keep sending her my messages as Text messages. I send iMessages just fine from the same iPhone. SFChuch, what ios version is your recipient using? Did they sign up on iCloud? I wonder if the problem happens with recipients who are not properly registered on iCloud or some special case like that.

  • Can't use image as link using asfunction for some reason

    I have a pretty large which was coded using AS2 in about 2006 so I'm trying to make a few changes using AS2 which I'm pretty rusty on.  I have a swf which loads an xml file into a textarea in flash and it all works well.  I have to link some images which appear in the xml file but those images have to be links to external sites and that is where I am running into problems with my asfunction.  Here is the code.
    Function in my AS:
    function launchSite(arg) {
      if(arg == "agri") {
        getURL("http://www.usda.gov/wps/portal/usdahome", "_blank");
    then of course arg will take different values for the other links:
    In the xml file, here is the asfunction code:
    <a href='asfunction:_root.launchSite,agri'><img src="images/agri.gif"></a>
    What is happening is the function is working and the external link is opening in a new browser window, but the xml stops at that point so most of the agri.gif image and the rest of the page are gone.  If I change the img tag to just a text link, then all is well .. but my client wants the images to be the link.
    To further complicate, if I remove the link text and have only the img tag, the page is fine.  They just won't work together for some reason.  Any thoughts?
    Thanks!
    Nancy

    >the cdata tag is needed so you can load the xml that contains html tags.
    Interesting since my xml files are full of html tags and everything else renders just fine without CDATA tags.  My textarea is configured to allow HTML.
    AS as follows:
    //set up the textarea
    //init TextArea component
    myText.html = true;
    myText.wordWrap = true;
    myText.multiline = true;
    myText.label.condenseWhite=true;
    //set up the XML
    myXML = new XML();
    myXML.ignoreWhite = true;
    myXML.load("xml/acts.xml");
    myXML.onLoad = function(success)
    var myArray:Array = myXML.firstChild.childNodes;
    myTitle.text = myXML.firstChild.attributes.title
    myLoader.contentPath = myXML.firstChild.nextSibling.attributes.src
    myText.text = myXML.firstChild.nextSibling.nextSibling
    function loadFunction(target){
    myXML.load(target);
    myXML.onLoad = function(success)
    var myArray:Array = myXML.firstChild.childNodes;
    myTitle.text = myXML.firstChild.attributes.title
    myLoader.contentPath = myXML.firstChild.nextSibling.attributes.src
    myText.text = myXML.firstChild.nextSibling.nextSibling
    //function to load the external XML
    function launchSite(arg) {
      if(arg == "agri") {
        getURL("http://www.usda.gov/wps/portal/usdahome", "_blank");
    pertinent part of the xml as follows (portion of the text node which displays all the text):
    <a href='asfunction:_root.launchSite,agri'><![CDATA[<img src="images/agriculture.gif">]]></a> Department of Agriculture:  The Department of Agriculture began in 1862.  The main job of this department is to keep our food is safe and healthy.  They also work with farmers if they need help selling their crops both in the US and around the world.  Secretary of Agriculture is Mr. Thomas J. Vilsack.
    I added the CDATA tags at your suggestion.  What that gives me in the browser is a working function (loads the external site in a new window as desired) but instead of the image, I have the img tag printed out due to the CDATA tags (which by definition is not parsed).
    I have had pages on pages like this in this site since 2006 (which is why it's done in AS2 and not 3) and have never had a problem until the client wanted the images to be links to the external sites.  If I put in the image tag without the link, it works.  If I put in the link tag with a text link rather than the image, it works.  It's the two together that do not work.
    Does that make sense?
    Thanks again!
    Nancy
      after that you need to parse the xml correctly and assign to your textarea.  are you?

  • Why does my jdev hang for some time

    Hi,
    I want to know the reason why my jdev 10.1.3.4.0 hang for some time in some scenario's?
    like:
    whenever i start standalone oc4j server, after using the application in server' url, if i go to jdev it will hang for a min or so.
    normal usage also it will hang for some thrice a day or so??
    can any one tell..
    Thanks,

    Hello John,
    Thank you for providing all the information about what is going on with the SuperDrive issue you are experiencing.
    I recommend resetting the System Management Controller (SMC) on your iMac:
    Resetting the SMC for Mac Pro, Intel-based iMac, Intel-based Mac mini, or Intel-based Xserve
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on the computer.
    You can find the full article here:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    If you are still having trouble with playing audio, I recommend the following article:
    Apple Computers: Troubleshooting the slot-loading SuperDrive
    http://support.apple.com/kb/HT2801
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • How to create a new page as a hyperlink to an external one?

    I've been trying to solve this for like 2 hours and still haven't found the way! When you create a new page in iWeb, it automatically adds its name into the navbar and creates a new page and folder with its content. Well, I want to create a new page

  • Problem in installing Oracle BPEL process manager 10.1.3.1.0

    Hi I have started with installing oracle bpel PM using soa_windows_x86_101310_disk1.zip from oracle site. After proceeding for some time installation failed prompting "could not create java virtual machine". after searching in few forums, i have stop

  • How to get the user logged at worklist (Adf Form - Human Task)

    Hi, I have an Adf Form Based on Human Task and and need to get the user logged at Worklist Application. Anyone know to make this ? Thanks. Victor Jabur

  • Double in Scientific Notation after Marshal

    Hi, I have an element defined as an xsd:double. If I try and place a value say 100 into the element and then I marshal it I get an output of <Quantity>100.0</Quantity>... That is fine.... However, if I put a value in of say 1000000000, I get an outpu

  • Make VC3 come up as an actual device driver

    With all the live streaming sites these days, this would be incredible to work with via a web application. But to simplify this all I would need is for VC to come up in the list of Sound, Video, and Gaming Controllers. Instead I'm barley trying to fi