Trouble creating a custom combobox

I'm building a custom component consisting of a combo box
that autopopulates with a list of states. So far it works fine
except I can't retreive the selected item from an instance when the
user makes a new selection. I've tried setting a custom property
& setting the value equal to the current selection using a
"change" event handler on the combobox but I could only retreive
the value that was selected when the component was initialized, not
when a new item is selected. I've tried setting up the class in the
.as file to extend the "mx.controls.ComboBox" class instead of the
usual "mx.core.UIComponent". That exposed the normal combobox
properties to the caller, but the "selectedItem.data" property
always comes up blank. Has anyone dealt with this issue before?? If
so, I REALLY hope you managed to resolve it!!

I'm building a custom component consisting of a combo box
that autopopulates with a list of states. So far it works fine
except I can't retreive the selected item from an instance when the
user makes a new selection. I've tried setting a custom property
& setting the value equal to the current selection using a
"change" event handler on the combobox but I could only retreive
the value that was selected when the component was initialized, not
when a new item is selected. I've tried setting up the class in the
.as file to extend the "mx.controls.ComboBox" class instead of the
usual "mx.core.UIComponent". That exposed the normal combobox
properties to the caller, but the "selectedItem.data" property
always comes up blank. Has anyone dealt with this issue before?? If
so, I REALLY hope you managed to resolve it!!

