VBox bug?

I met with weird behaviour of VBox layout.
When I put on the scene vbox defined like that:
var vb: VBox = VBox {
            width: 300
            height: 300
            managed: false
            content: [
                Button {
                    text: "Button"
                    layoutInfo: LayoutInfo {hfill: true vfill: true; hgrow: Priority.ALWAYS;}
        }Button has width=300px, but height is default (about: 20 px)
When i change VBox on HBox:
var vb: HBox = HBox {
            width: 300
            height: 300
            managed: false
            content: [
                Button {
                    text: "Button"
                    layoutInfo: LayoutInfo {hfill: true vfill: true; hgrow: Priority.ALWAYS;}
        }Button has width=300px and height=300px too.
Is it normal behaviour of VBox layout that doesnt set control's height?

I read this article several times, but I don' t see where the author explain that behaviour of vbox container.
The section which you have on mind, may be it:
+"Not All Containers Support Grow/Fill+
+It only makes sense for containers to support these preferences when nodes are in contention for space, so HBox supports it horizontally, VBox supports it vertically, and Grid supports it in both directions. "+
But this doesn't agree with my experience, where HBox (in my example) supports both directions, and VBox in only one direction (horizontally!!!).

Similar Messages

  • Bug in vbox:addchild()

    hello,
    i don't know if there is bug in vbox:addChild.
    In my application the users writes text into a popup and
    after the user closed the popup on the main window of my
    application i add a new child (ApplicationControlBar) to a vbox.
    On the first time it works but after the second time if the
    users closed the popup all childs are minimixed. I have set the
    minimum size of the ApplicationControlBar.
    My code looks like this
    public function addComment(text:String) : void
    var mypanel:ApplicationControlBar = new
    ApplicationControlBar();
    var box:VBox = new VBox();
    //box.verticalScrollPolicy = "on";
    mypanel.width = 300;
    mypanel.height = 70;
    box.width = mypanel.width;
    box.height = mypanel.height;
    var author:Label = new Label();
    //author.width = mypanel.width;
    //author.height = mypanel.height;
    author.text =
    StoerungFlexMVC1(Application.application).user.selectedLabel;
    var commentText:TextArea = new TextArea();
    //commentsTest.text = text;
    //commentText.
    commentText.text = text;
    commentText.width = box.width;
    box.addChild(author);
    box.addChild(commentText);
    mypanel.addChild(box);
    comments.addChild(mypanel);
    }

    I have already used panels before but it is the same. The
    height of the childs in the vbox nearlly comes to zero at the
    second time i add a component to the vbox. If i resize the childs
    with the mouse the size will be ok but other times all component
    height goes near zero at every addiing of one child.
    Thanks
    Stefan

  • Grouped nodes added to Vbox - Height issue? Bug?

    Maybe you guys could try this out as well? I'm most probably doing something wrong but for demonstrative purposes, I've found an issue with a VBox incorrectly stating its height value when it consists of grouped nodes.
    Take the following for example, albeit simple and incomplete (it's more or less what I've got going on in my code):
         var goupedNodesSequence : Node[];
            for(i in [0..30]){
                //Label
                var myLabel : Label = Label{               
                    textFill: Color.WHITE
                    text: "Lable Number: {i}"
             //Rectangle
                var myRectangle : Rectangle = Rectangle{
                    width: 100
                    height: 25
                    fill: Color.BLUE
             //Grouped label and rectangle
                var nodeGroup : Group = Group{
                    content: [myLabel , myRectangle ]
                insert nodeGroup into goupedNodesSequence
                }//forloop
                //VBox
                def groupedNodesVBox : VBox = VBox {
                        content: goupedNodesSequence
                        spacing: 3       
                }My code is slightly different in that the construction of the groupedNodesSequence is done in a forloop within a function that returns the sequence. The sequence of nodes is then assigned to the VBox.content property.
    I've noticed that visually, it looks correct in that each node, within the VBox, is a rectangle with a label on top of it. This is fine. But when you want to know the height property of the VBox node, it seems to be overstated in that it appears to add the height of all nodes including spacing (approximately anyway) to the total height of the VBox.
    I've even tried to use the Stack feature to place the nodes in a stack formation and messed around with the X/Y translations and layout features but a no go.
    I wonder if this has anything to do with the "bug" some people (PhiLHo ?) have encountered with using VBoxes and Scrollbars and getting incorrect Scroller max values possibly due to this incorrect height reading of the VBox? Check out PhiLHo's response to this thread to know what I'm talking about over here
    I simply compensated the incorrect height difference in my code as it was more efficient for me, but I thought I'd bring this up for discussion and see if anyone else is having the same issue.
    Essentially, put a few nodes together and group them, then add the group node to another sequence, and place that sequence of grouped nodes into a VBox. See what kind of height you're getting for the VBox.

    For me, the VBox height comes out to 865, which I think is correct. You have 31 groups in the VBox, and each group has a rect that's 25 tall. Add to this the 30 inter-item spacings of 3 gives: 31 x 25 + 30 x 3 = 865. [Edited to avoid confusion between the arithmetic expression and forum markup.]
    But if you look at the heights of each of the nodes, it's something of a puzzle. The height of each Label is 14, the height of each rect is 25, and the height of each nodeGroup (each contains a label and a rect) is 36. Huh??? How can this be if the label overlaps the rect? (I puzzled over this for a bit as well.)
    At issue is how you're finding the height of each item. If you use boundsInLocal or boundsInParent, you get the heights I listed above. If you look at the actual boundsInParent of each label and rect, though, you'll notice something odd: the boundsInParent of Label are something like:
    BoundingBox [minX = -1.0, minY=-11.0, maxX=97.0, maxY=3.0, width=98.0, height=14.0]
    So the bounds of the Label are mostly above the origin, and the bounds of the Rectangle extends below the origin. That's why, when you throw them into a Group, the height of the Group is almost the sum of the two heights, even though visually the Label and the Rectangle overlap.
    You might ask why the bounds of the Label extend above the actual label text. Well, that might be a bug. I'll investigate it. If you look at the layoutBounds of a Label, it makes more sense.
    Meanwhile, a great explanation of the various JavaFX bounds can be found on [Amy Fowler's blog|http://weblogs.java.net/blog/2009/07/09/javafx12-understanding-bounds].
    Edited by: smarks on Jan 5, 2010 3:31 PM

  • VBox Problem ....or Flex bug

    Hi All,
    I have a layour which contains a list.
    The list appends many VBox dynamically.
    We can access each VBox by click an arrow so it expands down.
    The layout works fine when the content in vbox is less .
    If the vbox has more content and we expand all the VBox then the stylesheet is not properly rendered.
    What might be the problem ....
    Or it is bug .

    This is probably not a bug, and we can probably help you with it.
    But you'll have to post simplified yet complete code.
    Please boil down your problem into a simplified yet complete code post that still exhibits the issue, with sample data if necessary.

  • Is this a bug in mx:ComboBox ?

    Hi All,
    I'm using a mx:ComboBox control in my extension project for InDesign CS5/CS55.5/CS6 using Extension Builder 2.1, Flash Builder 4.6 and Extension Builder 3.4 SDK.
    Problem:
    When I click my ComboBox control(the text part excluding the down arrow part) after switching application to another and then back to InDesign, the list is shown and then closed quickly. Again if I click on ComboBox then the list is displayed properly.
    Is this a BUG in mx:ComboBox ?
    Please suggest any solutions/workaround to fix the issue.
    ComboBoxTest.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" historyManagementEnabled="false"
      initialize="initializeHandler(event)">
      <mx:Script>
      <![CDATA[
      import mx.collections.ArrayCollection;
      import mx.events.DropdownEvent;
      import mx.events.FlexEvent;
      import mx.events.ListEvent;
      [Bindable]
      private var cmbBoxItems:ArrayCollection;
      private function onComboBoxClick(event:MouseEvent):void{
      trace('onComboBoxClick() - '+event);
      private function onComboBoxOpen(event:DropdownEvent):void{
      trace('onComboBoxOpen() - '+event);
      private function onComboBoxChange(event:ListEvent):void{
      trace('onComboBoxChange() - '+event);
      private function onComboBoxClose(event:DropdownEvent):void{
      trace('onComboBoxClose() - '+event);
      trace('\n');
      protected function initializeHandler(event:FlexEvent):void
      cmbBoxItems = new ArrayCollection(["One","Two","Three","Four","Five"]);
      ]]>
      </mx:Script>
      <mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center" verticalGap="10">
      <mx:ComboBox  id="testCmbBox" dataProvider="{cmbBoxItems}" click="onComboBoxClick(event)" open="onComboBoxOpen(event)" change="onComboBoxChange(event)" close="onComboBoxClose(event)"/>
      </mx:VBox>
    </mx:Application>

    Now I'm sure that its a BUG in mx:ComboBox(Mac OS X Lion, InDesign CS5.5) as I'm able to reproduce in Adobe's Kuler panel also as follows,
    Open Kuler panel and switch to Browse tab.
    Then switch application(Cmd+Tab) and come back to InDesign.
    Then click on any combo-box(Highest Rated or All Time).
    We see that the combo-box is not opened for the first time.
    Any help/suggestion/workaround is highly appreciated.
    Thanks.

  • XFCE bug or just me ?

    I can't reboot or logout using the panel buttons neither to start firefox trough xfce menu.
    Starting mozzila from XFCE Menu:
    Menu > Internet > Firefox - > i get nothing on the screen, no errors
    Menu  > Web Browser - > i get an eror: Failed to execute default web browser Input/output error.
    Trying to reboot/logout and i get this: Failed to run action "Log Out"  Session Manager must be in idle state when requesting a shut down.
    Right now im running  firefox as root from CLI.
    root@pyndrive]# firefox
    GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
    dmesg output:
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Linux version 3.4.8-1-ARCH (tobias@T-POWA-LX) (gcc version 4.7.1 20120721 (prerelease) (GCC) ) #1 SMP PREEMPT Thu Aug 9 19:24:46 UTC 2012
    [ 0.000000] BIOS-provided physical RAM map:
    [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
    [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
    [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
    [ 0.000000] BIOS-e820: 0000000000100000 - 000000003fff0000 (usable)
    [ 0.000000] BIOS-e820: 000000003fff0000 - 0000000040000000 (ACPI data)
    [ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
    [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
    [ 0.000000] DMI 2.5 present.
    [ 0.000000] DMI: innotek GmbH VirtualBox, BIOS VirtualBox 12/01/2006
    [ 0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
    [ 0.000000] e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
    [ 0.000000] last_pfn = 0x3fff0 max_arch_pfn = 0x100000
    [ 0.000000] MTRR default type: uncachable
    [ 0.000000] MTRR variable ranges disabled:
    [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
    [ 0.000000] CPU MTRRs all blank - virtualized system.
    [ 0.000000] initial memory mapped : 0 - 01c00000
    [ 0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
    [ 0.000000] init_memory_mapping: 0000000000000000-00000000377fe000
    [ 0.000000] 0000000000 - 0000400000 page 4k
    [ 0.000000] 0000400000 - 0037400000 page 2M
    [ 0.000000] 0037400000 - 00377fe000 page 4k
    [ 0.000000] kernel direct mapping tables up to 377fe000 @ 1bfb000-1c00000
    [ 0.000000] RAMDISK: 37a58000 - 37d24000
    [ 0.000000] Allocated new RAMDISK: 37532000 - 377fdc44
    [ 0.000000] Move RAMDISK from 0000000037a58000 - 0000000037d23c43 to 37532000 - 377fdc43
    [ 0.000000] ACPI: RSDP 000e0000 00024 (v02 VBOX )
    [ 0.000000] ACPI: XSDT 3fff0030 00034 (v01 VBOX VBOXXSDT 00000001 ASL 00000061)
    [ 0.000000] ACPI: FACP 3fff00f0 000F4 (v04 VBOX VBOXFACP 00000001 ASL 00000061)
    [ 0.000000] ACPI: DSDT 3fff0410 01B96 (v01 VBOX VBOXBIOS 00000002 INTL 20100528)
    [ 0.000000] ACPI: FACS 3fff0200 00040
    [ 0.000000] ACPI: SSDT 3fff0240 001CC (v01 VBOX VBOXCPUT 00000002 INTL 20100528)
    [ 0.000000] 135MB HIGHMEM available.
    [ 0.000000] 887MB LOWMEM available.
    [ 0.000000] mapped low ram: 0 - 377fe000
    [ 0.000000] low ram: 0 - 377fe000
    [ 0.000000] Zone PFN ranges:
    [ 0.000000] DMA 0x00000010 -> 0x00001000
    [ 0.000000] Normal 0x00001000 -> 0x000377fe
    [ 0.000000] HighMem 0x000377fe -> 0x0003fff0
    [ 0.000000] Movable zone start PFN for each node
    [ 0.000000] Early memory PFN ranges
    [ 0.000000] 0: 0x00000010 -> 0x0000009f
    [ 0.000000] 0: 0x00000100 -> 0x0003fff0
    [ 0.000000] On node 0 totalpages: 262015
    [ 0.000000] free_area_init_node: node 0, pgdat c151ec80, node_mem_map f6d31200
    [ 0.000000] DMA zone: 32 pages used for memmap
    [ 0.000000] DMA zone: 0 pages reserved
    [ 0.000000] DMA zone: 3951 pages, LIFO batch:0
    [ 0.000000] Normal zone: 1744 pages used for memmap
    [ 0.000000] Normal zone: 221486 pages, LIFO batch:31
    [ 0.000000] HighMem zone: 272 pages used for memmap
    [ 0.000000] HighMem zone: 34530 pages, LIFO batch:7
    [ 0.000000] Using APIC driver default
    [ 0.000000] ACPI: PM-Timer IO Port: 0x4008
    [ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
    [ 0.000000] Found and enabled local APIC!
    [ 0.000000] nr_irqs_gsi: 16
    [ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
    [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
    [ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
    [ 0.000000] Allocating PCI resources starting at 40000000 (gap: 40000000:bffc0000)
    [ 0.000000] Booting paravirtualized kernel on bare hardware
    [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
    [ 0.000000] PERCPU: Embedded 13 pages/cpu @f6d1d000 s31424 r0 d21824 u53248
    [ 0.000000] pcpu-alloc: s31424 r0 d21824 u53248 alloc=13*4096
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 259967
    [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c15dc78e-e70d-4eb5-a0b2-c25b79bc6b34 ro quiet
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Initializing CPU#0
    [ 0.000000] allocated 2096896 bytes of page_cgroup
    [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [ 0.000000] Initializing HighMem for node 0 (000377fe:0003fff0)
    [ 0.000000] Memory: 1027300k/1048512k available (3810k kernel code, 20760k reserved, 1472k data, 524k init, 139208k highmem)
    [ 0.000000] virtual kernel memory layout:
    [ 0.000000] fixmap : 0xfff16000 - 0xfffff000 ( 932 kB)
    [ 0.000000] pkmap : 0xff800000 - 0xffc00000 (4096 kB)
    [ 0.000000] vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB)
    [ 0.000000] .init : 0xc1529000 - 0xc15ac000 ( 524 kB)
    [ 0.000000] .data : 0xc13b8837 - 0xc1528840 (1472 kB)
    [ 0.000000] .text : 0xc1000000 - 0xc13b8837 (3810 kB)
    [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
    [ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
    [ 0.000000] Dump stacks of tasks blocking RCU-preempt GP.
    [ 0.000000] NR_IRQS:2304 nr_irqs:256 16
    [ 0.000000] CPU 0 irqstacks, hard=f6408000 soft=f640a000
    [ 0.000000] Console: colour dummy device 80x25
    [ 0.000000] console [tty0] enabled
    [ 0.000000] Fast TSC calibration using PIT
    [ 0.000000] Detected 3062.475 MHz processor.
    [ 0.003336] Calibrating delay loop (skipped), value calculated using timer frequency.. 6127.15 BogoMIPS (lpj=10208250)
    [ 0.003340] pid_max: default: 32768 minimum: 301
    [ 0.003357] Security Framework initialized
    [ 0.003361] AppArmor: AppArmor disabled by boot time parameter
    [ 0.003373] Mount-cache hash table entries: 512
    [ 0.003498] Initializing cgroup subsys cpuacct
    [ 0.003502] Initializing cgroup subsys memory
    [ 0.003508] Initializing cgroup subsys devices
    [ 0.003511] Initializing cgroup subsys freezer
    [ 0.003515] Initializing cgroup subsys net_cls
    [ 0.003518] Initializing cgroup subsys blkio
    [ 0.003667] mce: CPU supports 0 MCE banks
    [ 0.003726] using mwait in idle threads.
    [ 0.004052] SMP alternatives: switching to UP code
    [ 0.016665] Freeing SMP alternatives: 16k freed
    [ 0.016665] ACPI: Core revision 20120320
    [ 0.017157] ACPI: setting ELCR to 0200 (from 0e20)
    [ 0.017305] ftrace: allocating 16939 entries in 34 pages
    [ 0.026695] weird, boot CPU (#0) not listed by the BIOS.
    [ 0.026702] SMP motherboard not detected.
    [ 0.026704] Enabling APIC mode: Flat. Using 0 I/O APICs
    [ 0.029998] SMP disabled
    [ 0.029998] Performance Events: unsupported p6 CPU model 42 no PMU driver, software events only.
    [ 0.046700] NMI watchdog: disabled (cpu0): hardware events not enabled
    [ 0.046716] Brought up 1 CPUs
    [ 0.046717] Total of 1 processors activated (6127.15 BogoMIPS).
    [ 0.046797] devtmpfs: initialized
    [ 0.047527] NET: Registered protocol family 16
    [ 0.047616] ACPI: bus type pci registered
    [ 0.120467] PCI: PCI BIOS revision 2.10 entry at 0xfc040, last bus=0
    [ 0.120470] PCI: Using configuration type 1 for base access
    [ 0.120823] bio: create slab <bio-0> at 0
    [ 0.120861] ACPI: Added _OSI(Module Device)
    [ 0.120863] ACPI: Added _OSI(Processor Device)
    [ 0.120864] ACPI: Added _OSI(3.0 _SCP Extensions)
    [ 0.120865] ACPI: Added _OSI(Processor Aggregator Device)
    [ 0.121097] ACPI: EC: Look up EC in DSDT
    [ 0.121296] ACPI: Executed 1 blocks of module-level executable AML code
    [ 0.123127] ACPI: Interpreter enabled
    [ 0.123132] ACPI: (supports S0 S5)
    [ 0.123139] ACPI: Using PIC for interrupt routing
    [ 0.124453] ACPI: No dock devices found.
    [ 0.124457] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug
    [ 0.124499] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
    [ 0.124559] pci_root PNP0A03:00: host bridge window [io 0x0000-0x0cf7] (ignored)
    [ 0.124561] pci_root PNP0A03:00: host bridge window [io 0x0d00-0xffff] (ignored)
    [ 0.124563] pci_root PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff] (ignored)
    [ 0.124565] pci_root PNP0A03:00: host bridge window [mem 0x40000000-0xffdfffff] (ignored)
    [ 0.124566] PCI: root bus 00: using default resources
    [ 0.124587] PCI host bridge to bus 0000:00
    [ 0.124589] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
    [ 0.124590] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
    [ 0.124631] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
    [ 0.124979] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
    [ 0.125505] pci 0000:00:01.1: [8086:7111] type 00 class 0x01018a
    [ 0.125890] pci 0000:00:01.1: reg 20: [io 0xd000-0xd00f]
    [ 0.126170] pci 0000:00:02.0: [80ee:beef] type 00 class 0x030000
    [ 0.126989] pci 0000:00:02.0: reg 10: [mem 0xe0000000-0xe0ffffff pref]
    [ 0.132279] pci 0000:00:03.0: [8086:100e] type 00 class 0x020000
    [ 0.132960] pci 0000:00:03.0: reg 10: [mem 0xf0000000-0xf001ffff]
    [ 0.134025] pci 0000:00:03.0: reg 18: [io 0xd010-0xd017]
    [ 0.137088] pci 0000:00:04.0: [80ee:cafe] type 00 class 0x088000
    [ 0.137730] pci 0000:00:04.0: reg 10: [io 0xd020-0xd03f]
    [ 0.138343] pci 0000:00:04.0: reg 14: [mem 0xf0400000-0xf07fffff]
    [ 0.138952] pci 0000:00:04.0: reg 18: [mem 0xf0800000-0xf0803fff pref]
    [ 0.142047] pci 0000:00:05.0: [8086:2415] type 00 class 0x040100
    [ 0.142145] pci 0000:00:05.0: reg 10: [io 0xd100-0xd1ff]
    [ 0.142219] pci 0000:00:05.0: reg 14: [io 0xd200-0xd23f]
    [ 0.142677] pci 0000:00:06.0: [106b:003f] type 00 class 0x0c0310
    [ 0.143395] pci 0000:00:06.0: reg 10: [mem 0xf0804000-0xf0804fff]
    [ 0.146872] pci 0000:00:07.0: [8086:7113] type 00 class 0x068000
    [ 0.147490] pci 0000:00:0d.0: [8086:2829] type 00 class 0x010601
    [ 0.148158] pci 0000:00:0d.0: reg 10: [io 0xd240-0xd247]
    [ 0.149357] pci 0000:00:0d.0: reg 18: [io 0xd250-0xd257]
    [ 0.150594] pci 0000:00:0d.0: reg 20: [io 0xd260-0xd26f]
    [ 0.151197] pci 0000:00:0d.0: reg 24: [mem 0xf0806000-0xf0807fff]
    [ 0.152141] pci_bus 0000:00: on NUMA node 0
    [ 0.152150] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
    [ 0.152779] pci0000:00: Unable to request _OSC control (_OSC support mask: 0x1e)
    [ 0.155212] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 9 10 11)
    [ 0.155372] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 9 10 *11)
    [ 0.155426] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 9 *10 11)
    [ 0.155485] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 *9 10 11)
    [ 0.155574] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
    [ 0.155577] vgaarb: loaded
    [ 0.155578] vgaarb: bridge control possible 0000:00:02.0
    [ 0.155606] PCI: Using ACPI for IRQ routing
    [ 0.155607] PCI: pci_cache_line_size set to 64 bytes
    [ 0.155769] reserve RAM buffer: 000000000009fc00 - 000000000009ffff
    [ 0.155771] reserve RAM buffer: 000000003fff0000 - 000000003fffffff
    [ 0.155836] NetLabel: Initializing
    [ 0.155837] NetLabel: domain hash size = 128
    [ 0.155838] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.155846] NetLabel: unlabeled traffic allowed by default
    [ 0.158830] pnp: PnP ACPI init
    [ 0.158842] ACPI: bus type pnp registered
    [ 0.158896] pnp 00:00: [bus 00-ff]
    [ 0.158899] pnp 00:00: [io 0x0cf8-0x0cff]
    [ 0.158900] pnp 00:00: [io 0x0000-0x0cf7 window]
    [ 0.158902] pnp 00:00: [io 0x0d00-0xffff window]
    [ 0.158903] pnp 00:00: [mem 0x000a0000-0x000bffff window]
    [ 0.158905] pnp 00:00: [mem 0x40000000-0xffdfffff window]
    [ 0.158924] pnp 00:00: Plug and Play ACPI device, IDs PNP0a03 (active)
    [ 0.158941] pnp 00:01: [io 0x0060]
    [ 0.158942] pnp 00:01: [io 0x0064]
    [ 0.158944] pnp 00:01: [irq 1]
    [ 0.158957] pnp 00:01: Plug and Play ACPI device, IDs PNP0303 (active)
    [ 0.158963] pnp 00:02: [io 0x0000-0x000f]
    [ 0.158965] pnp 00:02: [io 0x0080-0x008f]
    [ 0.158966] pnp 00:02: [io 0x00c0-0x00df]
    [ 0.158967] pnp 00:02: [dma 4]
    [ 0.158980] pnp 00:02: Plug and Play ACPI device, IDs PNP0200 (active)
    [ 0.159007] pnp 00:03: [irq 12]
    [ 0.159020] pnp 00:03: Plug and Play ACPI device, IDs PNP0f03 (active)
    [ 0.159028] pnp 00:04: [io 0x0378-0x037f]
    [ 0.159030] pnp 00:04: [io 0x0778-0x077f]
    [ 0.159031] pnp 00:04: [irq 7]
    [ 0.159043] pnp 00:04: Plug and Play ACPI device, IDs PNP0400 (active)
    [ 0.159396] pnp: PnP ACPI: found 5 devices
    [ 0.159397] ACPI: ACPI bus type pnp unregistered
    [ 0.195989] Switching to clocksource acpi_pm
    [ 0.196010] pci_bus 0000:00: resource 4 [io 0x0000-0xffff]
    [ 0.196012] pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
    [ 0.196040] NET: Registered protocol family 2
    [ 0.196075] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.196148] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
    [ 0.196307] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
    [ 0.196380] TCP: Hash tables configured (established 131072 bind 65536)
    [ 0.196381] TCP: reno registered
    [ 0.196383] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.196386] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.196422] NET: Registered protocol family 1
    [ 0.196429] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
    [ 0.196453] pci 0000:00:01.0: Activating ISA DMA hang workarounds
    [ 0.196479] pci 0000:00:02.0: Boot video device
    [ 0.196479] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
    [ 0.196479] PCI: setting IRQ 11 as level-triggered
    [ 0.250191] PCI: CLS 0 bytes, default 64
    [ 0.250221] Unpacking initramfs...
    [ 0.293939] Freeing initrd memory: 2864k freed
    [ 0.294414] platform rtc_cmos: registered platform RTC device (no PNP device found)
    [ 0.294524] apm: BIOS not found.
    [ 0.294683] audit: initializing netlink socket (disabled)
    [ 0.294698] type=2000 audit(1344869699.293:1): initialized
    [ 0.294934] highmem bounce pool size: 64 pages
    [ 0.294940] HugeTLB registered 4 MB page size, pre-allocated 0 pages
    [ 0.296000] VFS: Disk quotas dquot_6.5.2
    [ 0.296033] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.296090] msgmni has been set to 1740
    [ 0.296202] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    [ 0.296217] io scheduler noop registered
    [ 0.296219] io scheduler deadline registered
    [ 0.296222] io scheduler cfq registered (default)
    [ 0.296298] vesafb: mode is 640x480x32, linelength=2560, pages=0
    [ 0.296299] vesafb: scrolling: redraw
    [ 0.296300] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
    [ 0.296352] vesafb: framebuffer at 0xe0000000, mapped to 0xf8080000, using 1216k, total 1216k
    [ 0.297093] Console: switching to colour frame buffer device 80x30
    [ 0.297818] fb0: VESA VGA frame buffer device
    [ 0.297881] GHES: HEST is not enabled!
    [ 0.297889] isapnp: Scanning for PnP cards...
    [ 0.619715] isapnp: No Plug & Play device found
    [ 0.619771] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.620131] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
    [ 0.620518] serio: i8042 KBD port at 0x60,0x64 irq 1
    [ 0.620538] serio: i8042 AUX port at 0x60,0x64 irq 12
    [ 0.620588] mousedev: PS/2 mouse device common for all mice
    [ 0.620838] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    [ 0.621270] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
    [ 0.621300] rtc0: alarms up to one day, 114 bytes nvram
    [ 0.621311] cpuidle: using governor ladder
    [ 0.621312] cpuidle: using governor menu
    [ 0.621437] TCP: cubic registered
    [ 0.621502] NET: Registered protocol family 10
    [ 0.621642] NET: Registered protocol family 17
    [ 0.621645] Registering the dns_resolver key type
    [ 0.621672] Using IPI No-Shortcut mode
    [ 0.621723] PM: Hibernation image not present or could not be loaded.
    [ 0.621728] registered taskstats version 1
    [ 0.622117] rtc_cmos rtc_cmos: setting system clock to 2012-08-13 14:55:00 UTC (1344869700)
    [ 0.622138] Initializing network drop monitor service
    [ 0.622170] Freeing unused kernel memory: 524k freed
    [ 0.622287] Write protecting the kernel text: 3812k
    [ 0.622302] Write protecting the kernel read-only data: 1124k
    [ 0.629298] systemd-udevd[34]: starting version 187
    [ 0.652855] SCSI subsystem initialized
    [ 0.656712] usbcore: registered new interface driver usbfs
    [ 0.656712] usbcore: registered new interface driver hub
    [ 0.657996] libata version 3.00 loaded.
    [ 0.658210] ata_piix 0000:00:01.1: version 2.13
    [ 0.660267] usbcore: registered new device driver usb
    [ 0.660540] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 0.660549] scsi0 : ata_piix
    [ 0.663678] scsi1 : ata_piix
    [ 0.663712] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xd000 irq 14
    [ 0.663714] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xd008 irq 15
    [ 0.663989] ahci 0000:00:0d.0: version 3.0
    [ 0.664466] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
    [ 0.664469] PCI: setting IRQ 5 as level-triggered
    [ 0.664569] ahci: SSS flag set, parallel bus scan disabled
    [ 0.664708] ahci 0000:00:0d.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    [ 0.664711] ahci 0000:00:0d.0: flags: 64bit ncq stag only ccc
    [ 0.666961] scsi2 : ahci
    [ 0.667004] ata3: SATA max UDMA/133 abar m8192@0xf0806000 port 0xf0806100 irq 5
    [ 0.667068] ohci_hcd 0000:00:06.0: OHCI Host Controller
    [ 0.667084] ohci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 1
    [ 0.667110] ohci_hcd 0000:00:06.0: irq 11, io mem 0xf0804000
    [ 0.720357] hub 1-0:1.0: USB hub found
    [ 0.720368] hub 1-0:1.0: 8 ports detected
    [ 0.820420] ata2.00: ATAPI: VBOX CD-ROM, 1.0, max UDMA/133
    [ 0.820777] ata2.00: configured for UDMA/33
    [ 0.821241] scsi 1:0:0:0: CD-ROM VBOX CD-ROM 1.0 PQ: 0 ANSI: 5
    [ 0.986822] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 0.986891] ata3.00: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133
    [ 0.986893] ata3.00: 16777216 sectors, multi 128: LBA48 NCQ (depth 31/32)
    [ 0.986975] ata3.00: configured for UDMA/133
    [ 0.987185] scsi 2:0:0:0: Direct-Access ATA VBOX HARDDISK 1.0 PQ: 0 ANSI: 5
    [ 0.992040] sr0: scsi3-mmc drive: 32x/32x xa/form2 tray
    [ 0.992042] cdrom: Uniform CD-ROM driver Revision: 3.20
    [ 0.992220] sr 1:0:0:0: Attached scsi CD-ROM sr0
    [ 0.992309] sd 2:0:0:0: [sda] 16777216 512-byte logical blocks: (8.58 GB/8.00 GiB)
    [ 0.992335] sd 2:0:0:0: [sda] Write Protect is off
    [ 0.992337] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 0.992348] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 1.000483] sda: sda1 sda2
    [ 1.000643] sd 2:0:0:0: [sda] Attached SCSI disk
    [ 1.106793] usb 1-1: new full-speed USB device number 2 using ohci_hcd
    [ 1.300886] Refined TSC clocksource calibration: 3062.629 MHz.
    [ 1.300892] Switching to clocksource tsc
    [ 1.343527] input: VirtualBox USB Tablet as /devices/pci0000:00/0000:00:06.0/usb1/1-1/1-1:1.0/input/input1
    [ 1.343621] generic-usb 0003:80EE:0021.0001: input,hidraw0: USB HID v1.10 Mouse [VirtualBox USB Tablet] on usb-0000:00:06.0-1/input0
    [ 1.343732] usbcore: registered new interface driver usbhid
    [ 1.343734] usbhid: USB HID core driver
    [ 1.442375] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
    [ 2.403131] systemd-udevd[136]: starting version 188
    [ 2.812740] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9
    [ 2.812743] PCI: setting IRQ 9 as level-triggered
    [ 2.813203] input: Unspecified device as /devices/virtual/input/input2
    [ 2.813300] vboxguest: major 0, IRQ 9, I/O port d020, MMIO at 00000000f0400000 (size 0x400000)
    [ 2.813302] vboxguest: Successfully loaded version 4.1.18_OSE (interface 0x00010004)
    [ 2.836261] vboxsf: Successfully loaded version 4.1.18_OSE (interface 0x00010004)
    [ 2.948069] Linux agpgart interface v0.103
    [ 2.956064] [drm] Initialized drm 1.1.0 20060810
    [ 2.956575] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
    [ 2.956576] [drm] No driver support for vblank timestamp query.
    [ 2.956578] [drm] Initialized vboxvideo 1.0.0 20090303 for 0000:00:02.0 on minor 0
    [ 3.030274] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
    [ 3.030280] ACPI: Power Button [PWRF]
    [ 3.030471] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input4
    [ 3.030474] ACPI: Sleep Button [SLPF]
    [ 3.046817] ACPI: AC Adapter [AC] (on-line)
    [ 3.094543] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
    [ 3.094545] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [ 3.094837] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
    [ 3.094840] PCI: setting IRQ 10 as level-triggered
    [ 3.214262] input: PC Speaker as /devices/platform/pcspkr/input/input5
    [ 3.316722] psmouse serio1: hgpk: ID: 10 00 64
    [ 3.318607] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input6
    [ 3.321611] parport_pc 00:04: reported by Plug and Play ACPI
    [ 3.393294] ppdev: user-space parallel port driver
    [ 3.428764] microcode: CPU0 sig=0x206a7, pf=0x1, revision=0x0
    [ 3.439417] microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
    [ 3.541306] e1000 0000:00:03.0: eth0: (PCI:33MHz:32-bit) 08:00:27:4f:73:56
    [ 3.541314] e1000 0000:00:03.0: eth0: Intel(R) PRO/1000 Network Connection
    [ 3.541340] piix4_smbus 0000:00:07.0: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
    [ 3.871259] intel8x0_measure_ac97_clock: measured 52595 usecs (6240 samples)
    [ 3.871261] intel8x0: measured clock 118642 rejected
    [ 4.226780] intel8x0_measure_ac97_clock: measured 53281 usecs (7200 samples)
    [ 4.226783] intel8x0: measured clock 135132 rejected
    [ 4.583408] intel8x0_measure_ac97_clock: measured 53223 usecs (7200 samples)
    [ 4.583411] intel8x0: measured clock 135279 rejected
    [ 4.583412] intel8x0: clocking to 48000
    [ 5.046848] EXT4-fs (sda2): re-mounted. Opts: data=ordered
    [ 5.046980] EXT4-fs (sda2): re-mounted. Opts: data=ordered
    [ 5.506731] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 5.507267] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
    [ 5.507655] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 15.897707] eth0: no IPv6 routers present
    [ 33.270665] EXT4-fs (sda2): re-mounted. Opts: data=ordered,commit=0
    I've just reinstalled XFCE but nothing has changed.:( I think has something to do with https://bugs.launchpad.net/ubuntu/+sour … comments/3
    Sorry for my bad english. Thank You.
    Last edited by xfce (2012-08-14 05:48:24)

    xfce wrote:
    I can't reboot or logout using the panel buttons neither to start firefox trough xfce menu.
    Starting mozzila from XFCE Menu:
    Menu > Internet > Firefox - > i get nothing on the screen, no errors
    Menu  > Web Browser - > i get an eror: Failed to execute default web browser Input/output error.
    Trying to reboot/logout and i get this: Failed to run action "Log Out"  Session Manager must be in idle state when requesting a shut down.
    Right now im running  firefox as root from CLI.
    root@pyndrive]# firefox
    GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
    dmesg output:
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Linux version 3.4.8-1-ARCH (tobias@T-POWA-LX) (gcc version 4.7.1 20120721 (prerelease) (GCC) ) #1 SMP PREEMPT Thu Aug 9 19:24:46 UTC 2012
    [ 0.000000] BIOS-provided physical RAM map:
    [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
    [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
    [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
    [ 0.000000] BIOS-e820: 0000000000100000 - 000000003fff0000 (usable)
    [ 0.000000] BIOS-e820: 000000003fff0000 - 0000000040000000 (ACPI data)
    [ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
    [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
    [ 0.000000] DMI 2.5 present.
    [ 0.000000] DMI: innotek GmbH VirtualBox, BIOS VirtualBox 12/01/2006
    [ 0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
    [ 0.000000] e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
    [ 0.000000] last_pfn = 0x3fff0 max_arch_pfn = 0x100000
    [ 0.000000] MTRR default type: uncachable
    [ 0.000000] MTRR variable ranges disabled:
    [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
    [ 0.000000] CPU MTRRs all blank - virtualized system.
    [ 0.000000] initial memory mapped : 0 - 01c00000
    [ 0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
    [ 0.000000] init_memory_mapping: 0000000000000000-00000000377fe000
    [ 0.000000] 0000000000 - 0000400000 page 4k
    [ 0.000000] 0000400000 - 0037400000 page 2M
    [ 0.000000] 0037400000 - 00377fe000 page 4k
    [ 0.000000] kernel direct mapping tables up to 377fe000 @ 1bfb000-1c00000
    [ 0.000000] RAMDISK: 37a58000 - 37d24000
    [ 0.000000] Allocated new RAMDISK: 37532000 - 377fdc44
    [ 0.000000] Move RAMDISK from 0000000037a58000 - 0000000037d23c43 to 37532000 - 377fdc43
    [ 0.000000] ACPI: RSDP 000e0000 00024 (v02 VBOX )
    [ 0.000000] ACPI: XSDT 3fff0030 00034 (v01 VBOX VBOXXSDT 00000001 ASL 00000061)
    [ 0.000000] ACPI: FACP 3fff00f0 000F4 (v04 VBOX VBOXFACP 00000001 ASL 00000061)
    [ 0.000000] ACPI: DSDT 3fff0410 01B96 (v01 VBOX VBOXBIOS 00000002 INTL 20100528)
    [ 0.000000] ACPI: FACS 3fff0200 00040
    [ 0.000000] ACPI: SSDT 3fff0240 001CC (v01 VBOX VBOXCPUT 00000002 INTL 20100528)
    [ 0.000000] 135MB HIGHMEM available.
    [ 0.000000] 887MB LOWMEM available.
    [ 0.000000] mapped low ram: 0 - 377fe000
    [ 0.000000] low ram: 0 - 377fe000
    [ 0.000000] Zone PFN ranges:
    [ 0.000000] DMA 0x00000010 -> 0x00001000
    [ 0.000000] Normal 0x00001000 -> 0x000377fe
    [ 0.000000] HighMem 0x000377fe -> 0x0003fff0
    [ 0.000000] Movable zone start PFN for each node
    [ 0.000000] Early memory PFN ranges
    [ 0.000000] 0: 0x00000010 -> 0x0000009f
    [ 0.000000] 0: 0x00000100 -> 0x0003fff0
    [ 0.000000] On node 0 totalpages: 262015
    [ 0.000000] free_area_init_node: node 0, pgdat c151ec80, node_mem_map f6d31200
    [ 0.000000] DMA zone: 32 pages used for memmap
    [ 0.000000] DMA zone: 0 pages reserved
    [ 0.000000] DMA zone: 3951 pages, LIFO batch:0
    [ 0.000000] Normal zone: 1744 pages used for memmap
    [ 0.000000] Normal zone: 221486 pages, LIFO batch:31
    [ 0.000000] HighMem zone: 272 pages used for memmap
    [ 0.000000] HighMem zone: 34530 pages, LIFO batch:7
    [ 0.000000] Using APIC driver default
    [ 0.000000] ACPI: PM-Timer IO Port: 0x4008
    [ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
    [ 0.000000] Found and enabled local APIC!
    [ 0.000000] nr_irqs_gsi: 16
    [ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
    [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
    [ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
    [ 0.000000] Allocating PCI resources starting at 40000000 (gap: 40000000:bffc0000)
    [ 0.000000] Booting paravirtualized kernel on bare hardware
    [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
    [ 0.000000] PERCPU: Embedded 13 pages/cpu @f6d1d000 s31424 r0 d21824 u53248
    [ 0.000000] pcpu-alloc: s31424 r0 d21824 u53248 alloc=13*4096
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 259967
    [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c15dc78e-e70d-4eb5-a0b2-c25b79bc6b34 ro quiet
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Initializing CPU#0
    [ 0.000000] allocated 2096896 bytes of page_cgroup
    [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [ 0.000000] Initializing HighMem for node 0 (000377fe:0003fff0)
    [ 0.000000] Memory: 1027300k/1048512k available (3810k kernel code, 20760k reserved, 1472k data, 524k init, 139208k highmem)
    [ 0.000000] virtual kernel memory layout:
    [ 0.000000] fixmap : 0xfff16000 - 0xfffff000 ( 932 kB)
    [ 0.000000] pkmap : 0xff800000 - 0xffc00000 (4096 kB)
    [ 0.000000] vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB)
    [ 0.000000] .init : 0xc1529000 - 0xc15ac000 ( 524 kB)
    [ 0.000000] .data : 0xc13b8837 - 0xc1528840 (1472 kB)
    [ 0.000000] .text : 0xc1000000 - 0xc13b8837 (3810 kB)
    [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
    [ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
    [ 0.000000] Dump stacks of tasks blocking RCU-preempt GP.
    [ 0.000000] NR_IRQS:2304 nr_irqs:256 16
    [ 0.000000] CPU 0 irqstacks, hard=f6408000 soft=f640a000
    [ 0.000000] Console: colour dummy device 80x25
    [ 0.000000] console [tty0] enabled
    [ 0.000000] Fast TSC calibration using PIT
    [ 0.000000] Detected 3062.475 MHz processor.
    [ 0.003336] Calibrating delay loop (skipped), value calculated using timer frequency.. 6127.15 BogoMIPS (lpj=10208250)
    [ 0.003340] pid_max: default: 32768 minimum: 301
    [ 0.003357] Security Framework initialized
    [ 0.003361] AppArmor: AppArmor disabled by boot time parameter
    [ 0.003373] Mount-cache hash table entries: 512
    [ 0.003498] Initializing cgroup subsys cpuacct
    [ 0.003502] Initializing cgroup subsys memory
    [ 0.003508] Initializing cgroup subsys devices
    [ 0.003511] Initializing cgroup subsys freezer
    [ 0.003515] Initializing cgroup subsys net_cls
    [ 0.003518] Initializing cgroup subsys blkio
    [ 0.003667] mce: CPU supports 0 MCE banks
    [ 0.003726] using mwait in idle threads.
    [ 0.004052] SMP alternatives: switching to UP code
    [ 0.016665] Freeing SMP alternatives: 16k freed
    [ 0.016665] ACPI: Core revision 20120320
    [ 0.017157] ACPI: setting ELCR to 0200 (from 0e20)
    [ 0.017305] ftrace: allocating 16939 entries in 34 pages
    [ 0.026695] weird, boot CPU (#0) not listed by the BIOS.
    [ 0.026702] SMP motherboard not detected.
    [ 0.026704] Enabling APIC mode: Flat. Using 0 I/O APICs
    [ 0.029998] SMP disabled
    [ 0.029998] Performance Events: unsupported p6 CPU model 42 no PMU driver, software events only.
    [ 0.046700] NMI watchdog: disabled (cpu0): hardware events not enabled
    [ 0.046716] Brought up 1 CPUs
    [ 0.046717] Total of 1 processors activated (6127.15 BogoMIPS).
    [ 0.046797] devtmpfs: initialized
    [ 0.047527] NET: Registered protocol family 16
    [ 0.047616] ACPI: bus type pci registered
    [ 0.120467] PCI: PCI BIOS revision 2.10 entry at 0xfc040, last bus=0
    [ 0.120470] PCI: Using configuration type 1 for base access
    [ 0.120823] bio: create slab <bio-0> at 0
    [ 0.120861] ACPI: Added _OSI(Module Device)
    [ 0.120863] ACPI: Added _OSI(Processor Device)
    [ 0.120864] ACPI: Added _OSI(3.0 _SCP Extensions)
    [ 0.120865] ACPI: Added _OSI(Processor Aggregator Device)
    [ 0.121097] ACPI: EC: Look up EC in DSDT
    [ 0.121296] ACPI: Executed 1 blocks of module-level executable AML code
    [ 0.123127] ACPI: Interpreter enabled
    [ 0.123132] ACPI: (supports S0 S5)
    [ 0.123139] ACPI: Using PIC for interrupt routing
    [ 0.124453] ACPI: No dock devices found.
    [ 0.124457] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug
    [ 0.124499] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
    [ 0.124559] pci_root PNP0A03:00: host bridge window [io 0x0000-0x0cf7] (ignored)
    [ 0.124561] pci_root PNP0A03:00: host bridge window [io 0x0d00-0xffff] (ignored)
    [ 0.124563] pci_root PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff] (ignored)
    [ 0.124565] pci_root PNP0A03:00: host bridge window [mem 0x40000000-0xffdfffff] (ignored)
    [ 0.124566] PCI: root bus 00: using default resources
    [ 0.124587] PCI host bridge to bus 0000:00
    [ 0.124589] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
    [ 0.124590] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
    [ 0.124631] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
    [ 0.124979] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
    [ 0.125505] pci 0000:00:01.1: [8086:7111] type 00 class 0x01018a
    [ 0.125890] pci 0000:00:01.1: reg 20: [io 0xd000-0xd00f]
    [ 0.126170] pci 0000:00:02.0: [80ee:beef] type 00 class 0x030000
    [ 0.126989] pci 0000:00:02.0: reg 10: [mem 0xe0000000-0xe0ffffff pref]
    [ 0.132279] pci 0000:00:03.0: [8086:100e] type 00 class 0x020000
    [ 0.132960] pci 0000:00:03.0: reg 10: [mem 0xf0000000-0xf001ffff]
    [ 0.134025] pci 0000:00:03.0: reg 18: [io 0xd010-0xd017]
    [ 0.137088] pci 0000:00:04.0: [80ee:cafe] type 00 class 0x088000
    [ 0.137730] pci 0000:00:04.0: reg 10: [io 0xd020-0xd03f]
    [ 0.138343] pci 0000:00:04.0: reg 14: [mem 0xf0400000-0xf07fffff]
    [ 0.138952] pci 0000:00:04.0: reg 18: [mem 0xf0800000-0xf0803fff pref]
    [ 0.142047] pci 0000:00:05.0: [8086:2415] type 00 class 0x040100
    [ 0.142145] pci 0000:00:05.0: reg 10: [io 0xd100-0xd1ff]
    [ 0.142219] pci 0000:00:05.0: reg 14: [io 0xd200-0xd23f]
    [ 0.142677] pci 0000:00:06.0: [106b:003f] type 00 class 0x0c0310
    [ 0.143395] pci 0000:00:06.0: reg 10: [mem 0xf0804000-0xf0804fff]
    [ 0.146872] pci 0000:00:07.0: [8086:7113] type 00 class 0x068000
    [ 0.147490] pci 0000:00:0d.0: [8086:2829] type 00 class 0x010601
    [ 0.148158] pci 0000:00:0d.0: reg 10: [io 0xd240-0xd247]
    [ 0.149357] pci 0000:00:0d.0: reg 18: [io 0xd250-0xd257]
    [ 0.150594] pci 0000:00:0d.0: reg 20: [io 0xd260-0xd26f]
    [ 0.151197] pci 0000:00:0d.0: reg 24: [mem 0xf0806000-0xf0807fff]
    [ 0.152141] pci_bus 0000:00: on NUMA node 0
    [ 0.152150] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
    [ 0.152779] pci0000:00: Unable to request _OSC control (_OSC support mask: 0x1e)
    [ 0.155212] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 9 10 11)
    [ 0.155372] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 9 10 *11)
    [ 0.155426] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 9 *10 11)
    [ 0.155485] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 *9 10 11)
    [ 0.155574] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
    [ 0.155577] vgaarb: loaded
    [ 0.155578] vgaarb: bridge control possible 0000:00:02.0
    [ 0.155606] PCI: Using ACPI for IRQ routing
    [ 0.155607] PCI: pci_cache_line_size set to 64 bytes
    [ 0.155769] reserve RAM buffer: 000000000009fc00 - 000000000009ffff
    [ 0.155771] reserve RAM buffer: 000000003fff0000 - 000000003fffffff
    [ 0.155836] NetLabel: Initializing
    [ 0.155837] NetLabel: domain hash size = 128
    [ 0.155838] NetLabel: protocols = UNLABELED CIPSOv4
    [ 0.155846] NetLabel: unlabeled traffic allowed by default
    [ 0.158830] pnp: PnP ACPI init
    [ 0.158842] ACPI: bus type pnp registered
    [ 0.158896] pnp 00:00: [bus 00-ff]
    [ 0.158899] pnp 00:00: [io 0x0cf8-0x0cff]
    [ 0.158900] pnp 00:00: [io 0x0000-0x0cf7 window]
    [ 0.158902] pnp 00:00: [io 0x0d00-0xffff window]
    [ 0.158903] pnp 00:00: [mem 0x000a0000-0x000bffff window]
    [ 0.158905] pnp 00:00: [mem 0x40000000-0xffdfffff window]
    [ 0.158924] pnp 00:00: Plug and Play ACPI device, IDs PNP0a03 (active)
    [ 0.158941] pnp 00:01: [io 0x0060]
    [ 0.158942] pnp 00:01: [io 0x0064]
    [ 0.158944] pnp 00:01: [irq 1]
    [ 0.158957] pnp 00:01: Plug and Play ACPI device, IDs PNP0303 (active)
    [ 0.158963] pnp 00:02: [io 0x0000-0x000f]
    [ 0.158965] pnp 00:02: [io 0x0080-0x008f]
    [ 0.158966] pnp 00:02: [io 0x00c0-0x00df]
    [ 0.158967] pnp 00:02: [dma 4]
    [ 0.158980] pnp 00:02: Plug and Play ACPI device, IDs PNP0200 (active)
    [ 0.159007] pnp 00:03: [irq 12]
    [ 0.159020] pnp 00:03: Plug and Play ACPI device, IDs PNP0f03 (active)
    [ 0.159028] pnp 00:04: [io 0x0378-0x037f]
    [ 0.159030] pnp 00:04: [io 0x0778-0x077f]
    [ 0.159031] pnp 00:04: [irq 7]
    [ 0.159043] pnp 00:04: Plug and Play ACPI device, IDs PNP0400 (active)
    [ 0.159396] pnp: PnP ACPI: found 5 devices
    [ 0.159397] ACPI: ACPI bus type pnp unregistered
    [ 0.195989] Switching to clocksource acpi_pm
    [ 0.196010] pci_bus 0000:00: resource 4 [io 0x0000-0xffff]
    [ 0.196012] pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
    [ 0.196040] NET: Registered protocol family 2
    [ 0.196075] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.196148] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
    [ 0.196307] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
    [ 0.196380] TCP: Hash tables configured (established 131072 bind 65536)
    [ 0.196381] TCP: reno registered
    [ 0.196383] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.196386] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.196422] NET: Registered protocol family 1
    [ 0.196429] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
    [ 0.196453] pci 0000:00:01.0: Activating ISA DMA hang workarounds
    [ 0.196479] pci 0000:00:02.0: Boot video device
    [ 0.196479] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
    [ 0.196479] PCI: setting IRQ 11 as level-triggered
    [ 0.250191] PCI: CLS 0 bytes, default 64
    [ 0.250221] Unpacking initramfs...
    [ 0.293939] Freeing initrd memory: 2864k freed
    [ 0.294414] platform rtc_cmos: registered platform RTC device (no PNP device found)
    [ 0.294524] apm: BIOS not found.
    [ 0.294683] audit: initializing netlink socket (disabled)
    [ 0.294698] type=2000 audit(1344869699.293:1): initialized
    [ 0.294934] highmem bounce pool size: 64 pages
    [ 0.294940] HugeTLB registered 4 MB page size, pre-allocated 0 pages
    [ 0.296000] VFS: Disk quotas dquot_6.5.2
    [ 0.296033] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.296090] msgmni has been set to 1740
    [ 0.296202] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    [ 0.296217] io scheduler noop registered
    [ 0.296219] io scheduler deadline registered
    [ 0.296222] io scheduler cfq registered (default)
    [ 0.296298] vesafb: mode is 640x480x32, linelength=2560, pages=0
    [ 0.296299] vesafb: scrolling: redraw
    [ 0.296300] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
    [ 0.296352] vesafb: framebuffer at 0xe0000000, mapped to 0xf8080000, using 1216k, total 1216k
    [ 0.297093] Console: switching to colour frame buffer device 80x30
    [ 0.297818] fb0: VESA VGA frame buffer device
    [ 0.297881] GHES: HEST is not enabled!
    [ 0.297889] isapnp: Scanning for PnP cards...
    [ 0.619715] isapnp: No Plug & Play device found
    [ 0.619771] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.620131] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
    [ 0.620518] serio: i8042 KBD port at 0x60,0x64 irq 1
    [ 0.620538] serio: i8042 AUX port at 0x60,0x64 irq 12
    [ 0.620588] mousedev: PS/2 mouse device common for all mice
    [ 0.620838] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    [ 0.621270] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
    [ 0.621300] rtc0: alarms up to one day, 114 bytes nvram
    [ 0.621311] cpuidle: using governor ladder
    [ 0.621312] cpuidle: using governor menu
    [ 0.621437] TCP: cubic registered
    [ 0.621502] NET: Registered protocol family 10
    [ 0.621642] NET: Registered protocol family 17
    [ 0.621645] Registering the dns_resolver key type
    [ 0.621672] Using IPI No-Shortcut mode
    [ 0.621723] PM: Hibernation image not present or could not be loaded.
    [ 0.621728] registered taskstats version 1
    [ 0.622117] rtc_cmos rtc_cmos: setting system clock to 2012-08-13 14:55:00 UTC (1344869700)
    [ 0.622138] Initializing network drop monitor service
    [ 0.622170] Freeing unused kernel memory: 524k freed
    [ 0.622287] Write protecting the kernel text: 3812k
    [ 0.622302] Write protecting the kernel read-only data: 1124k
    [ 0.629298] systemd-udevd[34]: starting version 187
    [ 0.652855] SCSI subsystem initialized
    [ 0.656712] usbcore: registered new interface driver usbfs
    [ 0.656712] usbcore: registered new interface driver hub
    [ 0.657996] libata version 3.00 loaded.
    [ 0.658210] ata_piix 0000:00:01.1: version 2.13
    [ 0.660267] usbcore: registered new device driver usb
    [ 0.660540] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 0.660549] scsi0 : ata_piix
    [ 0.663678] scsi1 : ata_piix
    [ 0.663712] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xd000 irq 14
    [ 0.663714] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xd008 irq 15
    [ 0.663989] ahci 0000:00:0d.0: version 3.0
    [ 0.664466] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
    [ 0.664469] PCI: setting IRQ 5 as level-triggered
    [ 0.664569] ahci: SSS flag set, parallel bus scan disabled
    [ 0.664708] ahci 0000:00:0d.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    [ 0.664711] ahci 0000:00:0d.0: flags: 64bit ncq stag only ccc
    [ 0.666961] scsi2 : ahci
    [ 0.667004] ata3: SATA max UDMA/133 abar m8192@0xf0806000 port 0xf0806100 irq 5
    [ 0.667068] ohci_hcd 0000:00:06.0: OHCI Host Controller
    [ 0.667084] ohci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 1
    [ 0.667110] ohci_hcd 0000:00:06.0: irq 11, io mem 0xf0804000
    [ 0.720357] hub 1-0:1.0: USB hub found
    [ 0.720368] hub 1-0:1.0: 8 ports detected
    [ 0.820420] ata2.00: ATAPI: VBOX CD-ROM, 1.0, max UDMA/133
    [ 0.820777] ata2.00: configured for UDMA/33
    [ 0.821241] scsi 1:0:0:0: CD-ROM VBOX CD-ROM 1.0 PQ: 0 ANSI: 5
    [ 0.986822] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 0.986891] ata3.00: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133
    [ 0.986893] ata3.00: 16777216 sectors, multi 128: LBA48 NCQ (depth 31/32)
    [ 0.986975] ata3.00: configured for UDMA/133
    [ 0.987185] scsi 2:0:0:0: Direct-Access ATA VBOX HARDDISK 1.0 PQ: 0 ANSI: 5
    [ 0.992040] sr0: scsi3-mmc drive: 32x/32x xa/form2 tray
    [ 0.992042] cdrom: Uniform CD-ROM driver Revision: 3.20
    [ 0.992220] sr 1:0:0:0: Attached scsi CD-ROM sr0
    [ 0.992309] sd 2:0:0:0: [sda] 16777216 512-byte logical blocks: (8.58 GB/8.00 GiB)
    [ 0.992335] sd 2:0:0:0: [sda] Write Protect is off
    [ 0.992337] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [ 0.992348] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [ 1.000483] sda: sda1 sda2
    [ 1.000643] sd 2:0:0:0: [sda] Attached SCSI disk
    [ 1.106793] usb 1-1: new full-speed USB device number 2 using ohci_hcd
    [ 1.300886] Refined TSC clocksource calibration: 3062.629 MHz.
    [ 1.300892] Switching to clocksource tsc
    [ 1.343527] input: VirtualBox USB Tablet as /devices/pci0000:00/0000:00:06.0/usb1/1-1/1-1:1.0/input/input1
    [ 1.343621] generic-usb 0003:80EE:0021.0001: input,hidraw0: USB HID v1.10 Mouse [VirtualBox USB Tablet] on usb-0000:00:06.0-1/input0
    [ 1.343732] usbcore: registered new interface driver usbhid
    [ 1.343734] usbhid: USB HID core driver
    [ 1.442375] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
    [ 2.403131] systemd-udevd[136]: starting version 188
    [ 2.812740] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9
    [ 2.812743] PCI: setting IRQ 9 as level-triggered
    [ 2.813203] input: Unspecified device as /devices/virtual/input/input2
    [ 2.813300] vboxguest: major 0, IRQ 9, I/O port d020, MMIO at 00000000f0400000 (size 0x400000)
    [ 2.813302] vboxguest: Successfully loaded version 4.1.18_OSE (interface 0x00010004)
    [ 2.836261] vboxsf: Successfully loaded version 4.1.18_OSE (interface 0x00010004)
    [ 2.948069] Linux agpgart interface v0.103
    [ 2.956064] [drm] Initialized drm 1.1.0 20060810
    [ 2.956575] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
    [ 2.956576] [drm] No driver support for vblank timestamp query.
    [ 2.956578] [drm] Initialized vboxvideo 1.0.0 20090303 for 0000:00:02.0 on minor 0
    [ 3.030274] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
    [ 3.030280] ACPI: Power Button [PWRF]
    [ 3.030471] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input4
    [ 3.030474] ACPI: Sleep Button [SLPF]
    [ 3.046817] ACPI: AC Adapter [AC] (on-line)
    [ 3.094543] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
    [ 3.094545] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [ 3.094837] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
    [ 3.094840] PCI: setting IRQ 10 as level-triggered
    [ 3.214262] input: PC Speaker as /devices/platform/pcspkr/input/input5
    [ 3.316722] psmouse serio1: hgpk: ID: 10 00 64
    [ 3.318607] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input6
    [ 3.321611] parport_pc 00:04: reported by Plug and Play ACPI
    [ 3.393294] ppdev: user-space parallel port driver
    [ 3.428764] microcode: CPU0 sig=0x206a7, pf=0x1, revision=0x0
    [ 3.439417] microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
    [ 3.541306] e1000 0000:00:03.0: eth0: (PCI:33MHz:32-bit) 08:00:27:4f:73:56
    [ 3.541314] e1000 0000:00:03.0: eth0: Intel(R) PRO/1000 Network Connection
    [ 3.541340] piix4_smbus 0000:00:07.0: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
    [ 3.871259] intel8x0_measure_ac97_clock: measured 52595 usecs (6240 samples)
    [ 3.871261] intel8x0: measured clock 118642 rejected
    [ 4.226780] intel8x0_measure_ac97_clock: measured 53281 usecs (7200 samples)
    [ 4.226783] intel8x0: measured clock 135132 rejected
    [ 4.583408] intel8x0_measure_ac97_clock: measured 53223 usecs (7200 samples)
    [ 4.583411] intel8x0: measured clock 135279 rejected
    [ 4.583412] intel8x0: clocking to 48000
    [ 5.046848] EXT4-fs (sda2): re-mounted. Opts: data=ordered
    [ 5.046980] EXT4-fs (sda2): re-mounted. Opts: data=ordered
    [ 5.506731] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 5.507267] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
    [ 5.507655] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 15.897707] eth0: no IPv6 routers present
    [ 33.270665] EXT4-fs (sda2): re-mounted. Opts: data=ordered,commit=0
    I've just reinstalled XFCE but nothing has changed.:( I think has something to do with this https://bugs.launchpad.net/ubuntu/+sour … comments/3
    Sorry for my bad english. Thank You.
    Please post your daemons from rc.conf. Also, how are you starting Xfce? Reinstalling things usually doesn't accomplish much. I've found it's much better and more efficient to fix the problems when they crop up. Besides, you learn much more that way.

  • Flex Bug - Programmatic Skinning!

    I believe I found a Programmatic Skinning bug in Flex.
    Whenever I set the "borderSkin" property to a custom skin
    class, the flash player hangs in all browsers, the CPU peaks around
    95% and memory is consumed rapidly.
    After waiting for about 10 minutes I get the following...
    [SWF] C:\Documents and Settings\Chris.Simeone\My
    Documents\Flex Builder 2\Skinning-Lessons\bin\gridBorders-debug.swf
    - 408,071 bytes after decompression
    undefined
    at
    mx.core::UIComponent/getClassStyleDeclarations()[C:\dev\GMC\sdk\frameworks\mx\core\UIComp onent.as:6810]
    at
    mx.styles::StyleProtoChain$/mx.styles:StyleProtoChain::addProperties()[C:\dev\GMC\sdk\fra meworks\mx\styles\StyleProtoChain.as:142]
    at
    mx.styles::StyleProtoChain$/mx.styles:StyleProtoChain::addProperties()[C:\dev\GMC\sdk\fra meworks\mx\styles\StyleProtoChain.as:173]
    (FYI: The previous error line is repeated 191 times)
    I tried tracing my custom skin class (by setting breakpoints)
    but none of the code ever fires - the debugger never goes into the
    code.
    When I remove this line from my CSS file -
    borderSkin:ClassReference('GridBorders'); - the application
    runs fine.
    To test this further I grabbed the example on the bottom of
    this
    page
    and the same exact error occurs. Note it the "borderSkin" property
    is set on the VBox tag.
    I tested other programmatic skinning examples that use
    upSkin, downSkin, etc and they all work fine. I only have this
    problem when assigning a skin class to the "borderSkin" property.
    Would someone please confirm this is bug? I followed the
    Programmatic skins recipe to the letter.
    Thanks
    Chris Simeone

    I found the problem. It's in my CSS file. If there's a
    "borderStyle"
    property as defined below the application hangs. Take out the
    "borderStyle" property and the app runs.
    See my test code below (FYI: it does not do much. My first
    attempt at
    border skinning using code)...
    GRIDBORDERS.CSS » HERE'S THE PROBLEM
    Application
    background-color: #FFFAC7;
    GridItem
    borderStyle: solid;
    borderSkin: ClassReference('GridBorders');
    GRIDBORDERS.MXML
    <?xml version="1.0"?>
    <mx:Application pageTitle="Grid Borders"
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Style source="GridBorders.css"/>
    <mx:Grid height="640" width="940">
    <mx:GridRow width="100%" height="66%">
    <mx:GridItem width="66%" height="100%" >
    </mx:GridItem>
    <mx:GridItem width="33%" height="100%" >
    </mx:GridItem>
    </mx:GridRow>
    <mx:GridRow width="100%" height="33%" >
    <mx:GridItem colSpan="2" width="100%" height="100%" >
    </mx:GridItem>
    </mx:GridRow>
    </mx:Grid>
    </mx:Application>
    GRIDBORDERS.AS
    package
    import mx.skins.*;
    import mx.containers.Grid;
    import flash.display.*;
    import flash.utils.*;
    public class GridBorders extends Border
    public function GridBorders()
    super();
    override protected function updateDisplayList( w:Number,
    h:Number
    ):void
    graphics.lineStyle( 15, 0xFFFF00, 0 );
    graphics.beginFill( 0xFFFF00, 1.0 );
    graphics.drawRect( 0, 0, 10, height );
    graphics.endFill();
    private var _borderMetrics:EdgeMetrics = new EdgeMetrics(1,
    1, 1, 1);
    override public function get borderMetrics():EdgeMetrics
    return _borderMetrics;

  • Feature or bug? (ListView/SelectionModel)

    I attach a short program which illustrates a phenomenon I have observed. Basically, I am trying to repeatedly delete the first item displayed in a ListView. I select that item using SelectionModel.select(0) or SelectionModel.selectFirst() and then delete SelectionModel.getSelectedItem() from the underlying item list. The first time round it works. The second time round, SelectionModel.getSelectedItem() still returns the item from the first iteration. I would have expected the call to SelectionModel.select(0) to update selectedItemProperty. Have I misunderstood something? Should I be doing something different?
    Interestingly, a similar thing occurs if you replace select(0) with selectLast().
    But if you call select(1) everything works as I had expected (selectedItemProperty is updated).
    Feature or bug?
    Steve
    package selectionbug;
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ListView;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class SelectionBug extends Application {
        public SelectionBug() { }
        public static void main(String[] args) {
            Application.launch(SelectionBug.class, args);
        @Override
        public void start(Stage primaryStage) {
            final ListView<String> list = new ListView<String>();
            ObservableList<String> items =
                FXCollections.observableArrayList("abc", "def", "ghi", "jkl", "mno", "pqr", "stu", "vwx");
            list.setItems(items);
            list.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {
                @Override
                public void changed(ObservableValue<? extends String> ov, String oldValue, String newValue) {
                    System.out.println("*** ChangeListener: "+oldValue+" -> "+newValue);
            Button button = new Button("Go");
            button.setOnAction(new EventHandler<ActionEvent>() {
                    @Override
                    public void handle(ActionEvent t) {
                        list.getSelectionModel().select(0);
                        //list.getSelectionModel().selectFirst();
                        //list.getSelectionModel().selectLast();
                        String string = list.getSelectionModel().getSelectedItem();
                        System.out.println(string);
                        if (list.getItems().remove(string)) {
                            System.out.println("removed");
                        } else {
                            System.out.println("oops");
            VBox vBox = new VBox();
            vBox.getChildren().addAll(list, button);
            Scene scene = new Scene(vBox);
            primaryStage.setScene(scene);
            primaryStage.show();
    }Edited by: winnall on 16-Mar-2012 00:35

    Hi, I'm the engineer behind the selection model API.
    There are a few things to note first:
    1) It is totally valid for the selectedItem to represent an item that is not actually part of the ListView.items list. It just means that if the selectedItem is set to a non-existent item, and when the item is added to the listview.items list, the selectedIndex will update to point to this selectedItem.
    2) Events don't fire when the property value doesn't change. So the first time you select(0) you end up with the selected index event firing as the new value is 0. If nothing else changes and you call select(0) again, you'll get no event fired.
    Now, I would argue that if the selected item / index is removed from the ListView.items list, it should be removed from the selection. This does not appear to be happening. There may be various reasons why this doesn't happen (selection models can have a LOT of nuances that all need to be keep balanced like a man with his spinning plates), but you should file a bug so I can investigate deeper.
    Thanks,
    -- Jonathan

  • ListView appearing behind other graphical components in VBox

    I have created a ListView implementation of a ChoiceBox since I have a very long list of items and I don't like the fact that the entire list is displayed when opening the ChoiceBox. I have attached this ListView to a button so that when a user clicks on the button the ListView opens just like a ChoiceBox. My issue, however, is that when the ListView is diplayed it appears behind the other graphical components in my VBox container! I have tried to call "toFront()" on my ListView component however the VBox repositions my ListView component to the bottom of the VBox (which makes sense since toFront merely moves the node to the end of the VBox node list). Obviously this is not the behaviour I want and I don't want to have to convert my VBox to a StackPane (or just a Pane) and layout the components myself since the VBox lays out the components perfectly. It would be nice if there were a "z order" parameter but that doesn't appear to be the case and I have already looked into the "depth" parameter.
    Are there any other ways to bring my ListView to the front without the VBox repositioning this component? How does the ChoiceBox component itself accomplish this? I have also tried to embed the ListView in a PopupControl but the unfortunate side effect of this is that the Popup always appears in front of EVERY window on my screen which is a tad annoying.
    BTW, I think JavaFX is the next best thing to sliced bread! I have written a very large application and this is the only issue that I have run into since it went GA. JavaFX has far exceeded my expectations and the JavaFX team (and Oracle in general) and other developers who have contributed to this project should all be commended for the outstanding work they have done on this!!!

    fermat wrote:
    I have created a ListView implementation of a ChoiceBox since I have a very long list of items and I don't like the fact that the entire list is displayed when opening the ChoiceBox. I have attached this ListView to a button so that when a user clicks on the button the ListView opens just like a ChoiceBox. My issue, however, is that when the ListView is diplayed it appears behind the other graphical components in my VBox container! I have tried to call "toFront()" on my ListView component however the VBox repositions my ListView component to the bottom of the VBox (which makes sense since toFront merely moves the node to the end of the VBox node list). Obviously this is not the behaviour I want and I don't want to have to convert my VBox to a StackPane (or just a Pane) and layout the components myself since the VBox lays out the components perfectly. It would be nice if there were a "z order" parameter but that doesn't appear to be the case and I have already looked into the "depth" parameter.
    Are there any other ways to bring my ListView to the front without the VBox repositioning this component? How does the ChoiceBox component itself accomplish this? I have also tried to embed the ListView in a PopupControl but the unfortunate side effect of this is that the Popup always appears in front of EVERY window on my screen which is a tad annoying.Ya, the PopupControl is the way to go with this. The reason why is that if you use "lightweight" rendering of the drop down (er... popup?) and it extends beyond the end of the window, you will have your list appear clipped. So you have to use a real heavyweight window (the PopupControl) to make sure that if it extends beyond the edge of the window, it displays correctly.
    I believe the UI controls team is planning on adding a proper ComboBox (which, FWIW, we always planned to add) sometime between now and 3.0, but I'm not sure when. The ChoiceBox actually uses a ContextMenu, while ComboBox would use PopupControl, but some of the little details are the same. Here is a code snippet that might be useful from the ChoiceBox skin.
            // When popup is hidden by autohide - the ChoiceBox Showing property needs
            // to be updated. So we listen to when autohide happens. Calling hide()
            // there after causes Showing to be set to false
            popup.setOnAutoHide(new EventHandler<Event>() {
                @Override public void handle(Event event) {
                    ((ChoiceBox)getSkinnable()).hide();
            // fix RT-14469 : When tab shifts ChoiceBox focus to another control,
            // its popup should hide.
            getSkinnable().focusedProperty().addListener(new ChangeListener<Boolean>() {
                @Override public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
                    if (!newValue) {
                        ((ChoiceBox)getSkinnable()).hide();
            // TODO remove this id once bug RT-7542 is fixed.
            popup.setId("choice-box-popup-menu");
    BTW, I think JavaFX is the next best thing to sliced bread! I have written a very large application and this is the only issue that I have run into since it went GA. JavaFX has far exceeded my expectations and the JavaFX team (and Oracle in general) and other developers who have contributed to this project should all be commended for the outstanding work they have done on this!!!Dude, thanks for that, you just made my day :-)

  • Bug with ListView!?

    Can someone please run the following code and tell me what is wrong? We have the following problem:
    If some cell is selected, and then you select another cell, the previously selected cell becomes partly blank (only the text element).
    If I mouse over the previously cell, the text appears again.
    A few things to notice:
    - If I remove from.setTextFill(Color.RED); from the code, it behaves as a normal list, without the bug.
    - I wonder why the text Label is highlighted white, while the text2 Label is not highlighted, while focussed.
    import javafx.application.Application;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.ListCell;
    import javafx.scene.control.ListView;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.Priority;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.util.Callback;
    public class TestApp3 extends Application {
        public static void main(String[] args) throws Exception {
            launch(args);
        private ObservableList<Double> items = FXCollections.observableArrayList();
        public void start(Stage stage) throws Exception {
            VBox root = new VBox(4);
            final ListView<String> listView = new ListView<String>();
            listView.setItems(FXCollections.observableArrayList(
                    "Row 1", "Row 2", "Long Row 3", "Row 4", "Row 5", "Row 6",
                    "Row 7", "Row 8", "Row 9", "Row 10", "Row 11", "Row 12", "Row 13",
                    "Row 14", "Row 15", "Row 16", "Row 17", "Row 18", "Row 19", "Row 20"
            listView.setCellFactory(new Callback<ListView<String>, ListCell<String>>() {
                @Override
                public ListCell<String> call(ListView<String> stringListView) {
                    final CellItem cellItem = new CellItem();
                    final ListCell<String> cell = new ListCell<String>() {
                        @Override
                        protected void updateItem(String item, boolean empty) {
                            super.updateItem(item, empty);
                            if (item != null) {
                                cellItem.setItem(item);
                    cell.setGraphic(cellItem);
                    return cell;
            root.getChildren().add(listView);
            Scene scene = new Scene(root, 800, 600);
            scene.getStylesheets().add("styles.css");
            stage.setScene(scene);
            stage.show();
        class CellItem extends HBox {
            private Label from;
            private Label text;
            private Label text2;
            public CellItem() {
                super();
                text = new Label();
                text2 = new Label();
                from = new Label();
                text.setMaxWidth(Double.MAX_VALUE);
                HBox.setHgrow(text, Priority.ALWAYS);
                getChildren().add(from);
                getChildren().add(text);
                getChildren().add(text2);
            public void setItem(String item) {
                if (item != null) {
                    text.setText(item);
                    text2.setText("Text");
                    from.setText("Bla");
                    from.setTextFill(Color.RED);
                } else {
                    text.setText(null);
    }

    Hi,
    Actually it's some kind of bug because the ListCell doesn't convert the color of textfill when the cell is select except for the "Black" filled text. The listcell must render the text fill color of all text inside it with different color to "white" when they are selected.
    @csh
    Any way for currently you can do things like this:
    First make public access to your Label:"from" variable of CellItem as getFrom().
    And add this line in ListCell factory of ListView
                   cellItem.setItem(item);
    // New Code [start]
    cell.selectedProperty().addListener(new ChangeListener<Boolean>(){
         @Override
         public void changed(ObservableValue<? extends Boolean> ov, Boolean t, Boolean t1) {
              CellItem it = (CellItem)cell.getGraphic();
              if(it!=null){
                   if(t1.booleanValue()){
                        it.getFrom().setTextFill(Color.WHITE);
                   }else{
                                    //you own color which you want
                        it.getFrom().setTextFill(Color.RED);
    // New Code [end]
    cell.setGraphic(cellItem);
    return cell;
    //.....I know this is not a perfect but it's just for working currently.I wish JavaFX Control devs will listen this thread.
    Thanks.
    Narayan

  • Bug in Flow layout?

    Before I made a JIRA entry, wanted to see if anyone else thought this was a bug. It drove me crazy for days.
    It appears that if I initialize a Flow content at the time of creation of the Flow object, all is well. However, if I add content in bulk afterwards, all elements are stacked on top of each other. Other layouts (like HBox seem to work just fine). More interestingly, 'later' if I add or remove elements from the flow, it adjusts its size and positions of everything correctly. Weird.
    This works fine:
    function createFlow():Flow{
        var flow:Flow = Flow{
             width: 100 hgap: 5 vgap: 10
             content: for (i in [1..5])
             Rectangle { width: 40 height: 40 }
    Stage {
        scene: Scene {
            content: [
                 createFlow()
    }However, this way stacks the rectangles on top of each other for some reason.
    function createFlow():Flow{
        var flow:Flow = Flow{
             width: 100 hgap: 5 vgap: 10
         for (i in [1..5])
             insert Rectangle { width: 40 height: 40 } into flow.content;
        return flow;
    Stage {
        scene: Scene {
            content: [
                 createFlow()
    }

    Indeed, it sounds as a bug H/VBox had in 1.1.
    I can reproduce your problem with JavaFX 1.2 on Windows XP Pro SP3.
    The following code works fine too:
    Stage {
        scene: Scene {
            content: [
    //~             createFlow()
                   Flow {
                        width: 100 hgap: 5 vgap: 10
                        content: for (i in [1..5])
                             Rectangle { width: 40 height: 40 }
    }but this one fails:
    function createFlow(): Flow {
        var flow: Flow = Flow {
            width: 100 hgap: 5 vgap: 10
        var content = for (i in [1..5])
              Rectangle { width: 40 height: 40 };
        flow.content = content;
        return flow;
    }Looks like Flow prefers to have its sequence provided at creation time...

  • [svn] 4756: Bug fix for universal Advanced CSS selectors.

    Revision: 4756
    Author: [email protected]
    Date: 2009-01-30 07:58:55 -0800 (Fri, 30 Jan 2009)
    Log Message:
    Bug fix for universal Advanced CSS selectors.
    1. In CSS, the universal selector * matches any element. It is often implied in selectors, such as the .foo class selector would formally be written *.foo { }. So, what we were previously calling "global selectors" will now be referred to as universal selectors. Flex retains its own special top level "global" selector to function as the root of the inheriting style prototype chain, but other universal selectors will not be associated with this special subject.
    2. When looking for universal selectors, we now match against all possible selectors that have * as the subject rather than trying to pick out specific styleName (class), id or pseudo conditions. This is needed as there may arbitrary advanced conditions in the selector chain, for example, descendant selectors that have a universal subject. Note this was the actual cause of the bug - but the other fixes were needed to separate "global" from "*".
    3. In the compiler, we'll still use the generated _globalStyles.as (i.e. from the "global" StyleDef collection of style declarations) as the place holder for universal selectors (as _*Styles.as would be an invalid ActionScript class name), though these universal selectors will report their subject as "*".
    4. When representing a selector in full as a String, we'll continue to omit "*" as the subject and substitute the empty string, so "*.foo" will be printed as ".foo".
    QA: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Paul
    Bugs:
    SDK-18196 - [Advanced CSS] Descendant selectors with class selectors like VBox .greenBox are not working correctly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18196
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/CSSSelector.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.vm
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java

    Change this:
    <div class="mainnav">
    <li id="width-HealthWellness"><a href="#">Health/Wellness</a></li>
    <ul>
    <li>Flu Section</li>
    <li> Infection Control</li>
    <li> Nutrition</li>
    <li> Physical Fitness</li>
    <li>NIH Newsletters</li>
    </ul>
    to this:
    <div class="mainnav">
    <li id="width-HealthWellness"><a href="#">Health/Wellness</a>
         <ul>
         <li>Flu Section</li>
         <li> Infection Control</li>
         <li> Nutrition</li>
         <li> Physical Fitness</li>
         <li>NIH Newsletters</li>
         </ul>
    </li>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Flash Symbol w/ filters + spark parents + Fade effect bug

    I've come across an interesting bug which I've narrowed down to a combination of:
    • Flash symbols containing 1 or more Filters (defined in the Flash IDE)...
    • Parented within certain Spark components (ex. symbol in Group that's in another Group)...
    • Modified by an effect like spark.effects.Fade
    What you see when you combine those elements above is a 1-frame, fully-opaque flicker after the Fade has completed (if fading out) or before it begins (if fading in). This flicker is noticeable and obviously not an intended part of the animation.
    Here's a small test project that reproduces what I'm talking about. If you change the VGroup component to a VBox the flicker stops happening (at least for me). The same is true if you remove the middle DataGroup component. (The bug may not stop altogether but it does occur less frequently in that case.)
    Application.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   xmlns:local="*">
         <fx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
              ]]>
         </fx:Script>
         <fx:Declarations>
              <s:Sequence id="sequence">
                   <s:Fade target="{ vbox }" alphaTo="0" />
                   <s:Fade target="{ canvas }" alphaTo="1" />
                   <s:Fade target="{ canvas }" alphaTo="0" />
                   <s:Fade target="{ vbox }" alphaTo="1" />
              </s:Sequence>
         </fx:Declarations>
         <!-- If you replace the VGroup with a VBox, this bug does not show itself. -->
         <s:VGroup id="vbox" horizontalAlign="center" horizontalCenter="0" verticalCenter="0">
         <!--<mx:VBox id="vbox" horizontalAlign="center" horizontalCenter="0" verticalCenter="0">-->
              <!-- Changing this DataGroup to a regular Group lowers the frequency of the bug, but it still occurs. -->
              <s:DataGroup id="dataGroup" dataProvider="{ new ArrayCollection( [ BasicSymbol, SymbolWithGlow, SymbolWithBevel ] ) }">
                   <s:layout>
                        <s:HorizontalLayout verticalAlign="middle" />
                   </s:layout>
                   <s:itemRenderer>
                        <fx:Component>
                             <local:DataGroupItemRenderer />
                        </fx:Component>
                   </s:itemRenderer>
              </s:DataGroup>
              <s:Button label="Play" click="sequence.play()" />
         <!--</mx:VBox>-->
         </s:VGroup>
         <mx:Canvas id="canvas" width="200" height="200" horizontalCenter="0" verticalCenter="0" backgroundColor="0xCC6600" mouseEnabled="false" alpha="0" />
    </s:Application>
    DataGroupItemRenderer MXML
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer autoDrawBackground="false" width="70" height="70"
                    xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx">
         <fx:Script>
              <![CDATA[
                   override public function set data( value:Object ):void {
                        super.data = value;
              ]]>
         </fx:Script>
         <mx:Image source="{ data }" />
    </s:ItemRenderer>
    In addition to the below MXML, I am also happy to provide the FLA that I've created the symbols in as well as a video demonstrating the glitch. (I will try to attach the video as a follow-up comment.)

    Suppose not.
    Defect created: https://bugs.adobe.com/jira/browse/SDK-30475

  • Swing bug? cannot set width of JToggleButton

    Hello,
    Just wondered if this was a Swing bug. See also
    bug 6349010.
    The width of the JToggleButton cannot be set.
    However the height can be set.
    The important line is line 135 - and also 140.
    Try changing the width of the button - it does not change.
    thanks,
    Anil
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.util.EventObject;
    import javax.swing.BorderFactory;
    import javax.swing.Box;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTabbedPane;
    import javax.swing.JTextArea;
    import javax.swing.JToggleButton;
    import javax.swing.JTree;
    import javax.swing.UnsupportedLookAndFeelException;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellEditor;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeSelectionModel;
    public class TreeUIFailed extends JPanel {
           AnilTreeCellRenderer3 atcr;
           AnilTreeCellEditor4 atce;
           DefaultTreeModel treeModel;
           JTree tree;
           DefaultMutableTreeNode markedNode = null;
         public TreeUIFailed() {
                super(new BorderLayout());
                   treeModel = new DefaultTreeModel(null);
                   tree = new JTree(treeModel);          
                  tree.setEditable(true);
                   tree.getSelectionModel().setSelectionMode(
                             TreeSelectionModel.SINGLE_TREE_SELECTION);
                   tree.setShowsRootHandles(true);
                  tree.setCellRenderer(atcr = new AnilTreeCellRenderer3());
                  tree.setCellEditor(atce = new AnilTreeCellEditor4(tree, atcr));
                  tree.setRowHeight(0);//TEMP - needed only if setting Win L&F
                   JScrollPane scrollPane = new JScrollPane(tree);
                   add(scrollPane,BorderLayout.CENTER);
         public void setRootNode(DefaultMutableTreeNode node) {
              treeModel.setRoot(node);
              treeModel.reload();
           public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException{
    //            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                TreeUIFailed tb = new TreeUIFailed();
                tb.setPreferredSize(new Dimension(800,600));
                  JFrame frame = new JFrame("Tree Windows UI Failed");
                  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                  frame.setContentPane(tb);
                  frame.setSize(800, 600);
                  frame.pack();
                  frame.setVisible(true);
                  tb.populate();
         private void populate() {
              TextAreaNode3 r = new TextAreaNode3(this);
               setRootNode(r);
                   r.gNode.notes.addTab("0", null/* icon */, new JTextArea(2,25),
                   "no menu!");
                   r.gNode.notes.addTab("1", null/* icon */, new JTextArea(2,25),
                   "no menu!");
                   TextAreaNode3 a = new TextAreaNode3(this);
                   a.gNode.notes.addTab("1", null/* icon */, new JTextArea(2,25),
                   "no menu!");
               treeModel.insertNodeInto(a, r, r.getChildCount());          
    class AnilTreeCellRenderer3 extends DefaultTreeCellRenderer{
         TreeUIFailed panel;
    DefaultMutableTreeNode currentNode;
      public AnilTreeCellRenderer3() {
         super();
    public Component getTreeCellRendererComponent
       (JTree tree, Object value, boolean selected, boolean expanded,
       boolean leaf, int row, boolean hasFocus){
         TextAreaNode3 currentNode = (TextAreaNode3)value;
         NodeGUI4 gNode = (NodeGUI4) currentNode.gNode;
        return gNode.vBox;
    class AnilTreeCellEditor4 extends DefaultTreeCellEditor{
      DefaultTreeCellRenderer rend;
      public AnilTreeCellEditor4(JTree tree, DefaultTreeCellRenderer r){
        super(tree, r);
        rend = r;
      public Component getTreeCellEditorComponent(JTree tree, Object value,
       boolean isSelected, boolean expanded, boolean leaf, int row){
        return rend.getTreeCellRendererComponent(tree, value, isSelected, expanded,
         leaf, row, true);
      public boolean isCellEditable(EventObject event){
        return true;
    * this is done to keep gui separate from model - as in MVC.
    * not necessary.
    * @author juwo
    class NodeGUI4 {
         JPanel notesPanel = new JPanel(new BorderLayout(), true);
         JTabbedPane notes = new JTabbedPane(JTabbedPane.RIGHT);
         final TreeUIFailed view;
         Box vBox = Box.createVerticalBox();
         Box hBox = Box.createHorizontalBox();
         final JTextArea textArea = new JTextArea( 1, 5 );
         JToggleButton toggleButton = new JToggleButton();
         NodeGUI4( TreeUIFailed view_ ) {
              this.view = view_;
              toggleButton.setAlignmentX(Component.CENTER_ALIGNMENT);
    // BEGIN PROBLEM          
              toggleButton.setPreferredSize(new Dimension(200,toggleButton.getPreferredSize().height));
    // END PROBLEM
              vBox.add(toggleButton);
              vBox.add(hBox);
              hBox.add( textArea );
              textArea.setBorder( BorderFactory.createMatteBorder( 0, 0, 1, 0, Color.GREEN ) );
              notesPanel.add(notes);
              hBox.add( notesPanel);
              hBox.setBorder( BorderFactory.createMatteBorder( 5, 5, 5, 5, Color.CYAN ) );
    // THE FOLLOWING DOES NOT WORK EITHER!!!          
              //          halo.setPreferredSize(new Dimension(vBox.getPreferredSize().width,halo.getPreferredSize().height));
    class TextAreaNode3 extends DefaultMutableTreeNode {  
         NodeGUI4 gNode;
         TextAreaNode3(TreeUIFailed view_t) {     
              gNode = new NodeGUI4(view_t);          
    }

    ok, sorry!
    I understood why it does not work.
    Box Layout respects the maximum size of the component.
    By default, a JToggleButton is set to 34.
    Changing the JToggleButton max width to 75, allows the preferred size to be set.
    Thank you camickr!
    Note: in contrast, Flow Layout respects the preferred size and ignores the max size!
    Message was edited by:
    anilp1

  • Tree selection bug?

    Hi,
    I don't know if this is a bug or not. When using XML as the
    data provider for the Tree component and multiple nodes have the
    same label, selecting anyone of the nodes will cause all of them to
    be selected. The problem stems from the fact that XML comparison is
    done by value. The comparison is dibe at line 6345 of ListBase. Is
    this a bug? If not, is there a known workaround?
    I attached code that reproduces the problem. Selecting the
    first node, selects the first, second and last node because, by
    value, they are all the same.
    Thanks!
    JPB

    Switch to using a strongly typed object that implements IUID,
    or just make
    sure your XML has other identifying information to it. It's
    not really that
    helpful to have 19 "foos" in your list unless there is
    something else
    different about them.
    So, something like
    <mx:XMLList id="treeData">
    <node label="Test entry 1" id="1"/>
    <node label="Test entry 1" id="2"/>
    <node label="Test entry 2" id="3"/>
    <node label="Test entry 1" id="4"/>
    </mx:XMLList>
    HTH;
    Amy
    "jpbouchard" <[email protected]> wrote in
    message
    news:g941f3$1u8$[email protected]..
    > Hi,
    >
    > I don't know if this is a bug or not. When using XML as
    the data provider
    > for
    > the Tree component and multiple nodes have the same
    label, selecting
    > anyone of
    > the nodes will cause all of them to be selected. The
    problem stems from
    > the
    > fact that XML comparison is done by value. The
    comparison is dibe at line
    > 6345
    > of ListBase. Is this a bug? If not, is there a known
    workaround?
    >
    > I attached code that reproduces the problem. Selecting
    the first node,
    > selects
    > the first, second and last node because, by value, they
    are all the same.
    >
    > Thanks!
    > JPB
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%"
    > height="100%">
    > <mx:Script>
    > <![CDATA[
    > import mx.controls.Tree;
    >
    > private function selectFirst(): void {
    > myTree.selectedItem = treeData[0];
    > }
    >
    > ]]>
    > </mx:Script>
    >
    > <mx:XMLList id="treeData">
    > <node label="Test entry 1"/>
    > <node label="Test entry 1"/>
    > <node label="Test entry 2"/>
    > <node label="Test entry 1"/>
    > </mx:XMLList>
    >
    > <mx:Panel title="Tree Selection Bug" height="100%"
    width="100%"
    > paddingTop="10" paddingLeft="10" paddingRight="10"
    paddingBottom="10">
    > <mx:Button label="Select First"
    click="selectFirst()"/>
    > <mx:Tree id="myTree" width="100%" height="100%"
    labelField="@label"
    > showRoot="true" dataProvider="{treeData}"/>
    > </mx:Panel>
    >
    > </mx:VBox>
    >

Maybe you are looking for

  • Selection Screen in Subscreen Dynpro of Tabstrip

    Hy @ all, I have a Problem. I have a Dynpro with a tabstrip on it. This tabstrip is connected to 4 Subscreen Dynpros connected by tabstrip pushbuttons. Now I need to display select-options in the first tabstrip. I did it via a subscreen for this firs

  • Trying to make the jump from JPEG to RAW...

    Hi all, I'm trying to make the jump from JPEG to RAW, and am hoping you might be able to help with a few questions. When I open JPEGs in Lightroom's Develop module, the settings are mostly zero by default. But when I open RAW files, some of the setti

  • HT6061 Mac Pro late 2013 flash storage upgrade

    How come this has been posted for 7-8 month but still no way to buy flash storage from Apple if one wold like to upgrade/increase the "SSD" size? Link: Mac Pro (Late 2013): Removing and installing flash storage Mac Pro 2013, MacBook Pro Retina, Mac B

  • My password manager is not working

    After installing and un-installing comcast's constant guard, my passwords are no longer managed through Password manager. I would like to have that function back.

  • Combining LRS and Topology Geometry Network?

    Hi, Is it possible to combine the LRS Network and Topology Model ? e.g. to create a Topology Geometry Network and which uses LRS Geometries ? some details: I used the command SDO_NET.CREATE_TOPO_NETWORK(‘TEST_NET’, 1, true, false); The following