Column renderers/widths disappear?

I have a standalone java swing program in which I have defined three column header renderers to display an icon in the header, two column renderers to format text, and have setMaxWidth on 7 of 9 columns. I don't consider this an excessive amount of column modifications. Some users are reporting (and have sent screen shots) that mysteriously all the columns have reverted to default, equal widths; the header renderers show no icons; and the text formatting renderers show the class name of the object indicating the default renderer is in effect. Extensive, in-house QA never saw this behaviour, however a handful of external users are reporting it.
Has anybody seen anything like this happen? What would cause all the column attributes/renderers to suddenly revert to defaults?
Thanks in advance
John Alfredo

Perhaps more detail is in order.
The project is a form where geologists can enter the legend that attaches to a map. The form is web-accesible. On an HTML page, an applet is supplied a map id and potentially a legend template id as parameters, which it uses to connect to an Oracle database and bring back either a completed legend to modify, a template, or a new blank legend. The user can choose symbolisations, colours, enter a label and type-in a long description. Further they can choose from a list of standardised geology attributes that when combined describe the legend item in a succinct web-searchable way.
The reason I am not doing it the easy way with DHTML is because of two features that are necessary. One is that the user should be able to specify the order of the items at any time, the second is that they should be able to create a hierarchy of items at any time. Moving table rows about and making parent-child relationships in a GUI are just about impossible with HTML so I thought I might be able to do it with Java.
The symbol/colour and long description problems are trivial. What I would like is a column in the table, probably the one where the legend label is shown/entered, that is a tree, to which items may be added or removed as desired and where parent-child relationships may be set up on a button click or two. Further, the last column in the table would contain (in each cell) a table of the standardised attributes and their values, for the item in that row. In order to specify sequence the user should be able to drag and drop rows to where they think they should be (and the hierarchy would change simultaneously).
It is ambitious, particularly since I am a novice in Java, but I can't think of any other way to create a malleable tree stucture that can be manipulated over the web. Can you think of any applications that are currently doing this? Send me a URL if so.
I am most grateful for your help.

