MS 6.0 Custom Editor

In preparation of migration from MS 5.2 / DS 4.16 to current releases I have running a test installation jes 04Q2. Trying to manage users/groups I found problems using the custom editor of the management console. It seems, Sun don�t like to support this feature in this (and future?) versions. Is there any other way to manage user/group properties in a comfortable GUI tool? To use the generic editor is not the way for daily routine tasks. Someone told me to use identity server, but I found this too complex for only this goal.

Sometime in the next few months. It's in beta, now, but release dates are not something I can predict.

Similar Messages

  • JDev Extensions: Register only a particular XML file with custom Editor?

    Hi Guys,
    I have extended the Editor class and created my own Editor - MyCustomEditor. Below is the part of 'extension.xml', where I am registering any XML document with this editor.
    <editors xmlns="http://xmlns.oracle.com/ide/extension">
    <!-- Register our custom editor -->
    <editor id="myCustomEditor.design"
    label="My Design"
    editor-class="oracle.xxx.xxx.MyCustomEditor" >
    <node-type class="oracle.bali.xml.addin.XMLSourceNode" />
    </editor>
    </editors>
    But my actual requirement is to register my custom (design) editor to a particular XML file which has a fixed name, lets say MyApplicationFile.xml. I don't want this Custom Editor for any other XML document. How can I achieve this?
    Thanks,
    Rajesh.

    No JDev version??
    Here is what you can try.
    1. Subclass XMLSourceNode to CustomXMLSourceNode. Mention this class in editor tag.
    2. In addition to <editor> you may need to have <xml-recognizer> along with <include-filenames>MyApplicationFile.xml</include-filenames>.

  • Java.lang.NullPointerException during clicking custom editor

    Hi,
    I have faced java.lang.NullPointerException when I want to click the custom editor in the property field. Let me explain more in depth.
    I have selected a hyperlink and want to key in the URL link under the property. When I click on the custom editor, it should have a pop-up screen for me to key in the link. However, it shows a java.lang.NullPointerException error.
    Can anyone please help?
    Thank you.

    This error was solved using latest Identity Manager IDE 8.1 downloaded from page:
    [identitymanageride.dev.java.net|https://identitymanageride.dev.java.net/servlets/ProjectDocumentList?folderID=9474&expandFolder=9474&folderID=9474]

  • How? double click to edit a cell in a JTable (Custom Editor/TableModel)

    I have a JTable with a custom table model that when you click anything in the first column a custom editor appears. I would like to know how to make the custom editor appear after a double click on any cell in the first column. It can probably be done with a MouseListener but is there any easier way to do this?
    Thanks.

    this works for me.
    public class MyJcustomEditor extends DefaultCellEditor {
    public MyJcustomEditor(JTextField tField) {
    super(tField);
    setClickCountToStart(2);
    }

  • Strange behavior in JTable using JFileChooser as custom editor

    I have an application that I am working on that uses a JFileChooser (customized to select images) as a custom editor for a JTable. The filechooser correctly comes up when I click (single click) on a cell in the table. I can use the filechooser to select an image. When I click on the OPEN button on the filechooser, the cell then displays the editor class name.
    I have added prints to the editor methods and have determined that editing is stopped before the JTable adds the listener. I have looked at the code and have searched doc for examples but have not found what I am doing wrong. Can anyone help?
    I configured the table editor as follows:
    //Set up the editor for the Image cells.
    private void setUpPictureEditor(JTable table) {
    table.setDefaultEditor(String.class, new PictureChooser());
    Below is the code for the JTable editor that I am using:
    package com.board;
    import java.io.*;
    import java.util.Vector;
    import java.util.EventObject;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JFileChooser;
    import javax.swing.JPanel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.event.CellEditorListener;
    import javax.swing.event.ChangeEvent;
    public class PictureChooser extends JLabel implements TableCellEditor
    boolean DEBUG = true;
    int line=0;
    static private String newline = "\n";
    protected boolean editing;
    protected Vector listeners;
    protected File originalFile;
    protected JFileChooser fc = new JFileChooser("c:\\java\\jpg");
    protected File newFile;
    public PictureChooser()
    super("PictureChooser");
    if (DEBUG)
         System.out.println(++line + "-PictureChooser constructor");
         listeners = new Vector();
         fc.addChoosableFileFilter(new ImageFilter());
         fc.setFileView(new ImageFileView());
         fc.setAccessory(new ImagePreview(fc));
    private void setValue(File file)
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.setValue method");
         newFile = file;
    public Component getTableCellEditorComponent(JTable table,
                                  Object value,
                                  boolean isSelected,
                                  int row,
                                  int col)
    if (DEBUG)
         System.out.println(line + "-PictureChooser.getTableCellEditorComponent row:" + row + " col:" + col + " method");
         fc.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e) {
                   String cmd = e.getActionCommand();
                   System.out.println(++line + "-JFileChooser.actionListener cmd:" +
                                       cmd);
                   if (JFileChooser.APPROVE_SELECTION.equals(cmd))
                        stopCellEditing();
                   else
                        cancelCellEditing();
         //editing = true;
         //fc.setVisible(true);
         //fc.showOpenDialog(this);
         int returnVal = fc.showOpenDialog(this);
         if (returnVal == JFileChooser.APPROVE_OPTION)
         newFile = fc.getSelectedFile();
         table.setRowSelectionInterval(row,row);
         table.setColumnSelectionInterval(col,col);
         return this;
    // cell editor methods
    public void cancelCellEditing()
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.cancelCellEditing method");
         fireEditingCanceled();
         editing = false;
         fc.setVisible(false);
    public Object getCellEditorValue()
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.getCellEditorValue method");
         return new ImageIcon(newFile.toString());
    public boolean isCellEditable(EventObject eo)
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.isCellEditable method");
         return true;
    public boolean shouldSelectCell(EventObject eo)
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.shouldSelectCell method");
         return true;
    public boolean stopCellEditing()
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.stopCellEditing method");
         fireEditingStopped();
         editing = false;
         fc.setVisible(false);
         return true;
    public void addCellEditorListener(CellEditorListener cel)
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.addCellEditorListener method");
         listeners.addElement(cel);
    public void removeCellEditorListener(CellEditorListener cel)
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.removeCellEditorListener method");
         listeners.removeElement(cel);
    public void fireEditingCanceled()
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.fireEditingCanceled method");
         setValue(originalFile);
         ChangeEvent ce = new ChangeEvent(this);
         for (int i=listeners.size()-1; i>=0; i--)
         ((CellEditorListener)listeners.elementAt(i)).editingCanceled(ce);
    public void fireEditingStopped()
    if (DEBUG)
         System.out.println(++line + "-PictureChooser.fireEditingStopped method");
         ChangeEvent ce = new ChangeEvent(this);
         for (int i=listeners.size()-1; i>=0; i--)
    System.out.println(++line + "-PictureChooser listener " + i);
         ((CellEditorListener)listeners.elementAt(i)).editingStopped(ce);

    try this code. it work fine.
    regards,
    pratap
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.io.*;
    public class TableDialogEditDemo extends JFrame {
         public TableDialogEditDemo() {
              super("TableDialogEditDemo");
              MyTableModel myModel = new MyTableModel();
              JTable table = new JTable(myModel);
              table.setPreferredScrollableViewportSize(new Dimension(500, 70));
              //Create the scroll pane and add the table to it.
              JScrollPane scrollPane = new JScrollPane(table);
              //Set up renderer and editor for the Favorite Color column.
              setUpColorRenderer(table);
              setUpColorEditor(table);
              //Add the scroll pane to this window.
              getContentPane().add(scrollPane, BorderLayout.CENTER);
              addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
         private void setUpColorRenderer(JTable table) {
              table.setDefaultRenderer(File.class, new PictureRenderer(true));
         //Set up the editor for the Color cells.
         private void setUpColorEditor(JTable table) {
              table.setDefaultEditor(File.class, new PictureChooser());
         class PictureRenderer extends JLabel     implements TableCellRenderer {
              Border unselectedBorder = null;
              Border selectedBorder = null;
              boolean isBordered = true;
              public PictureRenderer(boolean isBordered) {
                   super();
                   this.isBordered = isBordered;
                   setOpaque(false);
                   setHorizontalAlignment(SwingConstants.CENTER);
              public Component getTableCellRendererComponent(
                                            JTable table, Object value,
                                            boolean isSelected, boolean hasFocus,
                                            int row, int column) {
                   File f = (File)value;
                   try {
                        setIcon(new ImageIcon(f.toURL()));
                   catch (Exception e) {
                   e.printStackTrace();
                   return this;
         class MyTableModel extends AbstractTableModel {
              final String[] columnNames = {"First Name",
                                                 "Favorite Color",
                                                 "Sport",
                                                 "# of Years",
                                                 "Vegetarian"};
              final Object[][] data = {
                   {"Mary", new Color(153, 0, 153), "Snowboarding", new Integer(5), new File("D:\\html\\f1.gif")},
                   {"Alison", new Color(51, 51, 153), "Rowing", new Integer(3), new File("D:\\html\\f2.gif")},
                   {"Philip", Color.pink, "Pool", new Integer(7), new File("D:\\html\\f3.gif")}
              public int getColumnCount() {
                   return columnNames.length;
              public int getRowCount() {
                   return data.length;
              public String getColumnName(int col) {
                   return columnNames[col];
              public Object getValueAt(int row, int col) {
                   return data[row][col];
              public Class getColumnClass(int c) {
                   return getValueAt(0, c).getClass();
              public boolean isCellEditable(int row, int col) {
                   if (col < 1) {
                        return false;
                   } else {
                        return true;
              public void setValueAt(Object value, int row, int col) {
                   data[row][col] = value;
                   fireTableCellUpdated(row, col);
         public static void main(String[] args) {
              TableDialogEditDemo frame = new TableDialogEditDemo();
              frame.pack();
              frame.setVisible(true);
    import java.awt.Component;
    import java.util.EventObject;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.io.*;
    public class PictureChooser extends JButton implements TableCellEditor, ActionListener {
         protected EventListenerList listenerList = new EventListenerList();
         protected ChangeEvent changeEvent = new ChangeEvent(this);
         private File file;
         public PictureChooser() {
              super("");
              setBackground(Color.white);
              setBorderPainted(false);
              setMargin(new Insets(0,0,0,0));
              addActionListener(this);
         public Component getTableCellEditorComponent(JTable table, Object value,
                                                 boolean isSelected, int row, int column) {
         File f = (File)value;
         try {
              setIcon(new ImageIcon(f.toURL()));
         catch (Exception e) {
              e.printStackTrace();
         return this;
         public void actionPerformed(ActionEvent e)
         JFileChooser chooser = new JFileChooser("d:\\html");
         int returnVal = chooser.showOpenDialog(this);
              if(returnVal == JFileChooser.APPROVE_OPTION) {
                   file = chooser.getSelectedFile();
                   System.out.println("You chose to open this file: " + chooser.getSelectedFile().getName());
                   fireEditingStopped();
              else
                   fireEditingCanceled();
         public void addCellEditorListener(CellEditorListener listener) {
         listenerList.add(CellEditorListener.class, listener);
         public void removeCellEditorListener(CellEditorListener listener) {
         listenerList.remove(CellEditorListener.class, listener);
         protected void fireEditingStopped() {
         System.out.println("fireEditingStopped called ");
         CellEditorListener listener;
         Object[] listeners = listenerList.getListenerList();
         for (int i = 0; i < listeners.length; i++) {
              if (listeners[i] == CellEditorListener.class) {
              listener = (CellEditorListener) listeners[i + 1];
              listener.editingStopped(changeEvent);
         protected void fireEditingCanceled() {
         CellEditorListener listener;
         Object[] listeners = listenerList.getListenerList();
         for (int i = 0; i < listeners.length; i++) {
              if (listeners[i] == CellEditorListener.class) {
              listener = (CellEditorListener) listeners[i + 1];
              listener.editingCanceled(changeEvent);
         public void cancelCellEditing() {
         System.out.println("cancelCellEditing called ");
         fireEditingCanceled();
         public boolean stopCellEditing() {
         System.out.println("stopCellEditing called ");
         fireEditingStopped();
         return true;
         public boolean isCellEditable(EventObject event) {
         return true;
         public boolean shouldSelectCell(EventObject event) {
         return true;
         public Object getCellEditorValue() {
              return file;

  • Custom Editor: get c++ LanguageService

    Hi,
    I'm currently creating a custom editor for Visual Studio.
    Does somebody know how to get the registered c++ language service and use it for parse c++ and create my own syntactic coloration ? 
    Thank you in advance
    Axel Payan

    Hi Axel,
    Please take a look at this thread, it's for Visual C# language, but should give you some ideas about how to utilize the built-in C++ language service for your custom editor:
    Extending core C# Language Service
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get the caret inside a custom editor?

    I was reading through old posts the other day and noticed this by Rob Camick in this thread Re: Problem in cell selection in JTable Java Swing :
    camickr wrote:
    All KeyEvents are passed to the editor for the cell and the editor is psuedo invoked. That is, the caret is not placed on the text field used as the editor, but the character typed is added to the editor.This set me thinking about a known issue in my app which I had shelved for a "rainy day": how to get the caret into the cell editor component. I thought I'd get it out and look at it. I tried the following, in my custom cell editor:
      public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,
                                                 int row, int column)
        JTextField ec = (JTextField) editorComponent;
        ec.setText((String) value);
        if ("".equals(ec.getText()))
          ec.setCaretPosition(0);
        else
          ec.selectAll();
        return editorComponent;
      }But it has no effect whatsoever, the user still can't type something in and then press the backspace key to useful effect. Has anyone out there solved this problem? (And why, oh why, is the caret not put into the cell editor by default, if it's a component that has a caret?)

    Replying to my own post, in case what I ended up with is of some help to others. The desired behaviour was that anything the cell contained from the previous edit would be replaced by what the user types in the current edit, i.e.:
    user starts edit, types 234, stops editing, cell displays 234...user single-clicks on cell, types 567, stops editing, cell displays 567
    My code is as follows:
        public Component getTableCellEditorComponent(JTable table, Object value,
                                                     boolean isSelected, int row,
                                                     int column)
          final JTextField ec = (JTextField) editorComponent;
          ec.setText((String) value);
          // selectAll, so that whatever the user types replaces what we just put there
          ec.selectAll();
          SwingUtilities.invokeLater(new Runnable()
            public void run()
              // make the component take the keyboard focus, so the backspace key works
              ec.requestFocus();
              SwingUtilities.invokeLater(new Runnable()
                public void run()
                  // at this point the user has typed something into the cell and we
                  // want the caret to be AFTER that character, so that the next one
                  // comes in on the RHS
                  ec.setCaretPosition(ec.getText().length());
          return editorComponent;
        }

  • Changes in Texts in custom editor not getting saved in QM02 tcode

    Hi Expert,
    I am working on a screen exit in QM01. I have created a editor box(like the description box under Description tab in QM01) using class cl_gui_custom_container and cl_gui_textedit. I am able to create and display the text I type in the box alongwith other standard changes but if I try to change and save the text only in the custom text box, it is not getting saved. I debugged and found out that the standard does not recognize any change in the custom controller box.
    Please suggest.
    Thanks in advance,
    Sangeeta.

    Hi Sangeeta,
    After doing changes which method are you using to capture the text in the text editor ?
    There is a method GET_TEXT_AS_R3TABLE in class CL_GUI_TEXTEDIT . in that pass 'X' to ONLY_WHEN_MODIFIED parameter,
    Hope these may resolve your issue.
    Regards,
    Kumar M.

  • WPC - Custom Editor Components - How to...?

    Hello,
    I'm trying to create my own Editor Component in Web Page Composer for which I followed this Tutorial:
    http://scn.sap.com/docs/DOC-7157
    I get through it but in the end it doesn't work.
    Obviously i have to create an entry in "Editor UI Elements" for my new Component?!
    I created an entry with a default-Control and my Component shows in the WPC-Editor but obviously looks like the default-Control I've chosen.
    I would like to create my own UI-Element for my custom component but until now I weren't able to do so.
    The default Controls (e.g. TextElementControl) are in the package "com.sap.nw.wpc.editor.ui" which I also can't find.
    Can anyone help me with this?
    Anyone of you were able to create his/her own Editor Component?
    Thanks in advance.
    Greetings,

    You need to break your frame into MVC classes,
    - do all the loading of data in the model classes (eg, load pictures from files, etc).
    - Create the view classes (the Swing components) only after you have created & loaded the models.
    - Then everything should already be loaded before you display the frame.
    If you want to see a more elegant solution that uses asynchronous model loading, then check out this sample application:
    https://glazedlists.dev.java.net/glazedlists-demo.jnlp

  • JComboBox custom editor and model

    I'd like to implement a custom JComboBox that uses application's arbitrary text field as its editor. Below is a first trial but it is dead on birth. Specifically, two action listeners for the text field do not work let alone do accumulating edited items on the combo box. What could be my foolish errors?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import javax.swing.plaf.metal.MetalComboBoxEditor;
    public class EditableComboBox extends JComboBox{
      Vector<String> items;
      CustomComboBoxModel model;
      JTextField tfield;
      CustomComboBoxEditor editor;
      public EditableComboBox(Vector<String> vec, JTextField tf){
        items = vec;
        model = new CustomComboBoxModel(items);
        setModel(model);
        tfield = tf;
        editor = new CustomComboBoxEditor(tfield);
        setEditor(editor);
        setEditable(true);
        tfield.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent e){
            handleEditedItem();
      void handleEditedItem(){
        String s = tfield.getText();
        if (s.length() > 0 && ! model.hasElement(s)){
          model.addElement(s); // add new element
      class CustomComboBoxModel extends DefaultComboBoxModel{
        public CustomComboBoxModel(Vector<String> vec){
          super(vec);
        // like to add it to head, not to tail
        public void addElement(Object o){
          insertElementAt(o, 0);
        public boolean hasElement(Object o){
          int size = getSize();
          int idx = getIndexOf(o);
          return (idx > -1 && idx < size);
      class CustomComboBoxEditor extends MetalComboBoxEditor{
        JTextField tfield;
        public CustomComboBoxEditor(JTextField t){
          tfield = t;
        public JTextField createEditorComponent(){
          return tfield;
      public static void main(String[] args){
        final JTextField jtf = new JTextField(80);
        Vector<String> vs = new Vector<String>();
        EditableComboBox ecb = new EditableComboBox(vs, jtf);
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(ecb, BorderLayout.NORTH);
        jtf.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent e){
            System.out.println(jtf.getText());
        frame.pack();
        frame.setVisible(true);
    }Edited by: hiwa on Sep 28, 2007 3:08 PM

    This is the final or provisional production version based on Michael's first solution. I find the class is much more useful when the handleEditedItem() method can be called from the application because the application can control the behavior.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class JTextFieldWithMemory extends JComboBox{
      Vector<String> items;
      CustomComboBoxModel model;
      JTextField tfield;
      int columns;
      /* constructor for a special usage, this obj calls handleEditedElement() */
      public JTextFieldWithMemory(Vector<String> vec, int cs, boolean handleEdit){
        items = vec;
        columns = cs;
        model = new CustomComboBoxModel(items);
        setModel(model);
        setEditable(true);
        tfield = (JTextField)getEditor().getEditorComponent();
        if (cs > 0){
          tfield.setColumns(columns);
        if (handleEdit){ // automatic self accumulation
          tfield.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
              handleEditedItem();
      /* ordinary usage constructor, application calls handleEditedElement() */
      public JTextFieldWithMemory(Vector<String> vec, int cs){
        this(vec, cs, false);
      public JTextFieldWithMemory(Vector<String> vec){
        this(vec, 0);
      public JTextFieldWithMemory(){
        this(new Vector<String>(), 0);
      public JTextField getTextField(){
        return tfield;
      public String getText(){
        return tfield.getText();
      public void setText(String t){
        tfield.setText(t);
        handleEditedItem();
      public Vector<String> getItems(){
        return items;
      public void addActionListenerTf(ActionListener al){
        tfield.addActionListener(al);
      public void handleEditedItem(){
        String s = tfield.getText();
        if (s.length() > 0 && ! model.hasElement(s)){
          model.addElement(s); // add new element
        tfield.setText(s); // prevent blanking out
      class CustomComboBoxModel extends DefaultComboBoxModel{
        public CustomComboBoxModel(Vector<String> vec){
          super(vec);
        // like to add it to head, not to tail
        public void addElement(Object o){
          insertElementAt(o, 0);
        public boolean hasElement(Object o){
          int size = getSize();
          int idx = getIndexOf(o);
          return (idx > -1 && idx < size);
      /* main() for test */
      static JTextField jtf;
      static JTextFieldWithMemory tm;
      public static void main(String[] args){
        Vector<String> vs = new Vector<String>();
        tm = new JTextFieldWithMemory(vs, 30);
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(tm, BorderLayout.NORTH);
        jtf = (JTextField)tm.getEditor().getEditorComponent();
        jtf.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent e){
            tm.handleEditedItem(); // called from app
            System.out.println(jtf.getText());
        frame.pack();
        frame.setVisible(true);
    }

  • Dreamweaver as custom editor for other file extensions

    So, I'm working on a project that requires me to work on some
    files with non-standard extensions. Namely, I have some text files
    that have a .cm extension, and I have some code files which have no
    extension at all. I am connecting to my file store via an FTP
    "site" set up in Dreamweaver.
    Under preferences->filetypes/editors, I set up ". .cm" for
    those two cases, and had selected "Dreamweaver" as the primary
    editor.
    The files open just fine, and I'm able to edit and save them,
    and when I do, the files get "PUT" back up to the FTP server as I
    want. However, what I've noticed is that the first time I edit one
    of those types of files, and save it, now, from then on in that
    session of Dreamweaver, any time I de-focus the window and then
    come back to it, the IDE initiates another PUT action of the files
    in question, even if the files are unchanged.
    However, if I go back into preferences, and remove the
    "Dreamweaver" as the primary editor for those two extensions, and
    leave that list blank, Dreamweaver still is able to open up the
    files as I want, but this weirdness with FTP putting and the
    window-focus goes away.
    Anyone have any idea why?

    This TechNote explains how to add file extensions to be
    recognized by DW.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
    Unfortunately, DW does not handle file with no file extension
    very well.
    HTH,
    Randy
    > So, I'm working on a project that requires me to work on
    some files with
    > non-standard extensions. Namely, I have some text files
    that have a .cm
    > extension, and I have some code files which have no
    extension at all.

  • INline custom editor for spark column

    Here is quick column definition:
    <s:GridColumn dataField="label1" headerText="Order #" editable="true">
                        <s:itemEditor>
                            <fx:Component>
                                <s:GridItemEditor>
                                    <s:TextArea/>
                                </s:GridItemEditor>
                            </fx:Component>
                        </s:itemEditor>
                    </s:GridColumn>
    It will fail at the run time:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at spark.components.gridClasses::DataGridEditor/setEditedItemPosition()[E:\dev\4.5.1\framewo rks\projects\spark\src\spark\components\gridClasses\DataGridEditor.as:312]
        at spark.components.gridClasses::DataGridEditor/dataGrid_gridItemEditorSessionStartingHandle r()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\gridClasses\DataGridEditor .as:1204]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]
        at spark.components.gridClasses::DataGridEditor/startItemEditorSession()[E:\dev\4.5.1\framew orks\projects\spark\src\spark\components\gridClasses\DataGridEditor.as:798]
        at testGrid/startItemEditorSession()[C:\testarea\Flex\Test Project\gridComboRenderer\src\testGrid.as:27]
        at gridComboRenderer/onChange()[C:\testarea\Flex\Test Project\gridComboRenderer\src\gridComboRenderer.mxml:30]
        at gridComboRendererInnerClass2/___gridComboRendererInnerClass2_Button1_click()[C:\testarea\ Flex\Test Project\gridComboRenderer\src\gridComboRenderer.mxml:69]
    Am I doing it wrong?

    Yes.  Unlike MX, Spark Controls don’t carry the weight of also being drop-in item renderers and editors.  You will need to build up your editor based on the GridItemEditor class.

  • Creating a custom editor for each cell in a Jtable

    camirk, i know its swing ;) so
    http://forum.java.sun.com/thread.jspa?threadID=652383
    im just posting this link here for people who dont read the swing forum but are looking for the same solution
    hope it helps someone :)

    Two days after you posting you original question: http://forum.java.sun.com/thread.jspa?threadID=651625&messageID=3831712
    you find the answer on your own. Yes, the general Java forum sure is helpfull.
    If the question was posted in the Swing forum you would have had the answer in a couple of hours:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=637581

  • Creating a Custom SAPscript Editor

    I am trying to create a custom SAPscript editor and I'm having problems. We are on SAP 640.
    We use texts to store notes against invoices recording details of the dunning process. Our users have ask if we can tailor the notes so that users can insert new notes against an invoice but not update or delete old notes. I have tried to do this by creating a custom editor EDIT_TEXT_FORMAT_XXXXX where XXXXX is ZGTENO a text format that has been set up against text object BELEG. Unfortunately the new module is never called.
    For most text objects SAP picks up the text format  and moves it into the SAPscript header and this field in the SAPscript  header is used to call the custom editor. For example in program sapfv45t include FV45TFDB_TTXER_SELECT_CREDM   text format is in gt_tdtexttype or lv_tdtexttype  one of these fields is then moved into the SAPscript header field xthead-tdtexttype which is used in function group STXD function module EDIT_TEXT (the field is in chead-tdtextline) to decide whether to call the standard editor (function FULL_SCREEN_NEW) or a custom editor but for text object BELEG it gets the text format but never moves it to the SAPscript header (for example see program sapfv45t include FV45TFDB_TTXER_SELECT_BELEG it gets the text format in lv_tdtexttype but doesn't move it to xthead-tdtexttype so it can't be used to call a custom editor) so it looks as if a custom editor cannot be used with text object BELEG, is this correct or am I missing something?
    I can see my new text format ZGTENO being picked up in the debugger but because it isn't moved into the SAPscript header it doesn't call my function module, it always calls the standard editor.

    Two days after you posting you original question: http://forum.java.sun.com/thread.jspa?threadID=651625&messageID=3831712
    you find the answer on your own. Yes, the general Java forum sure is helpfull.
    If the question was posted in the Swing forum you would have had the answer in a couple of hours:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=637581

  • JTable custom cell editor focus problem

    Hi I have created a JTable (using Java 1.4.2) and have three cell Editors, one is a JFormattedTextField, one is a JComboBox and one is a custom cell editor.
    When I press tab I can select the cell with the JFormattedTextField and when I start typing the JFormattedTextField accepts my input and it is displayed in the cell. This is the type of behaviour I would like but it does not seem to work for my other 2 cell editors:
    When I tab to the JComboBox cell I can see that the cell is selected but typing or using the arrow keys does not allow me to select a new value in the JComboBox. (I have also tried typing space or enter to activate the JComboBox whilst the cell is selected.) The only ways to select a new value at the moment is to first click on the cell with the mouse and then use the keyboard to select a new value. It is like the actual JComboBox is not receiving the focus? Does anyone know how to solve this problem?
    I also seem to have the same problem with my custom cell editor. My custom editor is a JPanel which contains JFormattedTextField again I can tab to the cell and see that it is selected but to activate the JFormattedTextField I have to actually select it with the mouse.
    I have been stuck on this for some time so if any one has any suggestions they would be much appreciated !

    Hi I have created a JTable (using Java 1.4.2) and have three cell Editors, one is a JFormattedTextField, one is a JComboBox and one is a custom cell editor.
    When I press tab I can select the cell with the JFormattedTextField and when I start typing the JFormattedTextField accepts my input and it is displayed in the cell. This is the type of behaviour I would like but it does not seem to work for my other 2 cell editors:
    When I tab to the JComboBox cell I can see that the cell is selected but typing or using the arrow keys does not allow me to select a new value in the JComboBox. (I have also tried typing space or enter to activate the JComboBox whilst the cell is selected.) The only ways to select a new value at the moment is to first click on the cell with the mouse and then use the keyboard to select a new value. It is like the actual JComboBox is not receiving the focus? Does anyone know how to solve this problem?
    I also seem to have the same problem with my custom cell editor. My custom editor is a JPanel which contains JFormattedTextField again I can tab to the cell and see that it is selected but to activate the JFormattedTextField I have to actually select it with the mouse.
    I have been stuck on this for some time so if any one has any suggestions they would be much appreciated !

Maybe you are looking for

  • Specifying pdf document's name in browser - content-disposition problem

    Hello , I want to open a PDF document in browser, which needs to have a specified filename when user tries to save it. My web app sends an "application/pdf" document back to the browser. I use the Content-Disposition HTTP header to instruct the brows

  • Please, help me, What is the difference between SCWCD and SCBCD ?

    {color:#000000}*HI, Everyone* I want to know major difference between Sun Certified Business Component Developer and Sun Certified Web Component Developer. Who should go for business component developer and who should go for web component developer?

  • WLC 5508 Connectivity

    Guys,  I have a question regarding LAG ports.  From Rajan's post here https://supportforums.cisco.com/document/81681/lag-link-aggregation he mentioned the following: When you enable LAG, all ports participate in LAG by default. Therefore, you must co

  • My ipad 4 is not charging I just made it iOS 7

    My Ipad 4 does not charge there's a weird thing when I turned it off or my battery is dead i usually am praying for hope that it charges when it dead so I let it dead while my USB port is connected when I turned it off it charges 40% for the last 6 h

  • Rendering is sluggish when AEGP_SetStreamValue() is called from an AEGP.

    Hi All,           I have an AEGP which communicates with my custom effect. In AEGP I have a custom slider which modifes the effect value. When the slider value is changed in AEGP, I get my effect and set the value using AEGP_SetStreamValue().