Similar Messages

  • Error while creating a custom combobox for Spark DataGrid

    I am getting the following run time error:
    Error: Required skin part openButton cannot be found.
        atspark.components.supportClasses::SkinnableComponent/findSkinParts() [E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\componen ts\supportClasses\SkinnableComponent.as:671]
        atspark.components.supportClasses::SkinnableComponent/attachSkin()[E: \dev\hero_private_beta\frameworks\projects\spark\src\spark\components\ supportClasses\SkinnableComponent.as:646]
        atspark.components.supportClasses::SkinnableComponent/validateSkinCha nge()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\com ponents\supportClasses\SkinnableComponent.as:406]
        atspark.components.supportClasses::SkinnableComponent/commitPropertie s()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compo nents\supportClasses\SkinnableComponent.as:420]
         atspark.components.supportClasses::ListBase/commitProperties()[E:\dev  \hero_private_beta\frameworks\projects\spark\src\spark\components\supp  ortClasses\ListBase.as:808]
        atspark.components::List/commitProperties()[E:\dev\hero_private_beta\ frameworks\projects\spark\src\spark\components\List.as:954]
        atspark.components.supportClasses::DropDownListBase/commitProperties( )[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compone nts\supportClasses\DropDownListBase.as:504]
        atspark.components::ComboBox/commitProperties()[E:\dev\hero_private_b eta\frameworks\projects\spark\src\spark\components\ComboBox.as:644]
        atmx.core::UIComponent/validateProperties()[E:\dev\hero_private_beta\ frameworks\projects\framework\src\mx\core\UIComponent.as:8095]
         atmx.managers::LayoutManager/validateClient()[E:\dev\hero_private_bet  a\frameworks\projects\framework\src\mx\managers\LayoutManager.as:934]
        atmx.core::UIComponent/validateNow()[E:\dev\hero_private_beta\framewo rks\projects\framework\src\mx\core\UIComponent.as:7953]
        atspark.components.supportClasses::GridLayout/layoutItemRenderer()[E: \dev\hero_private_beta\frameworks\projects\spark\src\spark\components\ supportClasses\GridLayout.as:1808]
        atspark.components.supportClasses::GridLayout/createTypicalItemRender er()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\comp onents\supportClasses\GridLayout.as:460]
        atspark.components.supportClasses::GridLayout/updateTypicalCellSizes( )[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compone nts\supportClasses\GridLayout.as:514]
        atspark.components.supportClasses::GridLayout/layoutColumns()[E:\dev\ hero_private_beta\frameworks\projects\spark\src\spark\components\suppo rtClasses\GridLayout.as:570]
        atspark.components.supportClasses::GridLayout/measure()[E:\dev\hero_p rivate_beta\frameworks\projects\spark\src\spark\components\supportClas ses\GridLayout.as:230]
         atspark.components.supportClasses::GroupBase/measure()[E:\dev\hero_pr  ivate_beta\frameworks\projects\spark\src\spark\components\supportClass  es\GroupBase.as:1109]
        atmx.core::UIComponent/measureSizes()[E:\dev\hero_private_beta\framew orks\projects\framework\src\mx\core\UIComponent.as:8383]
        atmx.core::UIComponent/validateSize()[E:\dev\hero_private_beta\framew orks\projects\framework\src\mx\core\UIComponent.as:8307]
        atspark.components::Group/validateSize()[E:\dev\hero_private_beta\fra meworks\projects\spark\src\spark\components\Group.as:956]
        atmx.managers::LayoutManager/validateSize()[E:\dev\hero_private_beta\ frameworks\projects\framework\src\mx\managers\LayoutManager.as:659]
        atmx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_priv ate_beta\frameworks\projects\framework\src\mx\managers\LayoutManager.a s:793]
        atmx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\h ero_private_beta\frameworks\projects\framework\src\mx\managers\LayoutM anager.as:1157]
    Here is my combobox:
    package
        import mx.controls.listClasses.BaseListData;
        import mx.controls.listClasses.IDropInListItemRenderer;
        import spark.components.ComboBox;
        public class sparkComboRendererDataGrid extends ComboBox implements IDropInListItemRenderer
            public function sparkComboRendererDataGrid()
                super();
            public function get listData():BaseListData
                return null;
            public function set listData(value:BaseListData):void
            override public function set dataProvider(value:Object):void
                super.dataProvider = value;
                // This may get called before dataProvider is set, so make sure not null and has entries
                if (value!=null && value.length)
                    // Got it, set flag
                    bDataProviderSet = true;              
    and here is the implementation:
    var PersonnelPerson:ClassFactory = new ClassFactory(sparkComboRendererDataGrid);
    PersonnelPerson.properties = {labelField : "person", dataProvider :
    new XMLListCollection(dataList.consistcrew)};
    var col:GridColumn = GridColumn(personnel.columns.getItemAt(0));                   
    col.itemRenderer = PersonnelPerson;
    Please help.
    Thanks

    Actually, after adding the following code it started working:
    import spark.skins.spark.DropDownListSkin;
    override public function stylesInitialized():void
          super.stylesInitialized();
          this.setStyle("skinClass", DropDownListSkin);

  • Trouble creating an custome netlet channel

    I am trying to create a channel that will have a certain number of application links appear on it. Each application link should open up a telnet netlet session with tghe appropriate server. Each link will call an applet and the applet will be responsible to opening up the telnet session with the corrent machine. I am able to open the correct netlet ports and have the reflection applet load for each application. But what the applet loads I am never able to connect to the server correctly. Either the telnet session tells me i am disconnected or i am left looking at a blank telnet screen. When i look at the java console i see that all of the correct ports have been opened. This is what the java console looks like:
    Netlet Starting (16)
    Netlet found IE
    Netlet config: https://access.advocatehealth.com:443/http://portal-srv0.advocatehealth.com:8080/NetletConfig?func=loadResources
    Netlet not using proxy (IE)
    Netlet sessionID: nxpgxvjvugkkpkcnoc6q0rpq3q95r8304@[email protected]@8080@/Rzcyblrr
    Netlet rule 0: local:2080 destination:algra1.chmc.advocatehealth.com:2080
    Netlet rule 1: local:8030 destination:TARGET:23
    Netlet rule 2: local:8000 destination:portal-srv0.advocatehealth.com:8080
    Netlet rule 3: local:30010 destination:TARGET:23
    Netlet rule 4: local:30000 destination:TARGET:23
    Netlet config: https://access.advocatehealth.com:443/http://portal-srv0.advocatehealth.com:8080/NetletConfig?func=setLoaded
    creating MSSecure
    cache dir: C:\WINNT\Java\reflectionweb\cache
    MY SESSION: Loading configuration [https://access.advocatehealth.com/http://portal-srv0.advocatehealth.com:8080/wrq/session/vt_telnet.config].
    MY SESSION: Reflection v4.1.34.528 starting
    Netlet got connection on port: 8030 from port:1416 to gateway:access.advocatehealth.com on port:443
    Netlet showing port warning dialog:8030
    Any help would be appreciated,

    I see you have configured 5 netlet rules. All the netlet rules seem to have the same name what are your netlet rules ?
    Also your applet would not have to connect to the server in a format like this ..
    In the netlet channel you would have to go and add a target host for each of the netlet rules.
    for rule 1 you would have to add a target machine name like hostname.domain.com then do a
    telnet localhost 30000 and see if gets forward to that hostname.

  • How do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the onli

    how do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the online photoshop, and I really want to create my own customized url and post photos to my gallery and share them with the world, family, and friends, but i need help because i can't figure how to do any of this, would really appreciate feedback and assistance, thanks, - claire conlon

    To add to sig's reply, "calibrating" does not calibrate Lithiu-Ion batteries, it calibrates the charge reporting circuitry.  If you look at the effect of deep discharging Lithium-Ion batteries in the data from the independent test group, Battery University, you will see that doing so shortens the life of the battery significantly. It looks like an optimum balance between use and life is at a discharge level of 50%.

  • Trouble creating custom AreaRenderer for AreaChart

    Quick first question: if I purchase the charting package, do
    I get the source code? That would certainly solve my problems.
    OK the real question: Does anyone have a quick example class
    that is a custom AreaRenderer for an AreaChart?
    I'm trying to create a custom AreaRenderer implementation.
    According to the docs, I need to implement the "AreaRenderer"
    interface (not IAreaRenderer (?)) which supposedly lives in
    mx.charts.renderers.interfaces but Flex Builder complains that the
    interface is not found.
    Link to the docs:
    http://livedocs.macromedia.com/flex/15/asdocs_en/mx/charts/renderers/interfaces/AreaRender er.html
    Alternatively I've tried simply extending AreaRenderer but
    the methods: beginDraw, draw and endDraw don't seem to be there or
    are not overridable?

    Ugh I always figure these things out just after I post. I've
    been banging my head on this for over a day too.
    Anyway, for anyone else all you do is extend ProgrammaticSkin
    and implement IDataRenderer. Here is my sample class:
    package
    import mx.core.IDataRenderer;
    import mx.skins.ProgrammaticSkin;
    import mx.charts.series.items.AreaSeriesItem;
    import mx.charts.series.renderData.AreaSeriesRenderData;
    import flash.display.Graphics;
    public class MyAreaRenderer extends ProgrammaticSkin
    implements IDataRenderer
    private var _data:AreaSeriesRenderData;
    public function get data():Object
    return _data;
    public function set data(d:Object):void
    _data = d as AreaSeriesRenderData;
    override protected function updateDisplayList(width:Number,
    height:Number):void
    super.updateDisplayList(width, height);
    var g:Graphics = graphics;
    g.clear();
    g.moveTo(width,height);
    g.beginFill(0xFF0000);
    for (var index:String in _data.filteredCache)
    var item:AreaSeriesItem = _data.filteredCache[index];
    g.lineTo(item.x, item.y);
    g.endFill();
    I'd still like to know if you get the source code to the
    charting package though.

  • I would like to create a custom datagridview column containing text images and MS Word OLE objects

    I am an old time LabView programmer going back to 2.0.  But moved on with my career several years ago.  But here I am back attempting a custom column in dataviewgrid control.  .NET is hard.  My goal is to read in an MS Word document and parse it out to a custom column.  The column will contain regular old text, images and MS Word objects, sometimes called OLE objects.
    There is scant information on creating .NET and labview when it comes to form manipulation.  I have stuggled through the learning curve and now able to insert a text box column into a datagridview and add it to the form container and actually size it to the datagridview control.  I've added a menu, but still figuring out the layout class.  Did I say .NET is hard?
    I know there must be a custom column created and even found a C# example, sorta.  Trouble is the example uses easy stuff like override and private.  It will take me another 3 weeks for that, darnit I'm getting lazy.
    Does anybody out there have some example of a custom column in the datagridview?
    If you ask to post code.  I have nothing I would be proud to show.
    The sorta go by: http://www.codeproject.com/Articles/31823/RichTextBox-Cell-in-a-DataGridView

    This is what the progress looks like so far.  I broke the tasks down in sub VIs.  One to create a custom cell so I can add it to the column CellTemplate.  The other to add the column to the control.  My limited knowledge of .NET and the implementation in LV causes me to question the value of LV .NET.
    The coding to create a TextBoxCell override with ImageCell CellTemplate.  Honestly I'm guessing what to do, because the LV documentation on inheritance and overriding is poor at best.
    The column coding to add the cell to the custom column.
    Probe 19 always comes up with an error.  The error is the standard 1172 with no clue what is causing it.  The "index" will work on 0 or 1, I suspect bc the two cell types are 0 and 1 but nothing tells me that, just guessing.

  • Custom combobox problem

    Hi,
    With the help of JDC i am able to finish the work of creating the customized comobo but I'm stuck at the edge.
    I have a customized comobobox, which can show multiple columns in its combo popup, but only one item of column should be shown as selected in combo, This i achieved when combobox status is editable. but not working when combo is non editable.
    kindly see( can execute too ) the code and let me know where i'am going wrong.
    public class TestCoeusComboBox2 extends javax.swing.JFrame {
    /** Creates new form TestCoeusComboBox2 */
    public TestCoeusComboBox2() {
    initComponents();
    private void initComponents() {
    jPanel1 = new javax.swing.JPanel();
    //jPanel1.setLayout( new java.awt.GridLayout(2,4,10,10));
    jPanel1.setLayout( new java.awt.FlowLayout());
    java.util.Vector people = new java.util.Vector();
    for( int i= 0 ; i< 15 ; i++ ){           
    people.add(new ComboBoxBean(""+i,"Yaman kumar-"+i));
    javaEditable = new javax.swing.JLabel("java-Editable");
    javaNonEditable = new javax.swing.JLabel("java-NON Editable");
    coeusEditable = new javax.swing.JLabel("Coeus - Editable ");
    coeusNonEditable = new javax.swing.JLabel("Coeus - NON Editable");
    coeusComboEditable = new CoeusComboBox(people,true);
    coeusComboEditable.setPopupSelectionBackground(Color.yellow);
    coeusComboEditable.setPopupBackground(Color.white);
    coeusComboNonEditable = new CoeusComboBox(people,false);
    coeusComboNonEditable.setPopupSelectionBackground(Color.gray);
    coeusComboNonEditable.setPopupBackground(Color.white);
    javaComboEditable = new javax.swing.JComboBox(people);
    javaComboEditable.setEditable(true);
    javaComboNonEditable = new javax.swing.JComboBox(people);
    javaComboNonEditable.setEditable(false);
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    jPanel1.setPreferredSize(new java.awt.Dimension(1000, 200));
    jPanel1.add(javaEditable); jPanel1.add(javaComboEditable);
    jPanel1.add(javaNonEditable); jPanel1.add(javaComboNonEditable);
    jPanel1.add(coeusEditable); jPanel1.add(coeusComboEditable);
    jPanel1.add(coeusNonEditable); jPanel1.add(coeusComboNonEditable);
    getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
    pack();
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
    new TestCoeusComboBox2().show();
    private javax.swing.JPanel jPanel1;
    private CoeusComboBox coeusComboEditable;
    private CoeusComboBox coeusComboNonEditable;
    private javax.swing.JComboBox javaComboEditable;
    private javax.swing.JComboBox javaComboNonEditable;
    private javax.swing.JLabel javaEditable;
    private javax.swing.JLabel javaNonEditable;
    private javax.swing.JLabel coeusEditable;
    private javax.swing.JLabel coeusNonEditable;
    * @(#)CoeusComboBox.java 08/29/2002, 5:06 AM
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.plaf.basic.*;
    import javax.swing.plaf.metal.*;
    import javax.swing.event.*;
    import java.util.Vector;
    import javax.swing.border.*;
    public class CoeusComboBox extends JComboBox {
    private boolean editable = false;
    private Color popupSelBackground ;
    private Color popupBackGround;
    * Initializes the properties of CoeusComboBox as it needs to set custom Renderers
    * and Editors for CoeusComboBox
    private void initProperties(){       
    CoeusComboBoxRenderer renderer= new CoeusComboBoxRenderer();
    CoeusComboCellEditor editor = new CoeusComboCellEditor();
    setBorder(new LineBorder(Color.black,1));
    setRenderer(renderer);
    setEditor(editor);
    //setEditable(true);
    /** Creates a new instance of CoeusComboBox */
    public CoeusComboBox() {
    super();
    setUI(new StateComboBoxUI());
    initProperties();
    * Constructor with default ComboBoxModel
    public CoeusComboBox(ComboBoxModel aModel) {
    super(aModel);
    setUI(new StateComboBoxUI());
    initProperties();
    * Constructor with default items that are shown in popup when the combo is selected
    public CoeusComboBox(final Object[] items) {
    super(items);
    setUI(new StateComboBoxUI());
    initProperties();
    * Constructor with default items that are shown in popup when the combo is selected
    * @param items An array of elements that are shown in popup
    * @param editable Status of ComboBox, If true the combobox value can be modified.
    public CoeusComboBox(final Object[] items, boolean editable) {
    super( items);
    this.editable =editable;
    setEditable(editable);
    setUI(new StateComboBoxUI());
    initProperties();
    * Constructor with default items that are shown in popup when the combo is selected
    * @param items a Vector of combobox items.
    public CoeusComboBox(Vector items) {
    super(items);
    setUI(new StateComboBoxUI());
    initProperties();
    * Constructor with default items that are shown in popup when the combo is selected
    * @param items A vector of items that are shown in popup
    * @param editable Status of ComboBox, If true the combobox value can be modified.
    public CoeusComboBox(Vector items, boolean editable){
    super( items);
    this.editable = editable;
    setEditable(editable);
    setUI(new StateComboBoxUI());
    initProperties();
    * Sets combobox Popup Background Color
    * @param color background color of Combobox popup.
    public void setPopupBackground( Color color){
    this.popupBackGround = color;
    * Sets combobox Popup Selection Background Color
    * @param color Selected Item background color of Combobox popup.
    public void setPopupSelectionBackground( Color color){
    this.popupSelBackground = color;
    * Sets the Status(Editable/NonEditable) of combobox, Based on which the combo
    * value can be changed. Default is not editable
    * @param flag If true the combobox is editable.
    // public void setEditable( boolean flag){
    // editable = flag;
    * An inner class to set the Default renderer for CoeusComboBox. As this combobox
    * can show multiple columns in combo popup, so add number columns to this panel, like
    * that as many as number panel will be added to panel as many items available in combobox.
    * that is rendered in every cell.
    class CoeusComboBoxRenderer extends JPanel implements ListCellRenderer {
    private JLabel left;
    private JLabel right;
    private JLabel middle;
    * Constructor to set the layout and border for this panel.
    public CoeusComboBoxRenderer() {
    //setLayout(new GridLayout(1, 2,0,0));
    BoxLayout boxLayout =new BoxLayout(this,BoxLayout.X_AXIS);
    setLayout( boxLayout);
    setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
    left = new JLabel();
    middle= new JLabel();
    right = new JLabel();
    add(left);
    add(middle);
    add(right);
    * An overridden method to render this component in desired cell.
    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
    if (isSelected) {
    if(popupSelBackground == null ){
    popupSelBackground = list.getSelectionBackground();
    setBackground(popupSelBackground);
    setForeground(list.getSelectionForeground());
    } else {
    if( popupBackGround == null){
    popupBackGround = list.getBackground();
    setBackground(popupBackGround);
    setForeground(list.getForeground());
    if( value instanceof ComboBoxBean ){
    ComboBoxBean comboBoxBean = (ComboBoxBean) value;
    left.setText(comboBoxBean.getCode());
    middle.setText(" ");
    right.setText(comboBoxBean.getDescription());
    return this;
    }// end of CoeusComboBoxRenderer class
    * An inner class to set the editor of CoeusComboBox when it gets focus and about to be
    * selected by the user
    class CoeusComboCellEditor extends javax.swing.plaf.basic.BasicComboBoxEditor {
    public CoeusComboCellEditor() {
    super();
    System.out.println(" editable "+editable);
    editor.setEditable(true);
    //editor.setBackground(editorSelBackground);
    }// end of CoeusComboCellEditor
    }// end of CoeusComboBox
    * @(#)StateComboBoxUI.java 08/20/2002 9:21 AM
    import javax.swing.plaf.basic.*;
    import javax.swing.*;
    public class StateComboBoxUI extends BasicComboBoxUI{
    * Creates the ComboBox popup that is displayed when the implemented combobox is selected.
    * As in Basic LAF the combobox does not provide the horizontal scrollbar for popup this
    * method is overridden with that property.
    protected ComboPopup createPopup(){
    BasicComboPopup popup = new BasicComboPopup(comboBox){
    protected JScrollPane createScroller() {
    return new JScrollPane( list, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED );
    }//end of method createScroller
    return popup;
    }//end of method createPopup
    * The Class is used to populate any combo box
    public class ComboBoxBean implements java.io.Serializable{
    private String code;
    private String description="";
    /** Default Constructor */
    public ComboBoxBean() {
    /** Constructor with parameters */
         public ComboBoxBean(String code, String description) {
                   this.code = code;               this.description = description;
    * This method gets the Code
    * @return String code
    public String getCode() {
    return code;
    * This method sets the Code
    * @param String code
    public void setCode(String code) {
    this.code = code;
    * This method gets the Description
    * @return String description
    public String getDescription() {
    return description;
    * This method sets the Description
    * @param String description
    public void setDescription(String description) {
    this.description = description;
    public String toString(){
    return getDescription();

    Gregor,
              As an alternative way i did take "selectedItem" away from MXML and used it on "creationComplete". But not i am running in to different problem which i am going to open as new discussion.
    Between i have documented this issue on my blog @ http://www.srinivaskusunam.com/2009/05/13/flex-combobox-selecteditem-problem/
    Thanks,
    Srini

  • Create a custom widget

    I would like to create a "component" -- basically a drop-down menu.  Except that my drop-down menu will not select an item when a user clicks on it.  The user must click on it for 2 seconds and then it will be selected.  How can I create this custom widget/component?

    Thanks for your reply.  I was looking at AS 3 classes and in particular the Spark class DropDownList.  I am thinking of creating a class that extends from DropDownList.  Then overriding some method that will allow me to implement exactly when something should be selected (not just a click of the mouse but when the mouse is held down for 2 seconds).  I am just having trouble finding which method this would be, maybe a public or private method or an event.  I'm such a noob at this I'm sure this is obvious and either someone already knows it or it will catch their eye very quickly.  This is the link to the DropDownList in case someone wants to take a glance at it: class http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/DropDo wnList.html   I appreciate all your help.

  • JTable with custom combobox

    Hi
    I been trying to create a JTable with a custom combobox, that is in a column the lists contained within each combobox is unique. I tried using a renderer, even though the combo appears I cannot select the combo for editing. Any suggestions on how to get the combo working properly would be appreciated thanks.

    It's been a few years since I did something like this, but my recollection is that you should implement the TableCellEditor interface and have the getTableCellEditor method return your custom combo box. Then, either override getCellEditor in your JTable to return your custom TableCellEditor or (better) call tableColumn.setCellEditor for the column you're interested in, passing an instance of your TableCellEditor. I suggest you return the same JComboBox from your implementation of getTableCellEditor every time, and either replace the underlying model or have a custom model in which you can easily switch the contents on-the-fly.
    Having done this in the past, I remember that it's quite easy to leak stuff - I wouldn't advise making a new JComboBox every time.
    Regards,
    Huw

  • I'm having trouble getting a custom JPanel to display correctly...

    HI, I'm having trouble getting a custom JPanel to display correctly. I'm using the JPanel inside a JFrame to display some really custom graphs. The graphing side of this whole thing works flawlessly. The problem I'm having is that when I close the JFrame by using setVisible(false); and then openning it again using setVisible(true); all the information on it is garbage. There are buttons from the JFrame which orgininally opened it and it has trouble openning a second graph if I choose too. I also have the same problem if i move the frame off the screen and move it back. I'd really appreciate any help.
    Thanks!

    With option #1 -- I modified and rebuilt the 3rd-party JARs and referenced them in NetBeans. When I choose clean and build, the Ant processes results in an error: "jarsigner returns 1". So it doesn't seem to run at all.As long as you rebuilt the jars correctly without the original signature, I think it should work.
    An example of unsigning a jar using ant is here:
    http://frank.zinepal.com/unsign-a-jar-with-ant
    Do you think the multiple-JNLP idea would work if NetBeans didn't apply "my" signature to the 3rd-party JARs? Aside from manually copying the original JARs into the \dist directory, is there a better way to tell NetBeans to leave the 3rd-party JAR alone (ie, don't sign it again)?I think it's supposed to work (it's the mixed code signing situation I referred to in my prior post).
    For example, from your description it sounds like the default NetBeans build doesn't really support this style of deployment, so you would have to create a custom build which does what you need and is not triggered by NetBeans - which is doable, but annoying - it's sounds like you tried this, but were unable to get it to work as expected. For NetBeans specific help, you are better posting to a NetBeans forum (though you might be just the second person who has tried to do this with a JavaFX app).
    Also need to check the end user experience is acceptable too, because I think the dialog and warning handling for the mixed code situation is different.
    Look at the deployment guide section "Using <fx:resources> for Extension Descriptors" - I think it documents how to do what you want if you use a custom build file rather than letting NetBeans do the work:
    http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference002.htm#CIABGCEE
    Hmm, a lot of running around to deploy an app which can open a file . . .

  • Is  Creating a Custom Component and Custom UIComponent are same in Flex ??

    Hi ,
    I am getting confusion in the terminology of words  with respect to Custom  Components .
    Please let me know whether  Creating a Custom Component and Custom UIComponent are same in Flex ??
    Because i have created some  Custom Components based on Form Container based on my business screens .
    Does they both Custom Component and Custom UIComponent mean the same ??
    Please tell me .
    Thanks in advance

    There seems to be a little confusion here. Think of it this way:
    A basic UIComponent by itself is not visible; you can add something you can see to it to make a visual custom component. For example, a ComboBox component is a UIComponent with a ComboBox added to it.
    The UIComponent is the lightest weight component available from which you can create other components. I use it as the base for custom components that the user cannot see, like a data manager.
    HTH,
    Carlos

  • Trouble creating content presenter template

    I'm trying to create a template for the content presenter that will display a table view of files in a folder.
    I tried creating a custom template based off the sample list-detailed-tabular-view.jsff that was included. but I am having trouble figuring out what my error is.
    When I export the template I can successfully upload it to webcenter but when I try to apply the template to a content presenter the page goes blank and I have to go back to administration to disable the template to get the page to load again.
    After several failed attempts I even tried copying the sample table template directly without changing any of the code but when I apply it the page still goes blank and becomes inaccessible
    This only happens when I try to create a template that calls another single template. I was able to get a template working that was for a single item, but I need to get the documents under a folder to work...
    How can I troubleshoot whats causing the error? I am new so I have a feeling I may be missing some steps when creating,exporting, or uploading the template.
    Below are the sources for the 2 templates, do I have to create anything else besides a .jsff file?
    Single Item which works by it self:
    <?xml version = '1.0'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates">
    <dt:contentTemplateDef var="node">
    <af:goImageLink text="#{node.name}"
    id="gil1" icon="#{node.primaryProperty.icon.smallIcon}"
    destination="#{node.primaryProperty.url}"
    targetFrame="_blank"
    shortDesc="#{not empty node.propertyMap['xComments'].value.stringValue ? node.propertyMap['xComments'].value.stringValue : node.primaryProperty.value.binaryValue.name}"
    rendered="#{not empty node}">
    <af:showPopupBehavior triggerType="mouseOver" popupId="::cpPopup"/>
    </af:goImageLink>
    <af:outputText id="emptyot" value="#{templateBundle.EMPTY_NODE}"
    rendered="#{empty node}"/>
    </dt:contentTemplateDef>
    </jsp:root>
    The Table Template that calls the single item (this is what seems to break the page when I activate it)
    <?xml version='1.0' encoding='utf-8'?>
    <!-- Test -->
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates">
    <dt:contentListTemplateDef var="nodes">
    <jsp:include page="./support/miniView.jsff"/>
    <af:table rowSelection="none" columnSelection="none" columnStretching="column:c1"
    columnBandingInterval="0" rowBandingInterval="1" var="node" value="#{nodes}"
    summary="#{templateBundle.DEFAULT_TABULAR_LIST_TEMPLATE_DESC}" id="tblRslt"
    emptyText="#{templateBundle.EMPTY_NODES}" styleClass="AFStretchWidth"
    autoHeightRows="25">
    <af:column id="c1a" rowHeader="unstyled"
    headerText="#{null}"
    rendered="#{userPreferences.accessibilityMode=='screenReader'}">
    <af:outputText value="#{node.name}" id="ot1"/>
    </af:column>
    <af:column headerText="#{templateBundle.COLUMN_DOCUMENT}"
    sortable="true" align="left" minimumWidth="200"
    sortProperty="name" id="c1">
    <dt:contentTemplate node="#{node}"
    view="keith.list.item"
    nodesHint="#{nodes}" id="ct1"/>
    </af:column>
    <af:column headerText="#{templateBundle.COLUMN_MODIFIED_DATE}"
    sortProperty="modifiedDate" sortable="true" align="end"
    id="c2">
    <af:outputText value="#{node.modifiedDate}" id="ot2">
    <af:convertDateTime type="both"
    timeZone="#{generalSettings.userTimeZone}"/>
    </af:outputText>
    </af:column>
    <af:column headerText="#{templateBundle.COLUMN_MODIFIED_USERNAME}"
    sortProperty="modifiedBy" sortable="true" align="end"
    id="c3">
    <af:outputText value="#{node.modifiedBy}" id="ot3"/>
    </af:column>
    </af:table>
    </dt:contentListTemplateDef>
    </jsp:root>
    Also if anyone knows where I can find tutorials to learn how to create the templates that would be great.

    You may want to repost your question in the WebCenter Portal forum. The problem is likely not on the Content Server side.

  • How to Create the Custom print Quote Report ?

    Hi All,
    I want to create the custom Print Quote report . I know the below details and referred the below metalinks .
    Note: 780722.1 - How to Create a Custom Print Quote Template in Oracle Quoting ?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=780722.1
    Note: 392728.1 - How to Modify the data source for the XML version of the Print Quote report
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=392728.1
    Note: 468982.1 - How To Customize The Asoprint.Xsl
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468982.1.
    Oracle Metalink:
    Note: To add a column to the print quote report, following files need to be updated:
    LinesVO.xml --- xml files containing the sql query and attribute definition
    LinesVORowImpl.class - public class extending the framework class OAViewRowImpl.
    This class contains the set and get for the attributes defined in xml file.
    ASOPRINT.xsl - this is the xsl stylesheet file used to describe the report layout.
    This file needs to be modified to include the new column being added to the report
    QUESTION :
    My question is,
    1. wether my approach (below iare the details)of trying to extend the PromptVO is the right way or is there any other way to add the new columns.
    I want to add new fields on to the report . When i looked into the it says the below
    Here we find that to add a new column, oracle says to update the LINESVO.xml, do they really mean to update the base files.
    This report uses following VO's
    PROMPTVO
    HEADERVO,
    LINESVO.
    To create new Headers & Prompts, i tried extending the PROMPTVO. Once the extended VO is substitued , i dont even get the data for standard oracle Prompts. is this the right way to add columns?
    Thanks

    Hi All,
    I want to create the custom Print Quote report . I know the below details and referred the below metalinks .
    Note: 780722.1 - How to Create a Custom Print Quote Template in Oracle Quoting ?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=780722.1
    Note: 392728.1 - How to Modify the data source for the XML version of the Print Quote report
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=392728.1
    Note: 468982.1 - How To Customize The Asoprint.Xsl
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468982.1.
    Oracle Metalink:
    Note: To add a column to the print quote report, following files need to be updated:
    LinesVO.xml --- xml files containing the sql query and attribute definition
    LinesVORowImpl.class - public class extending the framework class OAViewRowImpl.
    This class contains the set and get for the attributes defined in xml file.
    ASOPRINT.xsl - this is the xsl stylesheet file used to describe the report layout.
    This file needs to be modified to include the new column being added to the report
    QUESTION :
    My question is,
    1. wether my approach (below iare the details)of trying to extend the PromptVO is the right way or is there any other way to add the new columns.
    I want to add new fields on to the report . When i looked into the it says the below
    Here we find that to add a new column, oracle says to update the LINESVO.xml, do they really mean to update the base files.
    This report uses following VO's
    PROMPTVO
    HEADERVO,
    LINESVO.
    To create new Headers & Prompts, i tried extending the PROMPTVO. Once the extended VO is substitued , i dont even get the data for standard oracle Prompts. is this the right way to add columns?
    Thanks

  • Is there a way to create a custom screensaver with pics/slides that display for different amounts of time?

    Is there a way to create a custom screensaver with pics/slides that display for different amounts of time? Or even add a "video slide" into the screensaver?
    My business has 3 TVs displayed in our lobby, each with its own apple TV and they are all linked to the same photo stream. Currently the Atv screensaver displays the photostream pictures of our products for the default 3 seconds. We just added pics/slides that now display messages and useful info for our customers but I want that info to be displayed for a longer period of time than the pictures to give people a chance to read it.
    I tried using flickr and powerpoint as a work around but no luck.  I created a slide in powerpoint with play length of 15 secs and saved it as a wmv file.  I added that file to a "screensaver" set in flickr and pointed the Atv screensaver to that flickr set.  It still displays everything, pics and the wmv file at the default 3 sec.
    I know I can increase the duration of all pics in the screensaver to display for longer but the goal is to have the pics display at 3 secs and the info slides to display at 15 secs.

    Welcome to the Apple Community.
    No that's not possible.
    If you have any suggestions that you think might enhance the Apple TV you can send Apple your feedback here 

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

Maybe you are looking for

  • IPod Touch skips, stutters, glitches through songs since software upgrade!

    Hi everyone, *Since I upgraded my iPod Touch* to the latest available software update +(for the 1st Gen is 3.1.3)+, it has become *unable to properly play any music encoded above 128kbps*. Before the upgrade, my iPod could play music encoded in any h

  • IPhone 4S Connectivity In Europe

    I need to know if I can use My Verizon IPhone 4s in Europe with Local Sim Card

  • Error during Java Stack upgrade with SAPINST Tool for Netweaver 04

    Hi, I have updated all the ABAP stack support packages fine. But when i try to upgrade the Java Stack for the BW server using the SAPINST tool, i received an error in the 17th step "Starting J2EE Engine". The error log says: CJS-20057 Starting Java e

  • Packages in AUR

    I just completed the switch to arch of my personal desktop  (great, my new favourite distro BTW), and since I installed a few packages from AUR I was wondering what happens when the PKGBUILD there are updated? I mean how can I know (possibly automati

  • Problème d'identification sur Itunes producer.

    Bonjour, je n'arrive pas à me connecter à Itunes producer, après avoir entré mes identifiant et mon mot de passe voici le message qui s'affiche : *** -[__NSCFString substringToIndex:]: Range or index out of bounds Quelqu'un pourrait-il m'en dire plus