Similar Messages

  • In the far left hand column, Devices keeps disappearing. I can get it back by downloading iTunes again but disappears again after I run disk utility.

    In the far left hand column, Devices keeps disappearing. I can get it back by downloading iTunes again but disappears again after I run disk utility.

    With a Device plugged in - place your mouse cursor over  DEVICES - you should see 'show' or 'hide'. Click on 'show'.
    MJ

  • How to fix the column header width in BEx or WAD

    hi there!
    how to fix the column header width in BEx or WAD. because, depends on the column data, the column size varies. i want to fix the size so that i can maintain the consistency through out the report.
    thanks!
    Vam.

    Dear Vam,
    you can easily do that with css, search the source code of the executed web template for the td tag which is around your coloumn header, remember the style sheet class name it is ´displayed as class= in the td tag.
    Now you can add this code the beginning of your web template:
    </style>
    This will only work in Web.
    Regards
    Marcus

  • Changing the column position & width using Screen Variant..

    Hi Experts,
        Iam trying to change the column position and width for the standard transaction (eg. FB60 or VA02) using the transaction code SHD0 (Transaction and Screen Variant).
        Iam able to create and save the transaction and screen variant and i could see the check box options for table control like
        a. Auto Column Position
        b. Auto Column Width
         I tried checking and unchecking both the check boxes but iam unable to modify / maintain the column position and width.
         Please guide me in changing the column position and width.
       Thanks in Advance.

    Hi Mudit,
    Kindly go through this link below:
    http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/content.htm
    Hope it helps you
    Regrds
    Mansi

  • DataGrid with dynamic columns & renderers

    I'm developing using Flash Builder 4 & Flex SDK 4.1.
    I need to manage very dynamic DataGrid components and keep their definitions, which are all part of a complex item renderer of an Offers list.
    The objects structure is simplified as follows -
    Data: Model --> Offers ArrayCollection --> Offer VO --> DataGrid data ArrayCollection & DataGrid columns Array
    View: List --> Offer Item Renderer --> DataGrid
    1. Since the DataGrid's columns property accepts only an Array (not ArrayCollection), it seems like Data Binding for defining the columns is very problematic.
    I tried to bind it to the source property of an ArrayCollection that would keep my columns definitions, but it didn't really work (mainly header display bugs).
    What is the recommended way to keep the dynamic columns definition of a DataGrid?
    2. Each column can have a set of dynamic properties, so I created a "mutant" - Column VO that extends DataGridColumn and got a dynamic properties ArrayCollection on it.
    The columns got a custom header renderer that includes an icon when there are properties.
    The header renderers got 4 main states (NotSelectedWithProperties, SelectedWithProperties, NotSelectedWithoutProperties & SelectedWithoutProperties).
    However, the header renderer area seems a bit buggy when maintaning dynamic columns.
    Any thoughts on the subject?
    3. Anyway, I ended up recreating the DataGrid's columns Array very often (copying the columns definition on the offer's item renderer's dataChange event handler).
    Note that the dynamic properties can be edited when the column is selected and I copy their values from the view back to the model when entering the state NotSelectedWithProperties.
    This feels way too complicated and I really try to keep it simple, inspite of the required complexity.
    Does anyone have better ideas?
    4. In some cases the column's item renderer should also be modified into another DataGrid (grid-in-grid).
    I used the MXDataGridItemRenderer with a DataGrid and included an ArrayCollection for the "newValue" returned by the editor.
    (I use RendererIsEditor=true and on updateComplete populate that variable with the DataGrid's dataProvider contents)
    When needed, I loop though the data objects of the parent DataGrid and populate the related field with an ArrayCollection of key-value objects that are displayed on the internal DataGrid.
    After adding this feature I encounter very strange bugs -
    a. After editing the grid-in-grid values and changing the column's state (selecting & deselecting), I get the following exception:
    ArgumentError. Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/setChildIndex()
    at mx.core::UIComponent/setChildIndex().......6993....
    All I could find about this is that it might be related to some context error or something, but I'm really stuck on this one.
    b. Sometimes another column might copy value from one row to another, running over the previous value.
    I'm not sure exactly what sequence of actions causes this behavior, but it's related to that itemRenderer for sure.
    c. Switching places with a column that uses the grid item renderer (headerShift) causes a stak overflow of StyleManager that tried to get style from the DataGridItemRenderer. This one I just found out, but couldn't reproduce a second time... strange!
    I'm pretty sure this caused another problem that I don't remember at the moment.
    The bottom line is that there got to be a better way to implement this feature within this already-complicated environment.
    Maybe I'm doing something very wrong here...
    Please advice and thanks for reading all this.

    Update on item 4a -
    This was a major issue (the main reason for opening this thread really) and I managed to resolve it!
    As part of my application, I override the default DataGrid behavior for column selection (headerRelease event).
    Instead of sorting, I change the column's header looks and define it as Selected (for showing its dynamic properties and enable its deletion).
    At first I did this by setting styles, but the look didn't refresh unless I created a new instance of the header renderer.
    Later I changed thi behavior to work with states, but I left the new header renderer instance creation commands and those lines created all the mess!
    Conclusion -
    If you define a custom header renderer for your datagrid column and then a custom item renderer, don't create a new instance of your header renderer!
    It would still be nice to get some response for the other issues I raised.
    Thanks and have a nice week.

  • Flex DataGrid last empty column dynamic width

    Goal: have a blank right-most column in a DataGrid that takes
    up the slack in case the other columns do not total 100% of the
    overall grid width.
    This is what I have, which seems to work:
    <mx:DataGridColumn editable="false" sortable="false"
    minWidth="0"/>
    I am wondering if there is a best-practice way of specifying
    such a last column that is better than the above tag.
    Flex SDK 3.2
    Thank you,
    Mike Chabot

    It worked!!!!!!! Thank you!! What you mentioned was indeed the problem!
    Here is the custom item renderer's set data function
    Before
    Now
    override public function set data(value : Object):void{
                      super.data = text;
                      this.txt.text = (value as Slide).text ; //txt is the Label control
    override public function set data(value : Object):void{
                      super.data = value;
                      this.txt.text = (value as Slide).text ; //txt is the Label control
    oh man, this is such a stupid mistake. I think I was confused with having three text properties - one inherited from MXDataGridItemRenderer, one in my txt Label control and one on my slide.
    I had no idea that sending the value up to the super class was so important. None of the docs I read seemed to give much importance to this statement.
    thanks so much and sorry for taking up so much of your time. I guess it is uncessary to post any more code.

  • Finder - column view width

    Since Lion, whenever I open a new finder window - the width of all the columns in the column view is too wide
    Due to this, it becomes very irritating to resize all columns every time I open finder window.
    Cant I make it default option to always resize all columns individually "
    I face this issue only on my Mac, other Mac's with Lion are fine.

    Deleted the file "com.apple.finder.plist" from you ~/Library/Preferences & relaunched finder.
    Its fine now

  • Column Header width

    Hi,
    I'm working on a tableview but if my table is displayed without any rows... all the column headings are partially displayed, e.g. the column header text is "Employee" but it is displayed as "Em...", The column with automatically expands when there is value in the particular column. I tried to used columnWidth attribute but its not working. here is the code extract of the tableview.
          <htmlb:tableView id              = "list"
                           emptyTableText  = "No result found!"
                           selectionMode   = "MULTISELECT"
                           sort            = "SERVER"             <%--or APPLICATION --%>
                           onHeaderClick   = "myHeaderClick"
                           onNavigate      = "onMyNavigate"
                           onRowSelection  = "onMyRowSelection"
                           <u>columnWidth     = "100%"</u>
                           visibleRowCount = "<%= lepp %>"
                           visibleFirstRow = "<%= iv_list_nav_index %>"
                           width           = "100%"                      
                           table           = "//model/mt_list"                      
                           headerVisible   = "<%= IV_HEADER_VISIBLE %>"
                           iterator        = "<%= io_iterator %>" />

    Hi Asim,
    you have something wrong with the variables you are passing. Try the following ideas.
    1. Replace all the variables with hardcoded values, for example
         visibleRowCount = "20"
         visibleFirstRow = "1"
    2. Remove the iterator attribute to see if your iterator has been incorrectly coded.
    This code should work fine.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%
      data itab type table of sflight.
      select * from sflight into table itab.
    %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Test tableView" >
        <htmlb:form>
          <htmlb:tableView id              = "list"
                           emptyTableText  = "No result found!"
                           selectionMode   = "MULTISELECT"
                           sort            = "SERVER"
                           onHeaderClick   = "myHeaderClick"
                           onNavigate      = "onMyNavigate"
                           onRowSelection  = "onMyRowSelection"
                           columnWidth     = "100%"
                           visibleRowCount = "20"
                           visibleFirstRow = "1"
                           width           = "100%"
                           table           = "<%= itab %>"
                           headerVisible   = "TRUE" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Use it as a starting point for your layout page and gradually add your specific stuff.
    Cheers
    Graham

  • JTable custom column renderers

    Hi,
    I am using a custom column renderer to format a date value in the table, and am passing back a checkbox. However, i am unable get the jTextField to look/act like the default rendered componenets, ie. if i select them they have the same uneditable colour. How can i get the same behaviour.
    Thanks
    Rudy

    Hi,
    I think this could be a possible bug in Java, because when i changed my LookAndFeel to the default (metal) the entire table row appeared selected when it was selected. Each of the textFields rendered correctly. However, when i change it to my system look and feel (windows) the jTables rows to not render correctly and the textfield columns of the selected row appear to have a white background, and a white foreground. Which means the text which is originally black disappears??
    Any suggestions greatly welcomed.
    Rudy

  • Why the last column change width automaticlly?

    a datagrid has 3 columns,
    set horizontalScrollPolicy="auto"
    I stretch first or second column, the third(last) column will
    change width automaticlly. If I wanna fix the width of last column,
    what should I do?
    thanks....

    I don't think there is way to do this. This seems to be
    hard-coded -- thru a private function called calculateColumnSizes()
    -- in the DataGrid class.
    So you're essentially out of luck! Unless, of course, you
    decide to subclass the DataGrid class, override updateDisplayList
    method and provide your own implementation of calcualte column
    size!
    Or maybe, logging a change request for Flex team.
    ATTA

  • Strange column header width behavior

    Hi,
    I am using jdev 11.1.2.4.
    I have a af:table and some colums look like this:
    <af:column sortProperty="EmpName2" sortable="false"
                         inlineStyle="border-style:solid; border-color:#eceef2; border-width:medium; background-color:White;"
                         headerText="#{res.empName}" width="55px" id="c16">
                            <af:commandLink text="#{row.EmpName2}" id="ot24"
                                        action="#{viewScope.workplanLimitsAndRequestsByShift.empWorkplanLimits2}"/>
       </af:column>
    After I added the border, the width of the column data is wider then then width of the column header!
    It looks like the border on the data part is "outside" the cell and on the header part is "inside" the cell.
    Any suggestions?
    Thankn you,
    Nina

    Hi,
    I am using interner explorer 8 (our clients also use 9 and 10).
    My table is defined "editAll"
    Nina

  • Reorder Columns dialog width

    In Windows 7 / Internet Explorer 8, the Reorder Columns dialog (accessible in a PanelCollection from View > Reorder Columns...) is stretching the full length of the screen. View > Columns > Show More Columns... appears to be having the same issue.
    In Windows XP or Windows 7 / Firefox 10, the popup is only about 250px in width.
    Using JDeveloper 11.1.2.3.0.
    This should be built-in functionality. Any idea why this might be happening?
    Edited by: Brianna on Nov 14, 2012 11:24 AM

    Hi,
    I tried JDeveloper 11.1.2.3, Windows 7 and IE8. I don't see the defect
    Frank

  • Problem with column name width

    Hello!
    I have a report and the column names are too big. Is there a possible way to make them appear in two lines so the column width would be smaller?
    Thanx in advance for any answers...

    Hello,
    I can't reproduce that problem. Probably dependent of the Template you're using. You can try setting the height of the class (I can't tell you which one - unless you set up an example on apex.oracle.com) to a larger value.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Making some Custom Column Renderers for a JTable

    Hello People
    I've been playing around with a JTable by following the tutorial "How to Use Tables". (I am using netBeans 4.1 to "sculpt" my swing objects onto the nice palette in the IDE. I don't know if this has anything to do with the errors but, it seems like netBeans requires some Gui components be initialized via this abovementioned "palette")
    I believe that I need to somehow tell the JTable about what kinds of objects are in it so that it can render itself properly. I have a table set up with some default values in it
    ->Strings both Editable and Not-Editable
    -> Integers both Editable and Not-Editable
    -> Boolean rendered as a check box Editable
    So upon startup, my progarm renders the table correctly. I have a button to clear all of the elements in the table, which works fine. It is only when I switch to another window, then switch back to an empty table ... the JTable needs to redraw itself. This is when I'm getting the error:
    java.lang.NullPointerException
            at ElementHelp.PrimitiveManager$MyVectorTableModel.getColumnClass(PrimitiveManager.java:93)
            at javax.swing.JTable.getColumnClass(JTable.java:1752)
            at javax.swing.JTable.getCellRenderer(JTable.java:3700)
            at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1148)
            at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)
            at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
            at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
            at javax.swing.JComponent.paintComponent(JComponent.java:541)
            at javax.swing.JComponent.paint(JComponent.java:808)
    ...blah blah more exception stack.....
           I think that because there are no elements in the table that the call to "getClass" for an element in the table returns a NullPointerException. I think I can avoid this via telling the JTable about the types of objects each column will contain. The tutorial suggests one of two solutions: (neither of which I can get to work)
    1) Use a class that extends the DefaultTableCellRenderer
    2) I should write somthing that ...extends JLabel and implements TableCellRenderer.... such as the tutorials ColorRenderer example. Which solution should I work out if I want my table to add/delete rows and be able to have a few cells edited. (It will never be restructured .. the column types won't change)
    Also, I've created my own TableModel for it ... a class that extends AbstractTableModel ... (although not declaired, it also implemnts/overwrites functions from the TableModel interface)
    Any suggestions on avoiding the abovementioned error?
    thanks and happy holidays to everyone

    I think that because there are no elements in the table that the call to "getClass" for an element in the table returns a NullPointerExceptionWell, if you have no data in the table then your TableModel should be returning "0" for the number of rows in the table and it won't be a problem.
    Also, I've created my own TableModel for it ... Why? Use the DefaultTableModel it supports String, Integers and Booleans without any need for custom coding.

  • Resizing Column View width

    So here's the issue I'm having that sounds like it might be the opposite of what most people are looking for.  Basically, I want to resize a column when viewing in "Column View" but I don't want the subsequant columns to adopt that size.  Right now in 10.8.3, if you resize a column, then click a folder, the new column will be the same size as the one you resized, regardless if it needs the space to display the filename or not.  I've tried right-clicking on the resize button and have choosen all three options, but none seem to change this.  Apparently in Snow Leopard, it did not behave this way.  Any way to bring it back?  Here are some pics of what I'm describing:

    Yes, I can confirm that in ML, I don't remember SL.
    You can file feedback here.

Maybe you are looking for

  • F-44 - Clearing of more than 999 line items

    Hi, I am using transaction code F-44 for clearing vendor line items but vendor line items are more than 999 (In fact they are well above 65000) SAP does not allow postings in a single doc of more than 999 line items. can someone suggest methe procedu

  • Creating quotation from purchase order

    Can any one tell me how to create SD quotation from the purchase order using the IDOC?

  • Unable to move messages to folders in gmail

    We have recently moved from PC to iMac. Gmail used to work fine- but now we cannot move messages into folders- an error message always pops up. We have tried rebuilding the mailboxes,as suggested in previous posts,but this has no effect. What can we

  • Code highlighting for page with .master extension

    Hi, How do I get Dreamweaver to highlight the code of .master pages just the same as it does with .aspx? I've looked through the help docs. Please advise, thanks.

  • SQL Database

    Hello, Does anyone know the name of the SQL table where the user name and DN are stored? I have a developer wanting to create a read only app for screen pops Thanks in advance! All replies will be rated