Input verifier in table cell

Hi All,
I have two table in one panel and I used textfield in cell editor, Input verifier is set to these textfield and once focus is gained to other component verify method is called so far so good,
But problem is that when i entered invalid value in cell of table1 and clicked the mouse on the cell of table2 then
Verify method is called twice because one time Table gets the focus and second time textfield in cell gets the focus, so two messages are popped up one by one and I don't want two messages.
i tried two approach
table1.setVerifyInputWhenFocusTarget(false);
table2.setVerifyInputWhenFocusTarget(false);with above code, inputverifier doesn't get call.
I did try
textfieldOftable1.setVerifyInputWhenFocusTarget(false);
textfieldOftable2.setVerifyInputWhenFocusTarget(false);With above code, input verifier gets work when I do click on other table, if I do edit first table and click on second table verifier works fine but if i do edit first table and click on the cell of same table, verifier doesn't get called.
Please share your idea and thoughts with me.
I would really appreciate if you suggest any other approach to stop the multiple messages
Thanks,

Thanks camickr for your suggestions.
I did try your sample code and modified with my requirement, that looks fine
but still I have problem with my live code. I am trying to figure out the problem
thanks a lot

Similar Messages

  • Highlighting input field and  table cell column in red colour

    Hi,
           I have 4 input fields and a table in my screen. All the input fields are read only.
        I have a functionality where I have to highlight a input field with the red colour. In the sense, I have to put a thin Red border over the input field without thowing any errors or messages.
           Also, i have to highlight a particular cell in the table. i.e, i have to put Red colour border over the cell of the table for some rows only. Right now i have changed the background colour of the cell for required rows, but i need Red thin border rather than changing the entire background colour.
    Please guide me on achieving these functionalities..
    Thanks and Regards,
    -Shabir Rahim.

    Hi,
    The red thin lines border you are talking about comes from the framework during the exceptions. If this is the case then refer the following links, hope this will help you.
    [Re: Automatic message for inputfields with state=required]
    [Re: Validation of InputField]
    Well without exceptions, i dont think it will come.
    thanks & regards,
    Manoj
    Edited by: Manoj Kumar on Feb 7, 2008 12:09 PM

  • Table Cell Editor which allows to input multiple lines of text...

    Hi there
    Does anyone know how to write a table cell editor which allows users to input multiple lines of text? please provide some sample if possible...
    Thanks
    Ken

    I'm assuming you also want the renderer to display multiple lines? if so, make a class that extends JTextArea and that implements the TableCellEditor and TableCellRenderer interfaces, then set instances of this as the editor and renderer for the TableColumn in question. The implementation of most of the methods in these interfaces is trivial, often just this.setBackground() based on the table.getSelectionBackground() or table.getBackground(), a this.setText() based on the value passed in, then just a 'return this'.
    You might want to make an abstract class which implements these interfaces for you, and which delegates to a simple abstract method that you override to return the renderer/editor component.
    Note that you must use two instances of the class you make, one for the renderer and one for the editor, since it must be able to be able to render the remainder of the table's cells without interfering with the JTextArea performing the editing. (alternatively you could make two classes that extend JTextArea, each just implementing one of the interfaces, but this is more effort I think.) Also note that you must increase the table's row height to get more than one row visible.

  • How do I insert the tab character in a table cell in Pages 5.2?

    I'm typing text in a table cell.  I need to insert a tab in the text.  I've tried all of the modifier keys with the tab.  I read somewhere it would be CTRL>TAB, like Word, but that navigates to the Inspector.

    You will need to add a Unicode keyboard. System Preferences > Keyboard > Input Sources. Click the + button in the lower left. Scroll all the way to the end and select Others > Unicode Hex Input. Select and Add this. Check the box that says Show input menu in menu bar. Exit System Preferences.
    From the Finder menu, select your recent Unicode Hex Input source (it is a black box with white U+ in it). Now, position your cursor in your table cell between the characters where you want to insert a tab character. Press and hold your option key, then type 0009 (zeroes). This is the Unicode sequence for the tab control character. Space will open in your text. Tabs in table cells survive PDF export. The tab mark will not appear with Show invisibles enabled.
    Switch back to your normal country input source in that Finder input source menu.

  • How to change Table Cell Field Type Dynamically?

    Hi All,
    I am fetching some news data from backend DB and displaying them in a WD Table. Now one News Item may or may not have a URL behind it. If I find the URL as null then I want to display the news as simple TextView otherwise as LinkToUrl. How can I change this input type dynamically for each row in the runtime?
    If I use LinkToUrl all the time then the items which has URL as null gets displayed as normal text, but they are of very faint color and I can not change the text design. Whether if I user TextView I can set some text design like Header2, Header 3 etc.
    Can anybody please help with some code block? My main requirement is how to change the table cell input type dynamically.
    Thanks in Advance.
    Shubhadip

    Hi Shubhadip,
    This is the sample code for creating and adding a table cell editor table dynamically.
    public static void wdDoModifyView
    (IPrivateDynamicTableCreationView wdThis, IPrivateDynamicTableCreationView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
    //@@begin wdDoModifyView
    /*** 1.Create Table **/
    IWDTable table =
    (IWDTable) view.createElement(IWDTable.class, "table1");
    table.setWidth("100%");
    table.setVisibleRowCount(data.length);
    /*** 2.Create nameColumn **/
    IWDTableColumn nameColumn =
    (IWDTableColumn) view.createElement(IWDTableColumn.class, "Name");
    IWDCaption colHeader =
    (IWDCaption) view.createElement(IWDCaption.class, "NameHeader");
    colHeader.setText("–¼‘O");
    nameColumn.setHeader(colHeader);
    IWDTextView nameViewer =
    (IWDTextView) view.createElement(IWDTextView.class, "NameViewer");
    nameViewer.bindText(nameAtt);
    IWDTableCellEditor editor = (IWDTableCellEditor) nameViewer;
    nameColumn.setTableCellEditor(editor);
    table.addColumn(nameColumn);
    IWDTableColumn nationalityColumn =
    (IWDTableColumn) view.createElement(
    IWDTableColumn.class,
    "Nationality");
    IWDTableCellEditor nationalityEditor =
    (IWDTableCellEditor) nationalityViewer;
    nationalityColumn.setTableCellEditor(nationalityEditor);
    table.addColumn(nationalityColumn);
    /** 3. Bind context to table **/
    table.bindDataSource(nodeInfo);
    //@@end
    Bala
    Kindly reward appropriate points.

  • Small issue with custom table cell editor and unwanted table row selection

    I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
    My TreeComboBox component:
    public class TreeComboBox extends JPanel implements MouseListener {
        private JTextField itemField;
        private TreeModel treeModel;
        private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
        private Object selectedItem;
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
        public TreeComboBox(TreeModel treeModel) {
            this(treeModel, null);
         * Creates a new <code>TreeComboBox</code> instance.
         * @param treeModel the tree model to be used in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public TreeComboBox(TreeModel treeModel, Object selectedItem) {
            this.treeModel = treeModel;
            this.selectedItem = selectedItem;
            initComponents();
         * Returns the current drop-down tree model.
         * @return the current <code>TreeModel</code> instance.
        public TreeModel getTreeModel() {
            return treeModel;
         * Sets the tree model.
         * @param treeModel a <code>TreeModel</code> instance.
        public void setTreeModel(TreeModel treeModel) {
            this.treeModel = treeModel;
         * Returns the selected item from the drop-down selector.
         * @return the selected tree object.
        public Object getSelectedItem() {
            return selectedItem;
         * Sets the selected item in the drop-down selector.
         * @param selectedItem tree will expand and highlight this item.
        public void setSelectedItem(Object selectedItem) {
            this.selectedItem = selectedItem;
            String text = selectedItem != null ? selectedItem.toString() : "";
            itemField.setText(text);
            setToolTipText(text);
         * Overridden to enable/disable all child components.
         * @param enabled flat to enable or disable this component.
        public void setEnabled(boolean enabled) {
            itemField.setEnabled(enabled);
            super.setEnabled(enabled);
        public void addActionListener(ActionListener listener) {
            actionListeners.add(listener);
        public void removeActionListener(ActionListener listener) {
            actionListeners.remove(listener);
        // MouseListener implementation
        public void mouseClicked(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
            showPopup();
        private void initComponents() {
            setLayout(new GridBagLayout());
            itemField = new JTextField();
            itemField.setEditable(false);
            itemField.setText(selectedItem != null ? selectedItem.toString() : "");
            itemField.addMouseListener(this);
            add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
        private void showPopup() {
            final TreePopup popup = new TreePopup();
            final TreeComboBox tcb = this;
            final int x = itemField.getX();
            final int y = itemField.getY() + itemField.getHeight();
            int width = itemField.getWidth() + popupButton.getWidth();
            Dimension prefSize = popup.getPreferredSize();
            prefSize.width = width;
            popup.setPreferredSize(prefSize);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    popup.show(tcb, x, y);
                    popup.requestFocusInWindow();
        private void fireActionPerformed() {
            ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
            for (ActionListener listener : actionListeners) {
                listener.actionPerformed(e);
        private class TreePopup extends JPopupMenu {
            private JTree tree;
            private JScrollPane scrollPane;
            public TreePopup() {
                initComponents();
                initData();
            private void initData() {
                if (treeModel != null) {
                    tree.setModel(treeModel);
            private void initComponents() {
                setFocusable(true);
                setFocusCycleRoot(true);
                tree = new JTree();
                tree.setRootVisible(false);
                tree.setShowsRootHandles(true);
                tree.setFocusable(true);
                tree.setFocusCycleRoot(true);
                tree.addTreeSelectionListener(new TreeSelectionListener() {
                    public void valueChanged(TreeSelectionEvent e) {
                        tree_valueChanged(e);
                scrollPane = new JScrollPane(tree);
                add(scrollPane);
            private void tree_valueChanged(TreeSelectionEvent e) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
                setSelectedItem(node.getUserObject());
                fireActionPerformed();
                this.setVisible(false);
    }My TreeComboBoxTableCellEditor:
    public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
        protected TreeComboBox treeComboBox;
        protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
        public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
            this.treeComboBox = treeComboBox;
            treeComboBox.addActionListener(this);
        public Object getCellEditorValue() {
            return treeComboBox.getSelectedItem();
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
            treeComboBox.setSelectedItem(value);
            return treeComboBox;
        public void actionPerformed(ActionEvent e) {
            stopCellEditing();
    }Any thoughts?
    Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
    Edited by: MiseryMachine on Apr 3, 2008 1:27 PM

    As I said, you have to have empty context elements before additional rows will be open for input.
    For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
    data itab type standard table of sflight.
    do 5 times.
      append initial line to itab.
    enddo.
    context_node->bind_table( itab ).
    The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table.

  • Text field spry validation over 2 table cells?

    Hello,
    This might be a real simple thing, but I can't figure it out. Can anyone  please help?
    I'm using DW CS3 and I'm building a contact form. I'm using DW's Spry  validation for my text field. It's an email field. I'd like to put the  label in one table cell and the input box in the adjacent cell. But I  can't figure out how. I'm using the attach label using 'for' attribute.
    Here is how DW writes the code:
                   <tr>
                        <td>
                             <span id="sprytextfield5">
                             <label for="email">Email</label>
                             <input type="text" name="emaill" id="emaill" />
                             <span class="textfieldInvalidFormatMsg">Invalid  format.</span></span>
                        </td>
                    </tr>
    As you can see, it's all in one cell.
    I've tried massaging the code every which way but then the widget doesn't  work.
    Please help!
    Thank you in advance!
    Claudia

    Hello,
    This might be a real simple thing, but I can't figure it out. Can anyone  please help?
    I'm using DW CS3 and I'm building a contact form. I'm using DW's Spry  validation for my text field. It's an email field. I'd like to put the  label in one table cell and the input box in the adjacent cell. But I  can't figure out how. I'm using the attach label using 'for' attribute.
    Here is how DW writes the code:
                   <tr>
                        <td>
                             <span id="sprytextfield5">
                             <label for="email">Email</label>
                             <input type="text" name="emaill" id="emaill" />
                             <span class="textfieldInvalidFormatMsg">Invalid  format.</span></span>
                        </td>
                    </tr>
    As you can see, it's all in one cell.
    I've tried massaging the code every which way but then the widget doesn't  work.
    Please help!
    Thank you in advance!
    Claudia

  • Widgets in table cells?   Just one only?

    I can get one textfield to respond to user input, but more than one widget in a table cell doesn't seem to work unfortunately.
    Anyone else get this to work?

    Thanks Peter
    Can you just walk me through dumping Pages 5 and getting to the Applications/iWork folder - and does this mean that when I see future Pages Upgrades I should block them?
    I'm new to Apple so need a step by step
    Many thanks
    Glyptic

  • Theme Editor: where to change backgroundcolor of editable table cells?

    Hi all,
    I need to change the color of an editable table cell.
    I navigated to the theme editor --> tables.There is a section "Editable Tables". The preview shows an example with three columns and tree rows. I want to change the backgroundcolor of the cell in the first row, third column (in SAP standard it is lightgrey).
    The backgroundcolor of the rows beneath can be changed in section "Selected Cells", the backgroundcolor of the first two columns in the first row can be changed by "Background Color of Standard Table Cell" but I can't find the field where I can change the color of the last cell.
    Best regards,
    Sandra

    Hi,
    The blue color come from your definitions on "Labels and Fields" to read-only color of input field.
    Regards,
    F.F

  • Table Cell Renderer Customization not working

    I have a customized cell renderer that works wonderfully, it paints the background and text like it should, but I am also trying to paint a stripe like a 1 sided border across the top of the table cell, but (and this is the wierd part) only the first table column header is painting with this "stripe" on the top of it, every other column header and every other table cell do not paint with stripe on it. I print out the coords as I pass them to the graphics object to paint the line and the coords are correct, but the lines only show up in the first cell.
    I have tried to put this code into the Renderer, and today I tried to put it into the UIComponent with the same result.
    Relevant code:
    // inner class for the renderer
    private class LabelUI extends MetalLabelUI
    public void paint(Graphics g,JComponent c)
    // PAINT THE LABEL(RENDERER) USING THE NORMAL ROUTINE
    super.paint(g,c);
    // PICK A COLOR TO TEST THE CODE
    g.setColor(Color.green);
    // DUMP THE COORDS OUT TO CONSOLE
    System.out.println("Drawing a line from :"+
    c.getX()+","+(c.getY()+1)+","+
    (c.getX()+c.getWidth())+","+(c.getY()+1));
    // DRAW THE LINES
    g.drawLine(c.getX(),c.getY()+1,c.getX()+c.getWidth(),c.getY()+1);
    g.drawLine(c.getX(),c.getY()+2,c.getX()+c.getWidth(),c.getY()+2);
    }

    camickr- thanks for the input. I had tried a matte border yesterday in the renderer and the L&F object and couldn't get it to paint, but maybe I have something set elsewhere that is preventing it from painting, so I'll give that one another try. If I come up with an answer I'll be sure to post! -dohare
    If I understand the question then take a look at the
    HighlightCellRenderer class of this little
    application. It uses vertical lines on certain
    columns:
    http://www.discoverteenergy.com/files/RHex.zip
    run the program: java Hex

  • Blinking Cursor in Table Cell

    Can anybody tell me how I can blink the Cursor in the JTable. I am using JTable Cell as the user input field, I want to show a blinking cursor if user selects that cell.
    Thanks in adv

    Are your table cells editable? Are you talking about the Cursor in the TextField when your cell is edited? It is probably best to be as explicit as possible here.
    Josh Castagno
    http://www.jdc-software.com

  • Table Cells in Layout Mode vs WYSIWYG

    I am new to Dreamweaver and am using v8.0. When designing a
    page using Tables and Cells in Layout Mode the layout looks fine;
    the Cells are nice and tight. However - and this regardless of
    which Browser I use to check the page - the spacing between those
    same Cells is wholly unacceptable. As mentioned, in Layout Mode
    everything is tight; when viewing it in a browser there may be up
    to 2" of space between the Cells.
    What have I over looked? Any suggestions greatly appreciated!
    Thanks!

    Table width = 1327? Don't ever make your width more than
    about 770. As for
    the spacing .. I have never seen so many empty table cells in
    my life. :)
    As the others have said, you will do far better by learning a
    little html
    and css .. "adhering to conventions" will never happen with
    Layout Mode.
    It's there so people can draw tables .. but if I were DW
    Engineering, I
    would remove it .. I think it causes more problems than it's
    worth. :)
    Nancy
    "LGLDSR73" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thank you, Nancy!
    >
    > Cellspacing=0 set as such:
    >
    > <table width="1327" border="0" cellpadding="0"
    cellspacing="0">
    >
    > I seem to have it squared away now but that doesn't mean
    that I am
    > adhereing
    > to conventions. What I was doing was selecting 'Layout
    Table' to enclose
    > all
    > Images and text (and/or using 'Draw Layout Cell' as
    well), as opposed to
    > (1)
    > Using 'Layout Table' to set the page size, then (2)
    using 'Draw Layout
    > Cell' to
    > put the images and/or text in. What I am seeing now in a
    Browser (Safari)
    > is
    > matching up to what I am seeing in Dreamweaver. I don't
    think I fully
    > grasp the
    > differrence between 'Layout Table' and 'Draw Layout
    Cell'. I've been
    > reading in
    > the 'Help' and while it sheds some light it doesn't
    appear to be getting
    > through.
    >
    > Though the spacing of the images appears to be okay now,
    text is an issue.
    > I.e.,
    >
    > If I put:
    >
    > "The text will end here -------->" with the arrowhead
    at the rightmost
    > border
    > in Dreamweaver, when viewed in Safari it wraps to the
    second line even
    > though
    > within Dreamweaver I am not outside of the green
    frame....
    >
    > What is a recommended page size to start with, and set
    with which Tool?
    >
    > Finally, when I attempt to use Firefox to preview the
    page the following
    > error
    > is returned:
    >
    > File not found
    > Firefox can't find the file at /2 WD/NEW
    SITE/index.html.
    > * Check the file name for capitalization or other typing
    errors.
    > * Check to see if the file was moved, renamed or
    deleted.
    >
    > I purchased 'Dreamweaver 8 For Dummies' but apparently I
    transcend even
    > that!
    > ;-)
    >
    > The Code is attached, but please don't spend more than a
    quick moment;
    > this is
    > my problem and not yours!
    >
    > Thank you!
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    > <title>index</title>
    > <style type="text/css">
    > <!--
    > .style1 {font-family: "Gill Sans Light"}
    > .style2 {font-size: 36px}
    > body {
    > background-color: #666666;
    > }
    > -->
    > </style></head>
    >
    > <body>
    > <table width="1327" border="0" cellpadding="0"
    cellspacing="0">
    > <!--DWLayoutTable-->
    > <tr>
    > <td width="116" height="30"> </td>
    > <td width="136"> </td>
    > <td width="69"> </td>
    > <td width="264"> </td>
    > <td width="24"> </td>
    > <td width="107"> </td>
    > <td width="20"> </td>
    > <td width="234"> </td>
    > <td width="16"> </td>
    > <td width="338"> </td>
    > <td width="3"> </td>
    > </tr>
    > <tr>
    > <td height="41"> </td>
    > <td> </td>
    > <td> </td>
    > <td colspan="2" valign="top"><h1 align="center"
    class="style2"><span
    > class="style1">Fifth Avenue Digital
    </span></h1></td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td height="39"> </td>
    > <td> </td>
    > <td> </td>
    > <td></td>
    > <td></td>
    > <td></td>
    > <td></td>
    > <td></td>
    > <td></td>
    > <td></td>
    > <td></td>
    > </tr>
    > <tr>
    > <td height="47"> </td>
    > <td colspan="5" rowspan="4" valign="top"><img
    src="Images/main
    > image.jpg"
    > alt="main page cape cod" width="600" height="460"
    /></td>
    > <td> </td>
    > <td rowspan="2" valign="top"><img
    src="Images/9j.jpg" alt="router bit"
    > width="234" height="350" /></td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td height="303"> </td>
    > <td> </td>
    > <td> </td>
    > <td rowspan="2" valign="top"><img
    src="Images/06.jpg" alt="sand"
    > width="337" height="333" /></td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td height="30"> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    >
    >
    >
    >
    >
    >
    >
    > <tr>
    > <td height="80"></td>
    > <td></td>
    > <td></td>
    > <td></td>
    > <td></td>
    > <td></td>
    > </tr>
    >
    >
    >
    > <tr>
    > <td height="30"> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td height="77"> </td>
    > <td> </td>
    > <td colspan="2" rowspan="2" valign="top"><img
    src="Images/ramp.jpg"
    > alt="boat ramp rockport" width="333" height="500"
    /></td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td colspan="3" valign="top"
    nowrap="nowrap"><h1 align="left">This is
    > a
    > test of inputting text that is going</h1>
    > <h1 align="left">(new paragraph) to end right here
    --------&gt;
    > </h1></td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td height="424"> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    >
    >
    >
    > <tr>
    > <td height="179"> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >

  • Catching a table cell focused event

    I have a JTable that I want users to input data into. One of the columns is a date field. In order to make sure the date is formatted and entered correctly, I've used a custom cell editor and renderer so the column looks like a DateTextField(a custom date field class). It works fine when the user clicks on the cell. But if the user hits the down arrow it doesn't set off the event that allows it to be edited as a DateTextField. Can you capture somekind of focus event on a particular cell and when you get a focus gained, programatically send the event that allows the cell to be edited? In case that didn't make sense, I'm trying to programatically simulate a mouse click on a table cell when it gets focus. Can it be done? If so, how? Thanks.

    Yes, I've tried that. The problem is what some people have described as a bug. There are two editing methods for JTable cells. One happens if the cell gets focus. There is no cursor and any underlying components are ignored. The second(the REAL edit) is when there is a cursor and the JTable understands that the cell is really a DateTextField. The only way I've found to achieve this is click on the cell. The number of clicks it takes depends on what the clickCountToStart is set to. However, if it's set to zero, it still takes one click.

  • Can I place a button within a specific html table cell?

    Hi folks,
    Subject says it all, I'm trying to place a button in a specific table cell, and don't know how to do it. It's weird that apex has all of the items that you can code directly using apex_item, but not a button. Am I missing something simple?
    Any help would be appreciated,
    Regards,
    -Adam vonNieda

    Depending on what theme you are using the code that makes up a button will vary, some are only input items, some are three table cells. You can examine the source of your page to see what your theme does.
    I have successfully put the following code in a report column header.
    <input type="button" id="DELETE" onclick="doSubmit('DELETE');" value="Delete"/>I use this as the header for a column of check boxes, so the user can select records and delete the selected.
    What Theme are you using, and what do you want the button to do (just submit the page)

  • How to replace table cell elements position

    Hello Experts,
    I have a requirement where i have to replace the table cell elements at runtime.
    lets say for example i have a node structure  like this:
    Root Node
        table Node data
            cell 1 (Name)
            cell 2 (Description)
    Now once the table rendered on Adobe form let say it has 2 rows
    1st row : Test name1   |    Test description1
    2nd row: Test name2   |     Test description2
    now for display i have to show on form like this:
    1st row : Test name1            |     Test name2
    2nd row: Test description1   |     Test description2
    Constraint is i  cant change table node structure ,Now i was thinking if i could replace row 2 cell 1 ui element with row 1 cell 2 ui element at runtime in table without changing the mapped values.
    Please let me know how i can achieve this or if is there any alternative way to do this.
    Any inputs and help are most welcome.
    Thanks,
    Siddharth

    Hi Siddharth,
    You can achieve you requirement by creating table using subforms instead of using normal Table UI element.
    Create the Table structure this way.
    Table(Subform)     
    Row(Subform)
    Name (TextField)
    Description(TextField)
    Put the name and description field in single column. Bind the table subform with node Data and set  the property like this :
    Content : Flowed
    Flow Direction : Western Text
    also check the "Repeat the subform for Each Data item" property.
    Set the property of the Subform Row like this:
    Content : Flowed
    Flow Direction : top To bottom
    Bind the Name & Description text field with  the proper context.
    Thanks & regards
    Ravindra Singh

Maybe you are looking for

  • X11 crash

    Hi, X11 crashes after I logged in to remote server and launch the application. ssh -X user@servername matlab I got the following crash report: Process:               X11.bin [1775] Path:                  /Applications/Utilities/XQuartz.app/Contents/M

  • CS4 Web Gallery Limitations?

    Hi, I just tried building a web gallery using Bridge and, guess what, it seems to be limited to 10 images. I seem to remember a similar limitation in the 'test' version but I was sure they would fix it before the product went live. If somebody knows

  • Podcast feed not updating

    I have had a podcast posting once a week for the last month. All of a sudden this week's post hasn't updated either on my podcast app on my phone -- which in the past has updated immediately -- or on the iTunes site. Nothing appears to be different w

  • Installing Issues???

    Hey Everyone.. I installed the new windows media player on my macbook, but after installation under which application do we run the file?? It came up as windows media.stix file and when i try to run it, my mac asks me under which application do we ru

  • Downloading jar file

    hi, in my application i have to download a jar file from remote computer. my server program looks something like this.... java.net.ServerSocket s=new java.net.ServerSocket(22000); java.io.BufferedReader in=new java.io.BufferedReader(new java.io.Input