SetText in LostFocus event

Hi,
I'm trying to set the text in a textbox used as a table cell editor when it loses focus. Unfortunately though the .setText() command gets ignored although it does get run. If the textBox is not used as a cellEditor it works fine.
Does anyone know what might be going on here?
Simon

Once the focus is lost, I am seeing what the renderer displays rather than the contents of the text box directly but I was thinking that the underlying data should have been updated, so the renderer would show the last value entered in the text box.
I thought the editing may have been cancelled, but our code that manually stopped the editing wasn't being called, but it seems that the table was doing this itself before the text box lost the focus.
I now call the lost_focus code from the CellEditor in the method 'getCellEditorValue' which returns the text from the text box to the table, and this works fine.

Similar Messages

  • How can i catch the gotfocus and lostfocus events

    Hi Dear;
    i tried to catch the gotfocus and lostfocus events, but i can't.
    in the same code i can catch the onclick events.
    is there any special code for the gotfocus and lostfocus events?
    regards;

    Danny;
    Whenever I have an issue such as this I fire up the event logger and it will show you exactly which events you can put your hooks into.   If you are not using it you should really check it out.  Will save you tons of time.
    https://www.sdn.sap.com/irj/sdn/businessone-tools
    I know it's not the exact answer you were looking for but I hope it helps.
    Wayne

  • Table cell lostfocus event.

    I have a table column where user inputs some amount for calculation.
    I would like to call the calculation function everytime the value is entered.
    What's the best way to do so?
    I am thinking about ading lostfocus event to that column, but can anyone give me some direction about how to do add event to table column? (I defined my own TableModel)
    thank you.

    override the method setValueAt in your own-defined TableModel, like this
    public void setValueAt(Object value, int row, int col){
              if (value != null) {
                   fireTableCellUpdated(row, col);
                   if (!((String)value).trim().equals("")) {
                        //save data
                        savePC((String)value, row);
         }

  • How to handle LostFocus event for TextField in J2ME?

    Hi:
    I want to handle LostFocus event for TextField in J2ME.
    So can anybody help me.....
    Thank You

    MIDP API does not have LostFocus event.
    You can try setting ItemStateListener for the TextField ([if needed, click here for details|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/ItemStateListener.html]). API requires that +"...For implementations that have the concept of an input focus, the listener should be called no later than when the focus moves away from an item whose state has been changed. The listener should be called only if the item's value has actually been changed...."+

  • LostFocus Event

    Hi all,
    I am newbie to swings. I am having a problem when validating a JTextField for only characters, i am able to validate for characters and displaying a proper error message using JOptionPane.
    After the error message is displayed i am again keeping the focus back on to the same JTextField, here the error message is displaying repeatively for 4 to 5 times. i am pasting the code below.
    private void txtdaFocusLost(java.awt.event.FocusEvent evt) {                               
            if(validatenumeric(txtda.getText())) {
                txtda.setText("");
                txtda.requestFocus();
        }    and i am writing the code for validatenumeric below:
    public boolean validatenumeric(String num) {
            if(num.length()!=0)
                try {
                    Integer.parseInt(num);
                } catch(Exception e){
                    JOptionPane.showMessageDialog(null, "Enter data in Numeric Format", "Input Error", JOptionPane.ERROR_MESSAGE);
                    return true;
            return false;
        }

    Quit cluttering the forum, you posted this same question 4 minutes ago.
    What is SwingS? I thought this was the Swing forum.
    Use a JFormattedTextField, or add an InputVerifier to the text field.

  • Change Event

    Hi
    First I wanna say that i'm getting great support from this forum here -> Thanks!
    I've tried to catch change events of an editText-Control in the orderline - grid.
    It works when enter values manually but doesn't work when a default value get set (eg. after selecting an item).
    It's important that I get every changed/new value because I'll do some calculations with the current sum of those columns.
    For now I rely on LostFocus events on different columns just to make sure that i catch changes in one column that maybe doesn't get/lost Focus.
    And what about an rowChanged Event? Could be useful too.
    Greetings
    Phil

    Hi all,
    SBO fires VALIDATE event more than once and I use a trick:
    Public Instances as Integer
            If pVal.FormType = 140 Then  
               If pVal.ItemUID = "38" Then
                    If pVal.ColUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE And pVal.Before_Action = False Then
                        oForm = SBO_Application.Forms.GetFormByTypeAndCount(140, pVal.FormTypeCount)
                        oMatrix = oForm.Items.Item("38").Specific
                        GetIskaot(oForm, oMatrix, pVal.Row)
                    End If
                    End If
                    End If
        Private Sub GetIskaot(ByRef oForm As SAPbouiCOM.Form, ByRef oMatrix As SAPbouiCOM.Matrix, ByVal NRow As Integer)
            If Instances <> 0 Then Exit Sub
            Instances = 1
             Instances = 0
        End Sub
    It's a real example that works fine
    Regards,
    Mark
    Message was edited by: Mark Gulyansky

  • LostFocus problem

    Hi all, i'm having a problem with the lostFocus Event.
    I java JTextField that on its onlostFocus event calls a webservice, and it displays the result with JOptionPane.showMessageDialog.
    and the lostFocus event executes again and again when the ok button is pressed on the dialog.
    thank a lot

    Hi all, i'm having a problem with the lostFocus
    Event.
    I java JTextField that on its onlostFocus event calls
    a webservice, and it displays the result with
    JOptionPane.showMessageDialog.
    and the lostFocus event executes again and again when
    the ok button is pressed on the dialog.
    thank a lotWhaddayamean thank(ed) a lot ... we didn't do it! Seriously, without 'seeing' the code, I'd say you need a requestFocus() method call on that JTextArea.

  • JTextField does not visualize the text!

    Hello everybody,
    i have a problem with JtextFields.
    I have a Jtable with a ColumnHeader that contains a Button, a combobox and a JTextField.
    Normally i have 3 columns. When i try to move from a textfield to another textfield i can write in this one but the text is not visualized and i do not se the cursor in it.
    If i click a second time in the textfield, then the text gets visible.
    Here after the code of my UIText which extends JTextField.
    package com.wuerth.phoenix.ui;
    import com.wuerth.phoenix.ui.lov.*;
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import com.wuerth.phoenix.ui.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import java.util.Locale;
    import java.text.*;
    import com.wuerth.phoenix.util.PString;
    * This object is a generic ui field. Use them to get alphanumeric
    * text.
    * @author ing. Davide Montesin '99<BR><i>[email protected]</i>
    public class UIText extends JTextField implements TextEditor, PhoenixUIElement, FocusListener, KeyListener, ActionListener
    private DefaultPhoenixUIElement dui;
    // This object (is) was used by updateCorrect to find the correct background color
    // It is used for UIComboBox too.
    // protected final JTextField _jtextfield = new JTextField();
    // Background Color (mtm 010327 - UI Bug)
    private Dimension _preferredSize = null;
    private boolean _onlyUpperCase = false;
    String _oldText;
    * Construct a new UIText with the default length(15).
    public UIText()
    this(15);
    * Construct a new UIText with the specified length.
    public UIText(int length)
    super(length);
    setOnlyUpperCase(UIConfiguration.get().isUITextOnlyUpperCase());
    this._oldText = "";
    this.dui = new DefaultPhoenixUIElement(this);
    this.addFocusListener(this);
    this.addKeyListener(this);
    this.addActionListener(this);
    * Set to true if the object should return only uppercase String. This method
    * have priority over the UIConfiguration.
    * @param c if true the getAsText method will return a uppercase string.
    * @see com.wuerth.phoenix.UIConfiguration#setUITextOnlyUpperCase
    public void setOnlyUpperCase(boolean c)
    _onlyUpperCase = c;
    * Tell the object that this field is required. The field use warning color and error color
    * to tell to the user this requireness.
    public void setRequired(boolean r)
    this.dui.setRequired(r);
    this.updateCorrect();
    * @see setRequired
    public boolean getRequired()
    return this.dui.getRequired();
    * Set the mode for the element. Valid modes are: PhoenixUIElement.INSERT,
    * PhoenixUIElement.LOOKUP AND PhoenixUIElement.FIND. The mode influence the
    * validation process.
    public void setMode(int m)
    this.dui.setMode(m);
    this.updateCorrect();
    * @see setMode
    public int getMode()
    return this.dui.getMode();
    * Use this method to tell this object if it contain semantically correct value. The element
    * itself can't control if semantic is correct. It is responsability of the parent to check
    * semantic of the UIElements value. This method is a way to display that a ArticleNumber is
    * not correct.
    public void setSemanticCorrect(boolean c)
    this.dui.setSemanticCorrect(c);
    this.updateCorrect();
    * @see setSemanticCorrect
    public boolean getSemanticCorrect()
    return this.dui.getSemanticCorrect();
    * This method check if at the moment the uielement is corect at all: syntatically,
    * per range, semantically and requireness.
    * The window can use this method to check if the form can be saved or not.
    public boolean isCorrect()
    return this.dui.isCorrect();
    * This method tell the object to syncronize layout
    * information with the correctness informazion. For example, if
    * the uielement contain a wrong value then after calling this
    * method you are shoure that the background is red(error).
    * <BR>
    * The uiobject itself should call this object at most in this two case:
    * If the lostFocus event fires<BR>
    * If the content of the field is erased.
    // WARNING_COLOR and ERROR_COLOR have priority over
    // EDITABLE_COLOR and NOTEDITABLE_COLOR. (mtm 010327 - UI Bug)
    public void updateCorrect()
    // fire the propertyChange event if necessary before update
    // layout aspect.
    fireUpdate();
    if (isCorrect())
    // (mtm 010327 - UI Bug) Original version.
    // _jtextfield.setEditable(this.isEditable());
    // this.setBackground(_jtextfield.getBackground());
    // this.repaint();
    // Select between EDITABLE and NOTEDITABLE Colors
    setBackground(isEditable() ? EDITABLE_COLOR : NOTEDITABLE_COLOR);
    repaint();
    else
    if (getText().length() == 0)
    // Null object
    setBackground(WARNING_COLOR);
    else
    // Not null object
    setBackground(ERROR_COLOR);
    repaint();
    _setTooltipIfNeeded();
    } // updateCorrect() priority: WARNING_COLOR, ERROR_COLOR */
    * This method tell the object to syncronize layout
    * information with the correctness informazion. For example, if
    * the uielement contain a wrong value then after calling this
    * method you are shoure that the background is red(error).
    * <BR>
    * The uiobject itself should call this object at most in this two case:
    * If the lostFocus event fires<BR>
    * If the content of the field is erased.
    // In this version EDITABLE_COLOR and NOTEDITABLE_COLOR have priority over
    // WARNING_COLOR and ERROR_COLOR.
    public void updateCorrect()
    // fire the propertyChange event if necessary before update
    // layout aspect.
    fireUpdate();
    if (isEditable())
    if (isCorrect())
    setBackground(EDITABLE_COLOR);
    else
    setBackground(getText().length() == 0 ? WARNING_COLOR : ERROR_COLOR);
    else
    setBackground(NOTEDITABLE_COLOR);
    repaint();
    _setTooltipIfNeeded();
    } // updateCorrect() priority: EDITABLE_COLOR, NOTEDITABLE_COLOR/*
    * Overriden setEditable to set editable or not editable Background colors
    * (mtm 010327 - UI Bug)
    public void setEditable(boolean ed)
    super.setEditable(ed);
    // EDITABLE_COLOR and NOTEDITABLE_COLOR have priority over
    // WARNING_COLOR and ERROR_COLOR
    //setBackground(ed ? EDITABLE_COLOR : NOTEDITABLE_COLOR);
    //repaint();
    * Method from FocusListener interface.
    public void focusGained(FocusEvent e)
    System.out.println("show caret");
    setEditable(true);
    Caret caret = getCaret();
    System.out.println(caret);
    caret.setVisible(true);
    //moveCaretPosition(getText().length());
    enableInputMethods(true);
    * Method from FocusListener interface.
    public void focusLost(FocusEvent e)
    // Control if it is all ok
    // Format the field
    if (!e.isTemporary())
    // Make automatic completition when the user leave the field
    enter();
    public void processKeyEvent(KeyEvent e)
    char newKey = e.getKeyChar();
    if (_onlyUpperCase)
    newKey = Character.toUpperCase(e.getKeyChar());
    super.processKeyEvent(new KeyEvent(this, e.getID(), e.getWhen(), e.getModifiers(), e.getKeyCode(), newKey));
    e.consume();
    public void keyTyped(KeyEvent e)
    public void keyPressed(KeyEvent e)
    if (e.getKeyCode() == e.VK_F9)
    if (this.dui.getLOV() != null)
    this.dui.getLOV().addActionListener(this);
    this.dui.getLOV().start(this);
    public void keyReleased(KeyEvent e)
    public void actionPerformed(ActionEvent ae)
    if (ae.getSource() == this)
    enter();
    else
    this.dui.getLOV().removeActionListener(this);
    if (this.dui.getLOV().getValue() != null)
    javax.swing.FocusManager.getCurrentManager().focusNextComponent(this);
    dui.fireEditingCompleted(this);
    //--------------- controlla dimensione del testo... mi sembra pesantuccio!-----------------//
    // FontMetrics fm = this.getGraphics().getFontMetrics(this.getFont());
    FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(this.getFont());
    private void _setTooltipIfNeeded()
    String text = this.getText();
    int tWidth = fm.stringWidth(text);
    int cWidth = this.getSize().width;
    if(tWidth>cWidth && cWidth>0)
    this.setToolTipText(text);
    else
    this.setToolTipText(null);
    * JTextField setText method redefined to perform validation.
    public void setText(String text)
    if (_onlyUpperCase && text !=null)
    text = text.toUpperCase();
    super.setText(text);
    if ((this.getLOV() != null))
    if (this.getLOV().isWorking())
    return;
    updateCorrect();
    setCaretPosition(0);
    dui.fireEditingCompleted(this);
    * Sets the current text.
    public void setValue(String text)
    setAsText(text);
    * Returns the current text.
    public String getValue()
    return getAsText();
    public void setAsText(String text)
    this.setText(text);
    public String getAsText()
    String ret = this.getText();
    if (_onlyUpperCase)
    ret = ret.toUpperCase();
    return PString.trim(ret);
    public void setLOV(LOVWindow lw)
    this.dui.setLOV(lw);
    this.updateCorrect();
    public LOVWindow getLOV()
    return this.dui.getLOV();
    public Dimension getMinimumSize()
    if (_preferredSize == null)
    _preferredSize = super.getPreferredSize();
    return _preferredSize;
    public Dimension getPreferredSize()
    if (_preferredSize == null)
    _preferredSize = super.getPreferredSize();
    return _preferredSize;
    public void setColumns(int colno)
    // invalidate cached data
    super.setColumns(colno);
    _preferredSize = null;
    private void fireUpdate()
    boolean oldSemanticCorrect = this.dui.getSemanticCorrect();
    this.dui.setSemanticCorrect(true);
    boolean correct = this.isCorrect();
    this.dui.setSemanticCorrect(oldSemanticCorrect);
    if ((correct == false) && (this.getAsText().trim().length() != 0))
    return;
    String localOldText = this._oldText;
    this._oldText = this.getAsText();
    firePropertyChange(PhoenixUIElement.ASTEXT_PROPERTY_NAME,localOldText,this._oldText);
    * Inform the component that the editing is completed.
    public void enter()
    if ((this.getMode() == PhoenixUIElement.LOOKUP) && (this.getLOV() != null) && (this.getAsText().length() != 0))
    this.getLOV().isCorrectAuto(this);
    updateCorrect();
    dui.fireEditingCompleted(this);
    * This event is common to all uielement. The event editingCompleted is
    * fired each time the editing reach a complete form. Each swing ui element
    * has a different event to inform that the editing is completed: actionPerformed
    * on the JText, ItemSelected on the JList, focusLost to all elements.
    * <P>
    * <PRE><CODE>
    * actionPerformed focusLost itemsSelected ... enter()
    * \ | / /
    * \ | / _________/
    * \ | / ______/
    * editingCompleted <---------------- setAsText()
    * |
    * |
    * setRequired() ---> updateCorrect
    * setMode() ------/ |
    * |
    * |
    * propertyChange (ASTEXT)
    * </CODE></PRE>
    * Each specific event is mapped on the editingCompleted event. The editing
    * complete event fires an updateCorrect method's call. The updateCorrect
    * fires a propertyChange event if, and only if, the content of
    * the ui element is changed.
    public void addEditingListener(EditingListener ee)
    dui.addEditingListener(ee);
    * Removes the editingListener.
    public void removeEditingListener(EditingListener ee)
    dui.removeEditingListener(ee);
    * This method can be used as common way to set the value for
    * the ui element throught an object. If the object is of the
    * wrong type (like Date for a numeric) no set is made.
    public Object getAsObject()
    return this.getAsText();
    * Return the value in the field as object. For example UIDate return
    * a date object, UINumeric a Double object, UICheckBox a Boolean object, ecc.
    public void setAsObject(Object o)
    if (o instanceof String)
    this.setAsText((String)o);
    * Returns true if the editor is empty. False otherwise.
    public boolean isNull()
    return (this.getAsText().length() == 0);
    * Return the component associated with this editor. In the most cases
    * this is returned.
    public Component getComponent()
    return this;
    public String format(Object o, String pattern)
    return o.toString();
    public String format(Object o, String pattern, Locale l)
    return o.toString();
    public Object parse(String text) throws ParseException
    return text;
    public Object parse(String text, Locale l) throws ParseException
    return text;
    public String getPattern()
    return "";
    public int getAlignment()
    return JLabel.LEFT;
    public Object clone()
    UIText clone = new UIText();
    clone.setText(getText());
    return clone;
    try
    catch (CloneNotSupportedException cnse)
    throw new RuntimeException("Clone not supported?");
    private boolean _noFirePropertyChange = false;
    public void addNotify()
    _noFirePropertyChange = true;
    super.addNotify();
    _noFirePropertyChange = false;
    protected void firePropertyChange(String propertyName,Object oldValue,Object newValue)
    if (!_noFirePropertyChange)
    //System.out.println("NO!");
    if (propertyName.equals("ancestor"))
    return;
    super.firePropertyChange(propertyName, oldValue, newValue);
    public String getMultilangCode()
    return dui.getMultilangCode();
    public String getTooltipMultilangCode()
    return dui.getTooltipMultilangCode();

    Can you explain what are you trying to copy and where?
    Can't you copy text from website to the clipboard or do you have a problem with pasting that text?
    * http://kb.mozillazine.org/Clipboard_not_working

  • Applet notinited .. it runs in eclipse, but not in web browser --urgent

    hi,
    firstly i'm sorry for the "urgent" remark in the title, but I actually really need some help to this problem, since I have to pass up this assignment in about 2 more hours.
    on to the question,this is my full code:
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    public class reza extends JApplet{
         public static void main(String[] args){
              JFrame myWindow = new JFrame("Sample reza");
              myWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              reza testReza = new reza();
              myWindow.setContentPane(testReza);//add to the window
              myWindow.pack();
              myWindow.setVisible(true);
         double sum;     //sum of values entered by user
         private ImageIcon board;
         private JPanel topPanel,boardPanel;
         private JLabel l1,l2,l3,l4,l5,l6,lTotal,lAndryusha,lBorya,lVolodya,lGiveUp,lGiveUp2,boardLabel,lRules;
         private JTextField a[],aTotal, b[], bTotal, c[], cTotal;
         private JButton clear,checkAnswer,solve;
         private Container container;
         String A1,A2,A3,A4,A5,A6,ATOTAL,B1,B2,B3,B4,B5,B6,BTOTAL,C1,C2,C3,C4,C5,C6,CTOTAL;
         public reza(){
              container = getContentPane();
             container.setLayout(new BorderLayout());
             topPanel = new JPanel(new GridLayout(6,8,5,5));
             boardPanel = new JPanel(new GridLayout(1,2,5,5));
             board = new ImageIcon("board.jpg");
             boardLabel = new JLabel(board);
             topPanel.setBackground(Color.WHITE);
             boardPanel.setBackground(Color.white);
             //utk handle button clear ngan solve
             ButtonHandler handler = new ButtonHandler();
             lGiveUp = new JLabel("           Give up?");
             lGiveUp2 = new JLabel("Press this >>>");
             lRules = new JLabel("Rules: User may only use the number shown in the dart board");
             l1 = new JLabel("   1");
             l2 = new JLabel("   2");
             l3 = new JLabel("   3");
             l4 = new JLabel("   4");
             l5 = new JLabel("   5");
             l6 = new JLabel("   6");
             lTotal = new JLabel("   Total");
             lAndryusha = new JLabel("Andryusha");
             lBorya = new JLabel("Borya");
             lVolodya = new JLabel("Volodya");
             a = new JTextField[7];
             b = new JTextField[7];
             c = new JTextField[7];
             aTotal = new JTextField();
             bTotal = new JTextField();
                cTotal = new JTextField();
                clear = new JButton("CLEAR");
             solve = new JButton("SOLVE");
             checkAnswer = new JButton("ANSWER");
             topPanel.add(new JLabel("       "));
             topPanel.add(l1);
             topPanel.add(l2);
             topPanel.add(l3);
             topPanel.add(l4);
             topPanel.add(l5);
             topPanel.add(l6);
             topPanel.add(lTotal);
             topPanel.add(lAndryusha);
             int i=1;
             for (i=1;i<=6;i++){
                  a[i] = new JTextField();
                  a.getDocument().addDocumentListener(new textFieldListenerA());
              topPanel.add(a[i]);
         topPanel.add(aTotal);
         topPanel.add(lBorya);
         for (i=1;i<=6;i++){
              b[i] = new JTextField();
              b[i].getDocument().addDocumentListener(new textFieldListenerB());
              topPanel.add(b[i]);
         topPanel.add(bTotal);
         topPanel.add(lVolodya);
         for (i=1;i<=6;i++){
              c[i] = new JTextField();
              c[i].getDocument().addDocumentListener(new textFieldListenerC());
              topPanel.add(c[i]);
         topPanel.add(cTotal);
         clear.addActionListener(handler);
         solve.addActionListener(handler);
         checkAnswer.addActionListener(handler);
         topPanel.add(new JLabel(" "));
         topPanel.add(new JLabel(" "));
         topPanel.add(new JLabel(" "));
         topPanel.add(new JLabel(" "));
         topPanel.add(new JLabel(" "));
         topPanel.add(new JLabel(" "));
         topPanel.add(clear);
         topPanel.add(solve);
         topPanel.add(new JLabel(" "));
         topPanel.add(lGiveUp);
         topPanel.add(lGiveUp2);
         topPanel.add(checkAnswer);
         topPanel.add(new JLabel(" "));
         topPanel.add(new JLabel(" "));
         topPanel.add(new JLabel(" "));
         topPanel.add(new JLabel(" "));
         boardPanel.add(boardLabel,BorderLayout.WEST);
         boardPanel.add(lRules,BorderLayout.EAST);
         container.add(boardPanel,BorderLayout.NORTH);
         container.add(topPanel,BorderLayout.CENTER);
         setSize(750,700);
         setVisible(true);
         class textFieldListenerA implements DocumentListener{
              public void insertUpdate(DocumentEvent e){
                   int i,count=0;
                   for (i=1;i<=6;i++){
                        try{                    
                             count = count + Integer.parseInt(a[i].getText());
                        }catch(Exception e1){
                   aTotal.setText("" + count);
              public void changedUpdate(DocumentEvent e){
              public void removeUpdate(DocumentEvent e){               
         class textFieldListenerB implements DocumentListener{
              public void insertUpdate(DocumentEvent e){
                   int i,count=0;
                   for (i=1;i<=6;i++){
                        try{                    
                             count = count + Integer.parseInt(b[i].getText());
                        }catch(Exception e1){                         
                   bTotal.setText("" + count);
              public void changedUpdate(DocumentEvent e){
              public void removeUpdate(DocumentEvent e){               
         class textFieldListenerC implements DocumentListener{
              public void insertUpdate(DocumentEvent e){
                   int i,count=0;
                   for (i=1;i<=6;i++){
                        try{                    
                             count = count + Integer.parseInt(c[i].getText());
                        }catch(Exception e1){
                   cTotal.setText("" + count);
              public void changedUpdate(DocumentEvent e){
                   int i,count=0;
                   for     (i=1;i<=6;i++){
                        try{                    
                             count = count + Integer.parseInt(c[i].getText());
                        }catch(Exception e1){
                   cTotal.setText("" + count);
              public void removeUpdate(DocumentEvent e){
                   int i,count=0;
                   for (i=1;i<=6;i++){
                        try{                    
                             count = count + Integer.parseInt(c[i].getText());
                        }catch(Exception e1){
                   cTotal.setText("" + count);
         private class ButtonHandler implements ActionListener{
              //handle button event
              public void actionPerformed(ActionEvent event){
                   //clear all the text fields
                   if (event.getActionCommand().equals("CLEAR")){
                        int i=0;
                        for (i=1;i<=6;i++){
                             a[i].setText("");
                        aTotal.setText("");
                        for (i=1;i<=6;i++){
                             b[i].setText("");
                        bTotal.setText("");
                        for (i=1;i<=6;i++){
                             c[i].setText("");
                        cTotal.setText("");                    
                   else if (event.getActionCommand().equals("SOLVE")){
                        int aCount[],bCount[],cCount[],i,aTotal=0,bTotal=0,cTotal=0;
                        aCount = new int[7];
                        bCount = new int[7];
                        cCount = new int[7];
                        //make sure all fields have been filled in
                        if (a[1].getText().equals("") || a[2].getText().equals("") || a[3].getText().equals("")|| a[4].getText().equals("")|| a[5].getText().equals("")|| a[6].getText().equals("")|| b[1].getText().equals("")|| b[2].getText().equals("")|| b[3].getText().equals("")|| b[4].getText().equals("")|| b[5].getText().equals("")|| b[6].getText().equals("")|| c[1].getText().equals("")|| c[2].getText().equals("")|| c[3].getText().equals("")|| c[4].getText().equals("")|| c[5].getText().equals("")|| c[6].getText().equals("")){
                             JOptionPane.showMessageDialog(null,"Please fill in ALL the scores!!");
                        //if yes, then only proceed
                        else{
                             //for andryusha
                             for (i=1;i<=6;i++){
                                  try{
                                       aCount[i] = Integer.parseInt(a[i].getText());
                                       aTotal = aTotal + aCount[i];
                                  }catch(Exception e1){
                             //check andryusha's 1st and 2nd shots. They must be equal to 22 when added
                             if (aCount[1] + aCount[2] != 22){
                                  JOptionPane.showMessageDialog(null,"Andryusha's 1st + 2nd shots must be equal to 22!!");
                             if (aTotal==71){
                                  JOptionPane.showMessageDialog(null,"Andryusha's scores is right! Well done!!");
                             }else if (aTotal !=71){
                                  JOptionPane.showMessageDialog(null,"You got it wrong for Andryusha's scores. Please try again.");
                             //for Borya
                             for (i=1;i<=6;i++){
                                  try{
                                       bCount[i] = Integer.parseInt(b[i].getText());
                                       bTotal = bTotal + bCount[i];
                                  }catch(Exception e1){
                             if (bTotal==71){
                                  JOptionPane.showMessageDialog(null,"Borya's scores is right! Well done!!");
                             }else if (bTotal !=71){
                                  JOptionPane.showMessageDialog(null,"You got it wrong for Borya's scores. Please try again.");
                             //for Volodya
                             for (i=1;i<=6;i++){
                                  try{
                                       cCount[i] = Integer.parseInt(c[i].getText());
                                       cTotal = cTotal + cCount[i];
                                  }catch(Exception e1){
                             if (cCount[1] != 3){
                                  JOptionPane.showMessageDialog(null,"Volodya's first score is wrong!!");
                             if (cTotal==71){
                                  if (cCount[2] == 50 || cCount[3] == 50 || cCount[4] == 50 || cCount[5]==50 || cCount[6]==50){
                                       JOptionPane.showMessageDialog(null,"Volodya's score is right! Well done!!");
                                  }else if (cCount[2] != 50 && cCount[3] != 50 && cCount[4] != 50 && cCount[5]!=50 && cCount[6]!=50){
                                       JOptionPane.showMessageDialog(null,"Volodya hits the bull's eye once!!");
                             }else if (cTotal!=71){
                                  JOptionPane.showMessageDialog(null,"Volodya's score is wrong!!");
                   }else if(event.getActionCommand().equals("ANSWER")){
                        a[1].setText("20");
                        a[2].setText("2");
                        a[3].setText("25");
                        a[4].setText("3");
                        a[5].setText("20");
                        a[6].setText("1");
                        aTotal.setText("71");
                        b[1].setText("25");
                        b[2].setText("20");
                        b[3].setText("20");
                        b[4].setText("3");
                        b[5].setText("2");
                        b[6].setText("1");
                        bTotal.setText("71");
                        c[1].setText("3");
                        c[2].setText("50");
                        c[3].setText("10");
                        c[4].setText("5");
                        c[5].setText("2");
                        c[6].setText("1");
                        cTotal.setText("71");
         }//end private class ButtonHandler
    I run the program using Eclipse; run as> Java applet
    and in runs perfectly well. I then tried running it using internet explorer and firefox, but only a gray box appeared and the browser says "applet notinited" and "Loading Java Applet Failed.."
    what did i do wrong? any help is really appreciated.. thanks

    thank God i already found the cause of the problem..
    it's because the application has an ImageIcon which links to a local jpeg file, so perhaps security restriction on the browser doesn't allow my applet to access local file, that's why it fails to load.
    either using signed applet (not tested) or removing the picture solved my problem.
    thanks anyway :)

  • Is this a Bug?: FocusListener called twice

    Hey all,
    Im having this problem since realease 1.4.2_04.
    Folks, try this code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class FocusTest {
        public static void main(String[] args) {
            JFrame frame  = new JFrame("Focus test");
            final JTextField field1 = new JTextField("Test1");
            final JTextField field2 = new JTextField("Test2");
            field1.addFocusListener(new FocusAdapter(){
                public void focusGained(FocusEvent e){}
                public void focusLost(FocusEvent e){
                    if( !e.isTemporary() ){
                        System.out.println("ID: " + e.getID());
                        JOptionPane.showMessageDialog(null, "Focus lost in 1");
                        field1.requestFocus();
            frame.getContentPane().add(field1, BorderLayout.WEST);
            frame.getContentPane().add(field2, BorderLayout.CENTER);
            frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            frame.setBounds(0,0,200,300);
            frame.show();
    } The problem is: when TF1 looses its focus, and is validated, then i force the focus to keep on TF1 by calling TF1.requestFocus(), somehow the event focusLsot is called twice for my TF.
    If i do not requestFocus() it work but I must force the focus on TF1.
    Im going nuts. Does anyonw apear to have this problems?? In old realeses, the same code work perfect. until 1.4.2 beta.
    Tks
    Bruno

    Hello all!
    I found out that somehow JDialog with requestfocus after, fires twice the lostFocus event. I dont know why. I opened a bug report so they can figure it out why is happaning.
    Tks folks!
    Bruno

  • How to do addition of two columns cells in Matrix.

    Hi All,
    I tried following code on LostFocus event of Mtrix. I want to do addition of two columns cells of matrix and addtion display in third column. I tried the following code but in this I am getting the column value and when i enterd any value in columns cells it disappear when i move to next column cells.
    Can anybody suggest me how to do it ?
    Dim i As Integer
                Dim v1, v2 As String
                matrix.Columns.Item("V_4").DataBind.SetBound(True, "", "matrixds")
                If pVal.ColUID = "V_4" Then
                    For i = 0 To matrix.RowCount - 1
                        v1 = matrix.Columns.Item("V_5").Cells.Item(i + 1).Specific.Value
                        v2 = matrix.Columns.Item("V_4").Cells.Item(i + 1).Specific.Value
                        Dim v3 As Integer = CInt(v1) + CInt(v2)
                        matrix.Columns.Item("V_3").Cells.Item(i + 1).Specific.Value = v3.ToString()
                    Next
                End If
    Thanks and Regards,

    Hi,
    u bind all the columns to the datasource in the matrix.then the value does not disappear.
    Change ur code as follows:
    Use the databind in formload
    matrix.Columns.Item("V_4").DataBind.SetBound(True, "", "matrixds1")
    matrix.Columns.Item("V_5").DataBind.SetBound(True, "", "matrixds2")
    matrix.Columns.Item("V_3").DataBind.SetBound(True, "", "matrixds3")
    Dim v1, v2 As sapbouicom.edittext
    If pVal.ColUID = "V_4" Then
    v1 = matrix.Columns.Item("V_5").Cells.Item(pVal.row).Specific
    v2 = matrix.Columns.Item("V_4").Cells.Item(pVal.row).Specific
    v3=  matrix.Columns.Item("V_3").Cells.Item(pVal.row).Specific
    v3.Value = v1 .Value + v2.Value
    End If
    Kind Regards
    Mohana

  • How to send output to a specific field?

    Can someone point me in the right direction to get an output from a caculation to go into a specific Jtext field? What I want it to do is gather the info from what the user puts in the fields, then the program does the calculation, then out put the calculation to another text field.
    thanks!
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    public class Mortgage5 extends JFrame implements ItemListener, ActionListener {
        // set up row 1
        JPanel row1 = new JPanel();
        JLabel principleLabel = new JLabel("Please enter your Principle with no commas: ", JLabel.RIGHT);
        JTextField principle = new JTextField(10);
        //set up row 2
        JPanel row2 = new JPanel();
        JLabel termLabel = new JLabel("Please enter the term of the loan in years: ", JLabel.RIGHT);
        JTextField term = new JTextField(10);
        //set up row 3
        JPanel row3 = new JPanel();
        JLabel aprLabel = new JLabel("Please enter your interest rate then press the enter key: ", JLabel.RIGHT);
        JTextField apr = new JTextField(10);
        //set up row 4 the monthly payment output
        JPanel row4 = new JPanel();
        JLabel paymentLabel = new JLabel("Here is your monthly payment: ", JLabel.RIGHT);
        JTextField payment = new JTextField(10);
        //setup row 5 clear or exit
        JPanel row5 = new JPanel();
        JButton calculate = new JButton("Caculate Monthly Payments");
        JButton clear = new JButton("Clear Fields");
        JButton quit = new JButton("Quit");
        public Mortgage5() {
            super("Mortgage Calculator");
            setSize(600, 500);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            GridLayout layout = new GridLayout(5, 1, 10, 5);
            Container pane = getContentPane();
            pane.setLayout(layout);
            FlowLayout layout1 = new FlowLayout(FlowLayout.LEFT, 10, 10);
            row1.setLayout(layout1);
            row1.add(principleLabel);
            row1.add(principle);
            pane.add(row1);
            FlowLayout layout2 = new FlowLayout(FlowLayout.LEFT, 10, 10);
            row2.setLayout(layout2);
            row2.add(termLabel);
            row2.add(term);
            pane.add(row2);
            FlowLayout layout3 = new FlowLayout(FlowLayout.LEFT, 10, 10);
            row3.setLayout(layout3);
            row3.add(aprLabel);
            row3.add(apr);
            pane.add(row3);
            FlowLayout layout4 = new FlowLayout(FlowLayout.LEFT, 10, 10);
            row4.setLayout(layout4);
            row4.add(paymentLabel);
            row4.add(payment);
            pane.add(row4);
            FlowLayout layout5 = new FlowLayout(FlowLayout.CENTER, 10, 10);
            row5.setLayout(layout5);
            row5.add(calculate);
            row5.add(clear);
            row5.add(quit);
            Mortgage5.this.setVisible(false);
            pane.add(row5);
            setVisible(true);
            //Add Listeners
            calculate.addActionListener(this);
            clear.addActionListener(this);
            quit.addActionListener(this);
            principle.addActionListener(this);
            term.addActionListener(this);
            apr.addActionListener(this);     
        public static void main(String[] arguments) {
            Mortgage5 frame = new Mortgage5();
        public void actionPerformed(ActionEvent event) {
            if (event.getSource().equals(clear)) {
                principle.setText(null);
                term.setText(null);
                apr.setText(null);
                payment.setText(null);
            if (event.getSource().equals(quit)) {
                System.exit(0);
            if (event.getSource().equals(calculate)) {    
                double interestRate = Integer.parseInt(apr.getText());
                int loanYears = Integer.parseInt(term.getText());
                double prin = Integer.parseInt(principle.getText());
                //double principle;
                double month_payment;
                double monthlyinterest;
                int months;
                //allows for currency format
                //NumberFormat formatter = NumberFormat.getCurrencyInstance(Locale.US);
                monthlyinterest = (interestRate / 12)/100;          //monthly interest
                months = (loanYears * 12);
                //monthly payment calculation
                month_payment = (prin * monthlyinterest) / (1-Math.pow(1 + monthlyinterest, - months));      
        public void itemStateChanged(ItemEvent event) {
    }

    payment.setText(""+month_payment);
    or
    payment.setText(Double.toString(month_payment));
    or
    payment.setText(new DecimalFormat("###,###.##").format(month_payment));

  • Setting Focus In Textarea

    Ok,
    I have a java program I've bundled into a jar and then packaged into a Win32 executable. I have windows associate a particular filetype (.wri) to my program.
    When I click a .wri file and open it, it loads data to a textarea. Now when I scroll down the textarea and finally click in the textarea, it resets me to the top of the textarea. Now, if I open the executable first, then go through the program to open a .wri file, I can scroll down to the bottom of the textarea, click in the textarea and I do not get reset to the beginning. I need a way to prevent the resetting of the textarea. I've tried using some of the Window methods for setting Focus, but none seem to work. Any ideas why this is happening via the one way and not the other. I'm open to any ideas. This known bug frustrates many because the .wri files being opened have over 1000 lines of text. Thanks in advance!

    i think yu can use setFocus by using lostFocus event.
    use Focuslost()

  • Campus store program,help!

    Hi Folks,
    I have a probem with the following code. I am new to Java Programmimg. Can anybody help me please!
    This application launches a window where the sales person can enter the items purchased. At the click of Next Item( b1), the screen is cleared to enter the next item and the transaction is processed. when receipt i(b2)s clicked, the details of the transactions are displayed. When summary button is clicked(b3) the details of the day's total transactions are displays. I have the following problems.
    The title of the receipt is not displayed once the receipt textarea is cleared, but the transaction is displayed. I also stored the cost in a variable called Tcost (Tcost = Tcost + cost). I initilized Tcost = 0.0 It either displays the cost or 0.0 value but not the total cost. I am able to display the summary but when i click the 2nd time, it displays twice.
    How do I calculate the total tax for the summary report and Cost and tax in receipt?
    Please help!
    Thanks.
    import java.awt.FlowLayout;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class ProductFrame1 extends JFrame implements ActionListener
         private JLabel label;
         private JLabel label1;
         private JLabel label2;
         private JTextField text1;
         private JTextField text2;
         private JTextArea receipt;
         private JTextArea sum;
         private JButton b1;
         private JButton b2;
         private JButton b3;
         double summary[] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
         int prdcode[] = {100,200,300,400,500,600};
         String item[] = {"White Bandana ", "Green License Plate",
    "Green Sweat Shirt ", "Low Profile hat ", "Gym Shorts ",
    "Printed Golf Balls "};
         double unitprice[] = {4.98, 5.99, 24.99,17.98,16.98,8.99};
         double salestax [] = {0.0,3.5,7.2,4.0,4.2,0.0};
         public ProductFrame1()
              super( "CAMPUS STORE");
              setLayout( new FlowLayout
    FlowLayout.CENTER,200,10));
              label = new JLabel("CAMPUS STORE");
              add(label);
              label1 = new JLabel("Product code:");
              add(label1);
              text1 = new JTextField( 3 );
              add(text1);
         label2 = new JLabel(" Quantity: ");
              add(label2);
              text2 = new JTextField( 4 );
              add(text2);
              b1 = new JButton("Next Item");
              add(b1);
              b2 = new JButton("Receipt");
              add(b2);
              b3 = new JButton("Summary");
              add(b3);     
              receipt = new JTextArea(20,35);
         receipt.append(" Campus Store Sales Receipt \n\n");
              receipt.append(" ItemName\t\tQuantity\tUnitPrice\tCost \n");
              sum = new JTextArea(20,35);
              sum.append(" Campus shop Daily Sales Summary \n\n");
              sum.append(" Items\t\t\tSales \n");
              //register event handlers
              text1.addActionListener( this );
              text2.addActionListener( this );
              b1.addActionListener( this );
              b2.addActionListener( this );
              b3.addActionListener( this );
         public int Search( int arr[], int key)
              for(int c=0; c<arr.length;c++)
                   if(arr[c] == key)
                   return c;
              return -1;
         public void actionPerformed( ActionEvent event )
              String string = "";     
              int row,qty1;     
              String rectotal;
              String output;
              double Tcost = 0.0;          
              double cost;
              double tax = 0.0;
              double total = 0.0;     
              if (event.getSource() == b1)
              row = Search( prdcode, Integer.parseInt(text1.getText()));
              qty1 = Integer.parseInt( text2.getText());
         cost = qty1* unitprice[row];
              //Tcost = Tcost + cost;
    // accumulate receipt totals as well as summary total
         summary[row] = summary[row] + cost;
                   //tax[row] = tax[row]
         receipt.append( item[row] + "\t" + qty1 + "\t" + unitprice[row] + "\t" + cost + "\n");
         //receipt.append("\t\t\t\t" + Double.toString(Tcost) + "\n");
              //tax = tax + salestax[row];
              text1.setText("");
              text2.setText("");     
              else
              if(event.getSource() == b2)
              receipt.append( "\t\t\t\t-----------\n");
              receipt.append( "\t\t\tTotal Tax \n");
              receipt.append( "\t\t\t\t-----------\n");
              receipt.append( "\t\t\tTotal \n");
    // display receipt in JOptionPane
              JOptionPane.showMessageDialog(null, add(receipt));     
    // clear textarea as well reset receiptotals = 0
              receipt.setText("");
              else
              if(event.getSource() == b3)
              // write the content of summary array to sum     
              for (int i=0;i<summary.length;i++)
              sum.append(item[i] + "\t" + "\t" + "%summary[i] + "\n");
              for (int j=0; j<summary.length;j++)
              total = total + summary[j];
              sum.append("--------------------------------------------------------------------------------\n");
              sum.append("Total Sales\t\t\t" + total +"\n");
              sum.append("Total Tax \t\t\t\n");
              sum.append("\t\t\t---------------\n");
              sum.append("Total \n");
              JOptionPane.showMessageDialog(null, add(sum));     }               
    }

    can you please repost your code withing code tags

  • Using DragEvents between different JFXPanels

    Hi. I'm trying to set up a drag-and-drop function in my application that should transfer some data on a successful drag-and-drop completion. I'm following the examples given here:
    Drag-and-Drop Feature in JavaFX Applications | JavaFX 2 Tutorials and Documentation
    The event handler code for my source and target objects are exact copies of the source.setOnDragDetected and target.setOnDragOver / target.setOnDragDropped provided in the above example. I am putting a simple String into the DragBoard with a call to putString on the source event handler.
    The drag and drop is initiated successfully (source event handler fires and puts the text in the DragBoard as per the example), but upon receving the DragEvent in the target event handler, it is not the same DragBoard - this one is simply empty. A call to DragBoard.getString() on the target DragEvent returns null.
    The example works fine, with exactly the same code - line for line. What is different in my application is that both the source and the target nodes exist within separate JFXPanels. I have confirmed that both event handlers fire on the same thread, so it is not a threading issue either.
    I'm drawing a blank here and am starting to think that embedding the scene in a JFXPanel somehow screws up the drag and drop data transfer via DragBoard. Can anybody clarify a bit around this issue for me? Thanks.

    Just running some simple tests, the different JFXPanels do indeed appear to have different dragboards. One workaround is to use a JavaFX Property (or some other mutable wrapper for your data) to store the value being dragged.
    import javafx.application.Platform;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    import javafx.embed.swing.JFXPanel;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextField;
    import javafx.scene.input.ClipboardContent;
    import javafx.scene.input.DragEvent;
    import javafx.scene.input.Dragboard;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.input.TransferMode;
    import javafx.scene.layout.VBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class JFXPanelDnD {
        private final StringProperty draggingContent ;
        public JFXPanelDnD() {
            draggingContent = new SimpleStringProperty();
        private void initAndShowGUI() {
            // Execute on EDT thread
            final JFrame frame = new JFrame("DnD Between JFX Panels");
            final JFXPanel leftPanel = new JFXPanel();
            final JFXPanel rightPanel = new JFXPanel();
            final JPanel panel = new JPanel();
            panel.add(leftPanel);
            panel.add(rightPanel);
            frame.add(panel);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(420, 320);
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
            Platform.runLater(new Runnable() {
               @Override
               public void run() {
                   configureLeftPanel(leftPanel);
                   configureRightPanel(rightPanel);
        private void configureLeftPanel(JFXPanel panel) {
            // Execute on JavaFX Application thread
            final TextField textField = new TextField();
            final VBox root = new VBox();
            root.setOnDragDetected(new EventHandler<MouseEvent>() {
                @Override
                public void handle(MouseEvent event) {
                    System.out.println("Drag detected");
                    Dragboard db = root.startDragAndDrop(TransferMode.ANY);
                    System.out.println(db);
                    ClipboardContent content = new ClipboardContent();
                    content.putString(textField.getText());
                    db.setContent(content);
                    draggingContent.set(textField.getText());
                    event.consume();
            root.setOnDragDone(new EventHandler<DragEvent>() {
                @Override
                public void handle(DragEvent event) {
                    draggingContent.set(null);
            root.getChildren().add(textField);
            Scene scene = new Scene(root, 200, 300);
            panel.setScene(scene);
        private void configureRightPanel(JFXPanel panel) {
            final Label label = new Label("Text");
            final VBox root = new VBox();
            root.setOnDragOver(new EventHandler<DragEvent>() {
                @Override
                public void handle(DragEvent event) {
                    final Dragboard dragboard = event.getDragboard();
                    System.out.println(dragboard);
    //                if (dragboard.hasString()) {
    //                    event.acceptTransferModes(TransferMode.COPY);
    //                } else {
    //                    System.out.println("No string content");
                    if (draggingContent.get() != null) {
                        event.acceptTransferModes(TransferMode.COPY);
            root.setOnDragDropped(new EventHandler<DragEvent>(){
                @Override
                public void handle(DragEvent event) {
    //                Dragboard db = event.getDragboard() ;
    //                if (db.hasString()) {
    //                    label.setText(db.getString());
    //                    event.setDropCompleted(true);
    //                } else {
    //                    event.setDropCompleted(false);
                    if (draggingContent.get()==null) {
                        event.setDropCompleted(false);
                    } else {
                        label.setText(draggingContent.get());
                        event.setDropCompleted(true);
                    event.consume();
            root.getChildren().add(label);
            Scene scene = new Scene(root, 200, 300);
            panel.setScene(scene);
        public static void main(String[] args) {
            final JFXPanelDnD test = new JFXPanelDnD();
            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    test.initAndShowGUI();

Maybe you are looking for

  • HP LaserJet P2015 Tray 1 paper feed

    My HP LaserJet P2015dn printer has been my workhorse printer since new, especially for printing checks, envelopes, forms from paper Tray 1. I always print using the Auto Select for paper feed, so that if there are checks/envelopes in Tray 1, they wil

  • Launching commands in a shell via the Fluxbox menu?

    Is there a way I can configure ~/.fluxbox/menu so I can launch command-line progs in a shell?  For example, running jackd - I want to see the output in a shell as it runs.

  • Unable to assign the date profile to transaction tyep

    Hi, I have created a new date profile. but while assigning  it the transaction its giving error like " The action profile is only allowed with date profile " X00001 " . Please suggest what could be the reason for that . Thanks & Regardsm Rahul D

  • IPad's mail program doesn't load full messages (e.g. 9,5Kb)

    Some of the messages are loaded partly. And there is a button "load remaining 15 Kb" (all message may be for example 27Kb). I can see full message only after clicking this button. Can't find the reason. Other messages with pictures, text (e.g. 500 Kb

  • ABAP HR - PYXX_READ_PAYROLL_RESULT not fetching results

    My first 2 FM's are fetching the correct values . Now I am passing the SEQNR(00005 in my case) returned by 2nd FM to the 3rd FM ( PYXX_READ_PAYROLL_RESULT  ) , the table payroll remains empty.I checked in debug mode also that payroll-INTER-RT is empt