Align for multi-header renderer in JTable

Hi,
I have a question about multi-header renderer in JTable. Here is the problem, please help me:
I used the MultiLineHeaderRenderer class example from
http://www2.gol.com/users/tame/swing/examples/JTableExamples1.html
This example makes the header to be centered (as setHorizontalAlignment(JLabel.CENTER)). Also, it is for the all the headers with 2 lines (i don't know how to describe it).
In my project, I have just a few header with 2 lines, most of them are one line. By using this example renderer class, I have the header height is bigger, of course because of some 2 lines headers, and one line header is automatically set as the TOP. What I want is to make one line header to be set as the BOTTOM just like in EXCEL.
Please help me, sorry for my technical explaination (poor huh?)
Thanks in advance.

If I understand correctly just put a space then a new line before your text for your cell that you want the text at the bottom.
like this: " \nBottom Text"
You'll need the leading space because of how StringTokenizer works.

Similar Messages

  • Horizontal alignment for Text of Header Region

    Hi,
    The content of Text property for a header Region appears left aligned by default.
    Is it possible to set horizontal Alignment = Middle(of the Page)For the Item Type, Header I do not see any property called Horizontal Alignment in the Property Inspector.
    Thanks,
    Gowtam.

    Header component does not expose any property to align the text.
    Can you check whether, the following layout helps.
    TableLayout (Horizontal Alignment - center)
    |
    -- RowLayout (Horizontal Alignment - center)
    |
    --- CellFormat (Horizontal Alignment - center)
    |
    ---- Header

  • How can I right-align a table header?

    Does anyone know a way to right-align a table header?
    For example, in the table below I want the word 'Price' to be right-aligned. I could set the table's 'header renderer' to be a right-aligned DefaultTableCellRenderer, but then the header would look like a cell, not a header. Why can't swing be simple, like table.getColumn(1).setAlignment(Column.RIGHT) ????
    public class TestTableHeader {
         public static void main(String[] args) throws Exception {
              JFrame frame = new JFrame("Test");
              Object[][] rowData = new Object[][] { { "General Electric", "$100.60" },
                        { "IBM", "$5.20" }, { "Wal-mart", "$17.00" } };
              JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
              DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
              renderer.setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
              table.getColumnModel().getColumn(1).setCellRenderer(renderer);
              frame.getContentPane().add(new JScrollPane(table));
              frame.setSize(400, 300);
              frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frame.setVisible(true);
    }

    I modified your code an came up with a solution to the problem.
    import java.awt.Component;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableCellRenderer;
    public class TestTableHeader {     
         public static void main(String[] args) throws Exception {
              JFrame frame = new JFrame("Test");
              Object[][] rowData = new Object[][] {
                        { "General Electric", "$100.60" }, { "IBM", "$5.20" },
                        { "Wal-mart", "$17.00" } };
              JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
              RightAlignRender right = new TestTableHeader().new RightAlignRender();
              table.getColumnModel().getColumn(0).setHeaderRenderer(right);
              table.getColumnModel().getColumn(1).setHeaderRenderer(right);
              frame.getContentPane().add(new JScrollPane(table));
              frame.setSize(400, 300);
              frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frame.setVisible(true);
         public class RightAlignRender extends DefaultTableCellRenderer {
              public Component getTableCellRendererComponent(JTable table,
                        Object arg1, boolean arg2, boolean arg3, int arg4, int column) {
                   Component toReturn = table.getTableHeader().getDefaultRenderer().getTableCellRendererComponent(table,
                             arg1, arg2, arg3, arg4, column);
                   switch (column) {
                   case 0:
                        ((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.CENTER);
                        break;
                   case 1:
                        ((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
                        break;
                   return toReturn;
    }

  • Column Header Rendering

    Hi,
    Does anyone know how I can change the background color og a JTable header when I click on a column in the table. For example If I click on column 3 in the tabe the header for column 3 will change color.
    Thanking you in advance.

    Add ur renderer for the header which extends BasicTableCellRenderer.. override the getTableCellRendererComponent()..
    table.getHeader().setDefaultRenderer(myRenderer());
    class myRendere extends BasicTableCellRenderer{
    public Component getTableCellRendererComponent(JTable table, Object value,
            boolean isSelected, boolean hasFocus, int row, int column){
      if(selected)
         this.setBackGround(Color.black);
    return this;
    }

  • Header renderer click handler not working

    Hi All
    Below is code of my header renderer which copied code from default headerrenderer and created new one, I added textinput with down arrow and close button,
    But when i click on close button, I am making filter box invisible, If i put a break point inside griditemrenderer1_mouseOutHandler() function then filter box becomes invisible, but while running in debug mode without break point filter box shows visible only,
    Please let me know where i am doing wrong.
    <?xml version="1.0" encoding="utf-8"?>
    <s:GridItemRenderer minWidth="21" minHeight="21"
                        xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        mouseOver="griditemrenderer1_mouseOverHandler(event)"
                        creationComplete="griditemrenderer1_creationCompleteHandler(event)">
        <fx:Declarations>
            <s:Label id="labelDisplay"
                     verticalCenter="1"
                     textAlign="start"
                     fontWeight="bold"
                     verticalAlign="middle"
                     maxDisplayedLines="1"
                     showTruncationTip="true" />
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import com.db.view.components.FilterPopup;
                import mx.managers.PopUpManager;
                import mx.controls.Menu;
                import mx.events.FlexEvent;
                import spark.components.gridClasses.IGridVisualElement;
                import mx.core.IVisualElement;
                import spark.components.DataGrid;
                import spark.components.GridColumnHeaderGroup;
                import spark.components.gridClasses.GridColumn;
                import spark.primitives.supportClasses.GraphicElement;
                // chrome color constants and variables
                private static const DEFAULT_COLOR_VALUE:uint = 0xCC;
                private static const DEFAULT_COLOR:uint = 0xCCCCCC;
                private static const DEFAULT_SYMBOL_COLOR:uint = 0x000000;
                private static var colorTransform:ColorTransform = new ColorTransform();
                 *  @private
                private function dispatchChangeEvent(type:String):void
                    if (hasEventListener(type))
                        dispatchEvent(new Event(type));
                //  maxDisplayedLines
                private var _maxDisplayedLines:int = 1;
                [Bindable("maxDisplayedLinesChanged")]
                [Inspectable(minValue="-1")]
                 *  The value of this property is used to initialize the
                 *  <code>maxDisplayedLines</code> property of this renderer's
                 *  <code>labelDisplay</code> element.
                 *  @copy spark.components.supportClasses.TextBase#maxDisplayedLines
                 *  @default 1
                 *  @langversion 3.0
                 *  @playerversion Flash 10
                 *  @playerversion AIR 1.5
                 *  @productversion Flex 4.5
                public function get maxDisplayedLines():int
                    return _maxDisplayedLines;
                 *  @private
                public function set maxDisplayedLines(value:int):void
                    if (value == _maxDisplayedLines)
                        return;
                    _maxDisplayedLines = value;
                    if (labelDisplay)
                        labelDisplay.maxDisplayedLines = value;
                    invalidateSize();
                    invalidateDisplayList();
                    dispatchChangeEvent("maxDisplayedLinesChanged");
                 *  @private
                 *  Create and add the sortIndicator to the sortIndicatorGroup and the
                 *  labelDisplay into the labelDisplayGroup.
                override public function prepare(hasBeenRecycled:Boolean):void
                    super.prepare(hasBeenRecycled);
                    if (labelDisplay && labelDisplayGroup && (labelDisplay.parent != labelDisplayGroup))
                        labelDisplayGroup.removeAllElements();
                        labelDisplayGroup.addElement(labelDisplay);
                private var chromeColorChanged:Boolean = false;
                private var colorized:Boolean = false;
                [Bindable]
                private var _filterVisibility:Boolean = false;
                 *  @private
                 *  Apply chromeColor style.
                override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                    // Apply chrome color
                    if (chromeColorChanged)
                        var chromeColor:uint = getStyle("chromeColor");
                        if (chromeColor != DEFAULT_COLOR || colorized)
                            colorTransform.redOffset = ((chromeColor & (0xFF << 16)) >> 16) - DEFAULT_COLOR_VALUE;
                            colorTransform.greenOffset = ((chromeColor & (0xFF << 8)) >> 8) - DEFAULT_COLOR_VALUE;
                            colorTransform.blueOffset = (chromeColor & 0xFF) - DEFAULT_COLOR_VALUE;
                            colorTransform.alphaMultiplier = alpha;
                            transform.colorTransform = colorTransform;
                            var exclusions:Array = [labelDisplay];
                            // Apply inverse colorizing to exclusions
                            if (exclusions && exclusions.length > 0)
                                colorTransform.redOffset = -colorTransform.redOffset;
                                colorTransform.greenOffset = -colorTransform.greenOffset;
                                colorTransform.blueOffset = -colorTransform.blueOffset;
                                for (var i:int = 0; i < exclusions.length; i++)
                                    var exclusionObject:Object = exclusions[i];
                                    if (exclusionObject &&
                                        (exclusionObject is DisplayObject ||
                                            exclusionObject is GraphicElement))
                                        colorTransform.alphaMultiplier = exclusionObject.alpha;
                                        exclusionObject.transform.colorTransform = colorTransform;
                            colorized = true;
                        chromeColorChanged = false;
                    super.updateDisplayList(unscaledWidth, unscaledHeight);
                 *  @private
                override public function styleChanged(styleProp:String):void
                    var allStyles:Boolean = !styleProp || styleProp == "styleName";
                    super.styleChanged(styleProp);
                    if (allStyles || styleProp == "chromeColor")
                        chromeColorChanged = true;
                        invalidateDisplayList();
                protected function griditemrenderer1_mouseOverHandler(event:MouseEvent):void
                    _filterVisibility = true;
                protected function griditemrenderer1_mouseOutHandler():void
                    _filterVisibility = false;
                protected function griditemrenderer1_creationCompleteHandler(event:FlexEvent):void
                    trace(label);
                protected function textinput1_clickHandler(event:MouseEvent):void
                    var filterpopUp:FilterPopup = new FilterPopup();
                    filterpopUp.filterColumn = label;
                    PopUpManager.addPopUp(filterpopUp,this,false);
                    filterpopUp.addEventListener("test",testHandler);
                    filterpopUp.x = event.stageX - 50;
                    filterpopUp.y = event.stageY + 10;
                protected function testHandler(event:Event):void
                    owner.dispatchEvent(new Event("test"));
            ]]>
        </fx:Script>
        <s:VGroup left="7" right="7" top="5" bottom="5" gap="2" verticalAlign="bottom">
            <s:HGroup id="tiFilter" width="100%" gap="3" verticalAlign="middle" visible="{_filterVisibility}">
                <s:TextInput width="{labelDisplay.width + 20}" height="16" skinClass="com.db.view.skins.FilterTextInputSkin"
                              text="{label}" click="textinput1_clickHandler(event)"/>
                <s:HGroup id="closeBtn" width="15" height="15" click="griditemrenderer1_mouseOutHandler()"
                          buttonMode="true" useHandCursor="true" mouseChildren="false" keyDown="griditemrenderer1_mouseOutHandler()">
                    <s:Image source="@Embed('/assets/images/icon_close.gif')"/>
                </s:HGroup>
            </s:HGroup>
            <s:Group id="labelDisplayGroup" width="100%"/>
            <s:Group id="sortIndicatorGroup" includeInLayout="false" />
        </s:VGroup>
    </s:GridItemRenderer>

    Hi Sudhir,
    Thanks for posting your issue, Kindly find the code snnipet below to Add a new item in Custom list
    public override void ItemAdded(SPItemEventProperties properties)
        base.ItemAdded(properties);
        if (properties.List.Title
    == "Test")
    Get Properties
            string ABC=
    properties.ListItem["Column"].ToString();
            string DEF=
    properties.ListItem["Column"].ToString();
            DateTime XYZ=
    (DateTime)properties.ListItem["Start Column"];
            DateTime WSD=
    (DateTime)properties.ListItem["End Column"];
    Create sub site
            SPWeb web
    = properties.Site.AllWebs.Add(name.Replace(" ", string.Empty),
    name,
                description, 0, SPWebTemplate.WebTemplateSTS, false, false);
            web.Update();
    Also, browse the below mentioned URL to implementation your custom list step by step. and how you can debug your custom code.
    http://www.c-sharpcorner.com/UploadFile/40e97e/create-site-automatically-when-a-list-item-is-added/
    http://msdn.microsoft.com/en-us/library/ee231550.aspx
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Logging takes in the field for multi-camera set-up with OL

    Is there any way to designate separate cameras or link shots (to be labeled as CamA or CamB) to advance takes and make notes simultaneously?
    OL doesn't really seem set up to use with documentary style shooting with multiple cameras, but maybe there is some way around this?
    I just want to be able to add takes in OL to multiple cameras without a lot of typing between each take...and add notes that are applicable to multiple cameras within one shot and one take.
    Any ideas?

    OnLocation CS5 has an entirely new feature set known as the File-Based Workflow that may be just what you are looking for. The basic steps are as follows:
    PRE-PRODUCTION (IDEALLY)
    1) Create a placeholder for one camera angle of a given scene/shot. (Consider using Adobe Story to prepare your script. Then you can hand the script off to OL and have it automatically broken down into scene-level placeholders. You will then still need to break those placeholders down to the shot level)
    2) Use the Camera Name property to designate the camera for that shot. If you use the "auto-matching" process, which you will likely want to do if you're entering notes per take, then this data point will be used to automatically mate a set of clips from, say Camera A to the correct set of placeholders.
    3) Fill in any other metadata that is common to other camera angles.
    4) Duplicate the placeholder for other camera angles & shots of the scene. To do this, you can use either the Duplicate Placeholder command or, to create multiple duplcates, the Break Out Scene command, both of which are available in the context menu when you right-click a row in the shot list. Note that both commands work with multiple rows selected.
    5) Customize each duplicate as appropriate.
    6) Repeat for your other shots.
    DURING THE SHOOT
    1) [Strongly recommended] For multi-cam shoots, synchronize the date/time on all the cameras. Ideally, synch them all to the date/time on the computer running OnLocation. This greatly simplifies the auto-matching process by saving you the hassle of repeatedly changing the camera date/time in OnLocation.
    2) Select placeholder(s) or clip(s) for the next shot.
    3) At any time between starting and stopping recording of the take, click the Timestamp button (upper left corner of the Project/Shot List panel). This step applies a timestamp to the placeholder, which makes it possible for the auto-matching mechanism to determine which clip belongs with which placeholder.
    4) Optional: Add temporal comment markers to timestamped placeholders, which will be aligned to the clip when you auto-match. (Note that PPRO does not recognize comment markers added in OnLocation.)
    5) Repeat steps 1-3 for subsequent shots
    AFTER TRANFERRING CLIPS TO THE COMPUTER
    1) In the Media Browser panel, navigate to the folder where you copied the content.
    2) Select the clips.
    3) Click the Auto-Match button at the top of the panel. This opens the Auto-Match dialog.
    4) if this is a multi-camera shoot, check the appropriate box and select the name of the camera that this content came from. The list for the Camera Name setting is populated from what you entered in the Camera Name field for all timestamped placeholders. [Be alert for unintended variants. For example, if you entered "Camera A" for some shots and "Cam A" for others, you'll see both versions in the list. Before proceeding, you should standardize the entries.]
    5) Set the Camera Date/Time. If you synched the cameras' date & time to the computer's, then this step is not necessary (unless you previously set a Camera Date/Time offset in OL, in which case you will need to reset the Date/Time to match the computer's.)
    6) Click OK to proceed with auto-matching. OnLocation will proceed to find the placeholder whose timestamp fits within the Start and Stop Recording times of one of the clips and, if relevant, whose Camera Name matches your selection. All metadata from that placeholder will be merged into the clip.
    [Please note that all of the foregoing is from memory--I don't have OL CS5 installed on this home computer--so I may have gotten the names of some of the controls wrong. I'm pretty confident that the basic workflow is sound, however.]
    Here's the help page for this feature. I'm afraid it's does not really cover the particulars for a multi-camera workflow. http://help.adobe.com/en_US/onlocation/cs/using/WS89e4fde9608114f41e5eb2de124b454ea2b-8000 .html
    As for entering the same string in the Comment field (or any other metadata property) for multiple placeholders or clips simultaneously, simply select whichever rows in the Shot List that you want to edit, then in the Metadata panel edit whichever properties you choose to. Your changes will be applied to all selected rows (assuming they're editable--i.e., not read-only or offline, both of which apply only to clips, not to placeholders)

  • Custom Popup on a Tabular Form for Multi Row Operation

    I am trying to implement a custom popup on a tabular form that I can pass a value typed in to a text item like “Name” to the popup so it can filter a list of names on what was already typed in.
    Once a selection is made I need to have the selected name passed back to the text item.
    This is easily done when not using a Tabular Form. Any ideas would be great?

    Can someone please help me with this?
    I've read the Thread:
    "Custom Popup on a Tabular Form for Multi Row Operation",
    and have tried following the instructions provided by Willi Firulais.
    I've also tried to integrate the instructions provided by RWeide in response within the same Thread.
    I cannot get the passBack function to Pass the value to the Calling Page.
    (I've tried to organize the pertinent information as it pertains to my application,
    and have included it here below:)
    A. Calling Page (Page# 141)
    1. HTML Header: (Page# 141)
    <script> function callMyPopup(item) { var url;
    url = 'f?p=&APP_ID.:143:&APP_SESSION.::::P143_ITEM:'+ item;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null) w.opener = self; w.focus(); }
    </script>
    2. Region Definition: (Orders) - SQL Query (Updateable Report)
    a. Query:
    select
    'f01_'||to_char(rownum ,'FM0999') ITEM,
    "ID",
    "ID" ID_DISPLAY,
    "ID_PROJECT",
    "ID_SUPPLIER",
    "DESCRIPTION",
    "JOB_NO",
    "QUANTITY",
    "UNIT_PRICE",
    "EXTENDED_PRICE",
    "MANUFACTURER",
    "SUPPLIER",
    "PART_NO",
    "GROUP_LIST",
    "BILLED_PRICE",
    "DATE_NEEDED",
    "DATE_DELIVERED",
    "SUPPLIER_TYPE",
    rownum
    from "#OWNER#"."OAX_MAT_ORDER_ITEMS07"
    where job_no = :P141_JOB_NO
    3. Report Attributes: (ITEM) - URL
    javascript:callMyPopup('#ITEM#');
    B. PopUp Page (Page# 143)
    1. HTML Header: (Page# 143)
    <script language="JavaScript"> function passBack(passItem1, passVal1)
    { opener.document.forms["wwv_flow"].SUPPLIER[&P143_ITEM.].value = passVal1;
    close(); }
    </script>
    2. ITEMS:
    P143_ITEM
    3. Region Definition: (Suppliers) - SQL Query(Structured Query)
    OAX_SUPPLIERS.ID
    OAX_SUPPLIERS.NAME
    4. Report Attributes: (NAME) - URL
    javascript:passBack('&P143_ITEM.','#NAME#');
    Thank you in advance for you help!

  • Refreshing renderer in jtable

    hi all,
    i am using JLabel for rendering a JTable, but the problem is
    JTable is not refreshing properly.
    import java.awt.Component;
    import java.awt.Container;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    public class SampleTable extends JFrame
        public SampleTable()
            Container container = getContentPane();
            container.add(getHtmlTable());
            setSize(400, 400);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible(true);
        private JScrollPane getHtmlTable()
            Object[] tblColHeaders = {"a","b"};
            Object[][] tradedata = {
                    {"<HTML><table >"
                     + "<tr><td >row 1, cell 1</td></tr></table></HTML>", "<HTML><table>"
                           + "<tr><td>row 1, cell 1</td></tr><tr><td>row 1, cell 2</td></tr></tr><tr><td>row 1, cell 2</td></tr>"
                           + "</table></HTML>"},
                    { "<HTML><table >"
                     + "<tr><td >row 1, cell 1</td></tr>"
                     + "</table></HTML>", "<HTML><table>"
                           + "<tr><td>row 1, cell 1</td></tr><tr><td>row 1, cell 2</td></tr></tr><tr><td>row 1, cell 2</td></tr>"
                           + "</table></HTML>"},
                    { "<HTML><table >"
                     + "<tr><td >row 1, cell 1</td></tr>"
                     + "</table></HTML>", "<HTML><table>"
                           + "<tr><td>row 1, cell 1</td>/tr><tr><td>row 1, cell 2</td></tr></tr><tr><td>row 1, cell 2</td></tr>"
                           + "</table></HTML>"}};
            JTable table = new JTable(tradedata,tblColHeaders){
                public boolean isCellEditable(int row,int col){
                    return false;
            table.setDefaultRenderer(Object.class,new MyTableCellRenderer());
            JScrollPane scrTabel = new JScrollPane(table);
            return scrTabel;
        public class MyTableCellRenderer extends JLabel implements TableCellRenderer
            public Component getTableCellRendererComponent(JTable table, Object value,
                                                           boolean isSelected, boolean hasFocus,
                                                           int rowIndex, int vColIndex)
                setText(value.toString());
                setSize(table.getColumnModel().getColumn(vColIndex).getWidth(),
                        getPreferredSize().height);
                if (table.getRowHeight(rowIndex) != getPreferredSize().height)
                    table.setRowHeight(rowIndex, getPreferredSize().height);
                if(isSelected){
                    setBackground(table.getSelectionBackground());
                    setForeground(table.getSelectionForeground());
                return this;
        public static void main(String[] args)
            new SampleTable();
    }thanks
    daya

    1) Your renderer is in an infinite loop because column one need a row height of 16, so you change the height, but column two need a row height of 48, so you change the height.
    But whenever you change the row height the table needs to render the entire row, so it tries to render column 1 again and it resets the height, then column 2 and it resets the height etc, etc.
    2) All you want you renderer to do is change the height, so don't create the renderer from scratch. That is don't extend JLabel, extend DefaultTableCellRenderer so you don't need to add all the custom code.
    Your renderer should be something like this:
        public class MyTableCellRenderer extends DefaultTableCellRenderer
            public Component getTableCellRendererComponent(JTable table, Object value,
                                                           boolean isSelected, boolean hasFocus,
                                                           int rowIndex, int vColIndex)
                super.getTableCellRendererComponent(table,
                    value, isSelected, hasFocus, rowIndex, vColIndex);
                if (table.getRowHeight(rowIndex) < getPreferredSize().height)
                    table.setRowHeight(rowIndex, getPreferredSize().height);
                return this;
        }

  • Header Renderer is getting Refreshed again & again...

    Hi ,
    I have a Advanced datagrid and I am using Header Renderer in a component for the same.. eg.
    <mx:AdvancedDataGrid 
    id="adg" headerStyleName="boldHeader"dataProvider="
    {dataProvider}"
    height=" 
    100%"
    headerRenderer=" 
    {headerRenderer}"horizontalScrollPolicy="
    on"
    verticalScrollPolicy=" 
    on" 
    >
    <mx:Component  id="headerRenderer">
     <mx:VBox horizontalScrollPolicy="off" verticalScrollPolicy="off" implements="
    mx.controls.listClasses.IDropInListItemRenderer" 
    >
    </mx:component>
    I have few components in my header renderer , & on basis of header text I am setting the visibility of components.
    My components are Combo boxes & Text Box...
    When i select any I tem from combobox Its not able to retain  the label to selectedItem for more that 30 secs....
    but i want it to be retain till I change the selection....
    Same is the case with text box It keeps the value for 2-3 seconds & clears the entered value
    What could be the possible solution?
    TIA

    Seems your Header Reindeer got re-initialized after you set the values or may be the dataprovider updated, check your code.
    if you have a simplified version post it here to look into the problem.

  • How to make the row header of the JTable respond to mouse events?

    Is there an easy way to enable the row header of a JTable so it listens to mouse events? I have put a button in the first cell of the row header but I can't click in it.
    I'm asking for an easy way because I've seen some fairly complicated examples on the web that seem close to what I want but I was hoping something simple like getRowHeader().setEnabled(true) would do the trick for my case...

    What's your row header, another JTable or something else? Check out camickr's [url http://tips4java.wordpress.com/2009/07/12/table-button-column/]Table Button Column.
    db
    edit Or to get better help sooner, post a [url http://mindprod.com/jgloss/sscce.html]SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
    Edited by: Darryl Burke

  • Multi-head setup without xorg.conf

    I'm using the newer method of running X without an xorg.conf and want a traditional multi-head setup (a "Normal multi-head" method, allowing a separate X session on each of the monitors).
    I would use this to have a different window manager run on each of the screens (something like the following for OpenBox: DISPLAY=:0.1 openbox), perhaps with the aid of Switchscreen.
    XRandR will give me one big virtual screen (and is currently how I'm doing it, combined with xnest), but that's not what I want. Any ideas?

    WooHoo !
    awkwood   -  You Rock ! I feel like an idiot for not paying closer attention to your first post. I finally realized what you were saying and figured out how to do the downgrade.
    If it's 2.12.0 I'd suggest trying 2.11.0 instead.
    The most recent update borked my dual display with a similar error message but 2.11 works fine.
    I don't use an xorg.conf.
    So essentially this seems to be a bug with version 2.12 of the xf86-video-intel driver. I downgraded to ver 2.11 and everything works perfectly. I am running dual monitors at full resolution with no fuss. So again awkwood I thank you !
    For other Arch Newbies who have this issue in the mean time until they fix the bug, this is how I did the downgrade.
    Step 1:
    download the 2.11 package from the link below
    http://arm.konnichi.com/extra/os/i686/x … pkg.tar.xz
    Step 2:
    Open a terminal and cd to the directory where you saved the file
    $ cd /home/$USERNAME/Downloads
    Step 3:
    Use pacman to install the package
    sudo pacman -U xf86-video-intel-2.11.0-2-i686.pkg.tar.xz
    Finally reboot. When you log back in everything should work fine
    Again thanks to awkwood as well as karol, blind, Inxsible and everyone else for their help. Everyone here is so helpful, I am defiantly an Arch user for life. Hopefully they will fix the bug in the next version of the driver. My next step is to see about filling a bug report.

  • Right/Left align the column header.

    Hi All,
    Is there any option for align the column header irrespective to the column contents.
    There is an option for align data inside the column.But I can't find any for the column headers.
    Give me an idea.
    Thanks
    Swapna

    use the
    align="Left" or "right"and use the "margin-left:10px" for the component.
    for example
    <af:column sortable="false" width="80"
                             headerText="#{viewcontrollerBundle.UNIT_PRICE}" id="c8" align="right"> // this will align the column header
                    <af:outputText value="#{node.lineItem.amount}" id="ot8" inlineStyle="margin-right:15px;"/> // this will align column data
                  </af:column>

  • Why does multi-machine rendering work so poorly?

    more specifically, watch folder rendering with multi-machines is pointless because skipping a frame seeming to take as long as rendering the frame, so one machine can never catch up to the other.  why does skipping a frame take some long?  i mean it's been in the software for like 10 years. is this not considered important?

    These two features are not intended to be used together.
    Render Multiple Frames Simultaneously multiprocessing is intended to turn a single computer into a self-contained render farm of sorts. Multi-machine rendering is intended to use multiple computers in a render farm. Attempting to use these two items together is mixing two different organizational schemes for managing the rendering of frames.

  • Does anyone know how to put 6 windows in premiere pro cc  for multi cameras,  for 6 cameras actually

    Does anyone know how to put 6 wndows in premiere pro cc for multi cameras, for 6 cameras actually.

    The workflow that Jim spelled out is for doing what's called a "multi-cam edit." This allows you to conveniently switch among different video clips, often from multiple cameras that shot the same performance or event. The end result is a segment where only one clip is visible at a time.
    The way I read your question, what you want to do is show six clips all at once, which is typically referred to "picture in picture." To do that, follow the first 3 steps Jim provided. (By the way, in Step 2, the key is to stack the clips on six different tracks, as opposed to lining them up head-to-tail.) Then select each clip in turn and use the Position and Scale controls in the Effect Controls Panel to shrink it and move it where you want within the frame. Here's a tutorial video on this workflow: http://tv.adobe.com/watch/adobe-beginner-classes-with-dennis-radeke/episode-7-adobe-premie re-pro-picture-in-picture/.

  • Text Frame Options. Room for Side Heads added without warning

    Hi -
    I just got asked this and have no clue how to help. Anyone know what this is?
    Every now and then, my Frame file will –apparently on its own – reset most of its text frames into having room for side heads.  Makes for lots of bad labels on graphics – everything’s suddenly offset and scrolling off the bottom.
    This will happen suddenly.  It will usually be only one or two chapters in a book, but if I ignore it has been known spread like the black death throughout the book.
    The only solution I’ve found so far has been to revert to a backup or touch each text frame individually.  Setting properties for two at a time messes up location on the page.

    HI -
    Here's what I heard back.
    I believe it’s for everything except main text flow, including headers&footers on master pages, and special elements on unused master pages.
    It appears to be spontaneous, but I can’t guarantee that.
    I don’t use MIFs, and I’m pretty sure no one else does.
    Yes to formatting imports , because we frequently change variables in one chapter and copy them back to the rest (esp date doc was last edited – not same as print date per our regulatory agency.)   Likewise conditional text.  We know not to copy from a file into itself in a book, although it has happened and we do exchange manuals between revisions at times.

Maybe you are looking for

  • Leopard Installation

    When beginning to install Lepard on my G4, when it restarts for installation, the message "Input Not Supported" comes up and I cannot continue. Any suggestions?

  • RFC_READ_TABLE dump while reading T006- Urgent

    Hi, I am using fm RFC_READ_TABLE ( cloned copy) to get values from another client. But while accessing T006 table it is giving following dump. Error Analysis In the current program "SAPLSDTX", an ASSIGN statement is supposed to          assign a fiel

  • Is it possible to sort textframes in alphabetical order?

    Hi, I have a large number of separate text frames with text startsing with a number. Is it possible to sort the text frames i alphabetical / numeric order either in y or z? Scripts available that I've found sort paragraphs, but since my text frames c

  • Audio level jumps on export

    I have created a movie in iMovie HD. I have the ususal video track with its corresponding audio, then I added a background music track and adjusted the volume slider to 15%. All is well and good until I export the movie. When I do, the audio track fr

  • How to install Oracle7 on Windows 2000 Pro??

    Hello all, I got the following message when install Oracle7 on Windows 2000 Pro. "oback.vrf(379) OS_ERROR while getting service status portmap" How to solve it?? Thank you.