Remember selected item with ComboBox

Hey All,
I was just wondering how other pople solve this issue.
I have a combobox with a XX number of items in there. Now
when I re-populate the combobox the selected item get's lost. I
also would like to remember the selected item during sessions. For
instance when A user selected item XX on monday. I would like to
have it automatically set XX again when a user comes back on
tuesday.
Is there a meganism in adobe flex that allows me to remember
a 'state' of a object, or is that custom programming?
Ideally I would like to have a component that can do teh work
for me rather then my application handles the logic, some sort of a
state manager?
Ries

Use a SharedObject, and write to it in the ComboBox change
handler. See SharedObject in FB3 help sys.

Similar Messages

  • Getting selected item from combobox itemrenderer and storing in object

    Hi Guys,
    Can anyone help me in this regard. Its very urgent.
    I have a combo box itemrenderer in datagrid column. I want to get the user selected item from the dropdown of the row(s) (User may select values from combo box from multiple rows of datagrid) and corressponding values of all other columns of the rows and store it in an object . Then pass this object to database to update only those rows that user has changed.
    I am able to get the selected item from combo box using "event.currentTarget.selectedItem" and corressponding values of all other columns of the rows using "valueSelect.ID", etc where valueSelect is object which contains data for datagrid. But am stuck up with, how to store the selected item value of the combobox  and corressponding values of all other columns of the rows into an Object ?.
    Can anybody help me with sample to store selected item from combobox and its corressponding values of all other columns into an object which i can send to db...?
    Kindly help me in this regard.
    Thanks,
    Anand.

    Hi!
    Are you using a collection of VO or DTO as the dataprovider of the combobox component?
    If so, have you created some attribute there to control the user's selection in the combobox?
    For instance:
    private var selected:Boolean = false;
    If your solution fits this approach, you may create a new collection that contains just the objects that were selected by the user, it means you can loop through the datagrid's dataprovider and only insert in this new collection those objects that have the attribute "selected" set to true.
    For instance:
    private function getSelectedRecords(datagridDataProvider:ArrayCollection):ArrayCollection
        var newCollection:ArrayCollection = new ArrayCollection();
        for each (var item:Object in datagridDataProvider)
            if (item.selected)
                newCollection.addItem(item)
        return newCollection;
    Afterwards, you may serialize this new collection with your back-end.
    Hope it helps you!
    Cheers,
    @Pablo_Souza

  • Can only select items with direct selection tool

    I have been working on a design: one layer, with multiple groupings, nothing is locked. I'm trying to select the items with the selection tool, but can only select items with the direct selection tool (which is very inconvenient in this case). I can select the text with the text tool, but that really serves no purpose in my case. Anyone have any ideas as to what's going on? When I was working on it yesterday, everything was fine with all the tools. Thanks in advance.

    Imcookin,
    It may be a corruption of preferences, or an issue outside Illy.
    You may try to close down and just restart, or close down and restart pressing Ctrl+Alt+Shift/Cme+Option+Shift, or close down and use the suggestions in Move the folder or, if none of those suggestions help, have a look at the list in Other options

  • Focus shifted to next component after selecting item in combobox.....

    I have Table and a textfield as only two UI components.
    For the table i am using my custom editor(NewComboEditor.java), for this i am extending the "DefaultCellEditor" and applying this editor for my jTables first column. My custom editor simply prepares the editor by instantiating the jCombobox and sets the selected value and return it (in overwridden "getTableCellEditorComponent" method).
    I have made my combobox editable by setting "combobox.setEditable(true)" in constructor of editor while creating the instance of combobox.
    Now everything works fine except whenever i tried to select an item from the combobox , after the item selection, focus is assigned to textfield which is the nextfocusable component to jTable on which the comboboxes are rendered.
    If my jcomboboxes are not editable then selection remains on combobox only.
    The implemetation for the comboEditor and comboRenderer is as follows.
    =========================== Main frame having all compenents =================================
    public class CreateAndShowComboBoxes extends JFrame {
        protected JTable table;
         * Default constructor..
        public CreateAndShowComboBoxes() {
          Container pane = getContentPane();
          pane.setLayout(new BorderLayout());
          //create table model, this table model extends AbstractTableModel.
          MyTableModel tableModel = new MyTableModel();
          table = new JTable(tableModel);
          TableColumnModel tcm = table.getColumnModel();
          TableColumn tc = tcm.getColumn(MyTableModel.LAST_NAME);//set to column 1.
          //specify the renderer and editor.
          tc.setCellRenderer(new ComboRenderer());     
          tc.setCellEditor(new NewComboEditor());
          JScrollPane jsp = new JScrollPane(table);
          pane.add(jsp, BorderLayout.CENTER);
          JTextField textField = new JTextField();
          table.setNextFocusableComponent(textField);
          pane.add(textField, BorderLayout.SOUTH);
         * Create a frame and make it visible.
        public static void main(String[] args) {
            CreateAndShowComboBoxes stt = new CreateAndShowComboBoxes();
            stt.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            stt.setSize(400, 300);
            stt.setVisible(true);
    ============================================ComboEditor =========================================
    public class NewComboEditor extends DefaultCellEditor{
         *Default constructor.
        public NewComboEditor() {
            super(getComboBox());
            JComboBox combobox = (JComboBox)getComponent();
            combobox.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    //fireEditingStopped();
                    //stopCellEditing();
         * Override to invoke setValue on the formatted text field.
        public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,
                                                        int row, int column) {
            JComboBox cb = (JComboBox)super.getTableCellEditorComponent
                                            ( table, value, isSelected, row, column);
            cb.setSelectedItem(value);
            return cb;
         * @return object
        public Object getCellEditorValue() {
            JComboBox cb = (JComboBox)getComponent();
            Object o = cb.getSelectedItem();
            return o;
         * @return true
        public boolean stopCellEditing(){
            JComboBox cb = (JComboBox)getComponent();
            cb.requestFocus(true);
            return super.stopCellEditing();
         * @return combobox instance
        public static JComboBox getComboBox(){
            JComboBox combobox = new JComboBox();
            combobox.setEditable(true);
            combobox.addItem("khan");
            combobox.addItem("rawal");
            combobox.addItem("shetti");
            combobox.addItem("more");
            combobox.addItem("sohel");
            combobox.addItem("kambli");
            combobox.addItem("warne");
            return combobox;
    ========================================= ComboRenderer ====================================
    public class ComboRenderer extends JComboBox implements TableCellRenderer {
         *Default constructor.
        public ComboRenderer(){
            super();
            addItem("khan");
            addItem("rawal");
            addItem("shetti");
            addItem("more");
            addItem("sohel");
            addItem("kambli");
            addItem("warne");
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
            boolean hasFocus, int row, int column) {
          setSelectedItem(value);
          return this;
    ======================================================================================Message was edited by:
    yuvi
    Message was edited by:
    yuvi

    Hi Pravin Ghadge,
    Please Use this code for focus.
    oMat.Columns.Item("Column_UID").Cells.Item(oMat.VisualRowCount).Click(SAPbouiCOM.BoCellClickType.ct_Regular)
    I hope it will work.
    Thanks,
    P.T.Sampath.

  • Notification or Alert when selecting Item with charge on Sales Order???

    Hello,
    Is it possible to make an notification / alert on a salesorder when entering a item with batch/charge???
    Now everytime the customer must enter CTRL-TAB on amount field to select a batch but don't get a reminder for the batch.
    They don't want to select the batch/charge on Delivery.
    THX
    Mark

    Below is code that will prevent deletion of a line from Sales Order.
    DECLARE @NoOfRows int
    DECLARE @MaxLineNum int
    DECLARE @UserId int
    IF (@transaction_type = 'A' or @transaction_type = 'U') AND @object_type = '17'
    BEGIN
    select @NoOfRows = COUNT(*) from RDR1 where DocEntry = @list_of_cols_val_tab_del
    select @MaxLineNum = MAX(LineNum) from RDR1 where DocEntry = @list_of_cols_val_tab_del
    select @UserId = UserSign2 from ORDR where DocEntry = @list_of_cols_val_tab_del
    IF(@NoOfRows <> (@MaxLineNum + 1) AND @UserId IN (10,11))
    BEGIN
    select @error = 1234
    select @error_message = 'One or more lines have been deleted from the Sales Order'
    END
    END
    You can say which users cannot modify Sales Orders like by modifying the @UserId IN (10,11) below. You need to get the User ID from the OUSR table.
    IF(@NoOfRows <> (@MaxLineNum + 1) AND @UserId IN (10,11))
    Hope this helps
    Krishnan

  • How to select item in combobox using database?

    I inserted some data in oracle database using comboboxes and to retrieve that data from oracle database.my problem, How to select the item in combobox using that data(retrieve data)?

    Not quite sure what you're asking; do you want to show some value in the combo box selected when the page loads? Then you need to use the "selected" key word in the correspoding <option> element.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Can't nudge selected items with keyboard arrows

    When I select an object or layer and try to nudge the
    selection around with the arrow keys, I get no response.
    I searched the preferences and can't find this to be a
    setting, and I trashed my preferences file figuring this can't be
    default behavior - but it appears to be.
    I just tested this in Fireworks 8 and CS3 (Mac). It works in
    8 but not in CS3.
    Help?

    I've been having the same issue with CS6 12.0.1.274
    It's maddening. Like sometimes the keyboard doesn't work. The same thing happens with mouseclicks trying to select an object. I have to click numerous times to get a selected object.
    This isn't just a time lag or memory issue. I literally can't get an object by clicking and then arbitrarily sometimes I can after a few clicks. The arrow and shift keys are randomly not working at all either!!
    Buh!
    OSX Lion Macbook Pro 8Gb RAM and an i7 processor. I don't have any similar issues in any other program.

  • How to select items with selectedItem and selectedIndex?

    Hello.
    I'm trying to selected and item in both a dropdownlist and combobox using selectedItem or selectedIndex properties. They don't work
    Browing internet I found a lot of people with the same problem, that was already know in 2008.
    The easy commands ddcompontent.selectedIndex = value or ddcomponent.selectedItem = item don't work.
    Can anyone help me?
    I couldn't find any solution.
    thank you
    Pbesi

    Without seeing your code it's hard to tell where you are going wrong.
    I have comboboxes which I need to set to the last value selected.
    I wrote a function like this, and it works fine for my needs.  Given you know the value you want to select.  if you know the index of the item already then you should just be able to set that.
    private function setCmb(cbx:ComboBox, val:String):void
    var arrC:ArrayCollection = cbx.dataProvider as ArrayCollection; 
    for (var i: int = 0; i < arrC.length; i++) { 
    var pe:String = arrC.getItemAt(i) as String; 
    if ( val == pe) {cbx.selectedIndex = i;
    break;}

  • Select item with Right Mouse Click

    hello, this is a pretty simple idea: i want to be able to have an item in a JList be selected when i RIGHT click on it, not just left click.. i want to do this because i have a popup menu come up, but i also want the item that the mouse is over to be selected, so the user doesnt have to left click an item, then right click...
    im pretty sure theres a way to do this.. i looked through documentation, but had no luck.. thanks a lot,
    Steven Berardi
    ------------------------

    hi,
    combobox.addMouseListener(this)
    public void mouseClicked(MouseEvent e)
    if(me.getModifier()==MouseEvent.BUTTON3_MASK)//rechte Maus
    String item=combobox.getSelectedItem();
    implement the other methods for interface mouselistener

  • HT1349 cannot select items with mouse or trackpad

    My mac book pro is having problems.  We have a mouse for it and shortly after restarting it stops letting us click.  Also the trackpad stops working also.  We can move the mouse but cannot click in anyway.  We have to force shutdown and it will work for a short time then stop working again.

    Hey there Mike Saint!
    I would suggest that you troubleshoot this issue by first resetting the PRAM on your computer:
    About NVRAM and PRAM
    http://support.apple.com/kb/ht1379
    If you are still having issues after that reset, continue troubleshooting this issue according to the following article:
    Troubleshooting wireless mouse and keyboard issues
    http://support.apple.com/kb/ts3048
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • How to change images of selected items in gridview on selection changed event in universal app

    Hi,
    I am developing Universal App. I have bind the images to the Gridview using ObservableCollection. I have set gridview
    SelectionMode as Multiple . I want to change the images of selected items but I don't know how to do in Selection Changed event of Gridview. I got selected items with the help of
    Gridview SelectedItems property. How can i change the images of respected selected items?
    Please reply me asap.
    Thanks in advance.

    Hi, Sorry for late reply,
    Please change the class : 
    public class ImageCollection : INotifyPropertyChanged
    private string source;
    public string Source
    get { return source; }
    set { SetProperty(ref source, value); }
    public int MyProperty { get; set; }
    protected void SetProperty<T>(ref T storage, T value, [System.Runtime.CompilerServices.CallerMemberName] String propertyName = null)
    if (!object.Equals(storage, value))
    storage = value;
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    protected void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] String propertyName = null)
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    public event PropertyChangedEventHandler PropertyChanged;
    XAML
    <GridView x:Name="gd"
    Tapped="gd_Tapped">
    <GridView.ItemTemplate>
    <DataTemplate>
    <Grid Height="300" Width="250">
    <Image Source="{Binding Source}" Stretch="Fill"/>
    <Grid Height="100" Background="#B2000000" VerticalAlignment="Bottom">
    <TextBlock Text="{Binding MyProperty}" FontSize="25" />
    </Grid>
    </Grid>
    </DataTemplate>
    </GridView.ItemTemplate>
    </GridView>
    C#
    //ObservableCollection of class
    ObservableCollection<ImageCollection> img = new ObservableCollection<ImageCollection>();
    public MainPage()
    this.InitializeComponent();
    img.Add(new ImageCollection() { MyProperty = 1, Source = "ms-appx:///Assets/Logo.scale-100.png" });
    img.Add(new ImageCollection() { MyProperty = 2, Source = "ms-appx:///Assets/2.jpg" });
    img.Add(new ImageCollection() { MyProperty = 3, Source = "ms-appx:///Assets/3.jpg" });
    img.Add(new ImageCollection() { MyProperty = 4, Source = "ms-appx:///Assets/4.jpeg" });
    gd.ItemsSource = img;
    private void gd_Tapped(object sender, TappedRoutedEventArgs e)
    GridView gv = (GridView)sender;
    ImageCollection ic = gv.SelectedItem as ImageCollection;
    ic.Source = "ms-appx:///Assets/4.jpeg";
    gv.UpdateLayout();
    I have used  INotifyPropertyChanged now UI is not fluctuate 
    and I have not bind again O-Collection.
    I hope so You will get right answer. 
    shah

  • Connected webpart - add item with selected data

    Hi!
    I have a page with connected web parts.
    Example:
    List one: Companies
    a address List with companies
    List two: Employees
    A list with employees and a relation to companies (Company name).
    On the view item on companies i have list Employees connected. When i add an item i would like to have the Company name selected in the drop down.
    I have seen examples on using JavaScript but this doesn´t work in SharePoint 2013. Anyone with a solution for this, Jslink perhaps?

    Hi,
    According to your post, my understanding is that you wanted to add item with selected data in connected webpart.
    I recommend to use lookup column in the Employees to add a relation to companies.
    You can check “Yes” under “Require that this column contains information”. Then you need to select an company when you add a item.
    The result is as below:
    If you want to set the defult value for the lookup column, you can use InfoPath and no code.
    For more information, please refer to:
    SharePoint 2010 - Set default value for a lookup column using InfoPath and no code
    In addition, a simple add-on(SharePoint Default Value Add-On) which inject a "default value" section into "Create Column" dialog, seems to be a solution.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Help with ComboBox Selection Update

    Hello,
    I am trying to make this application display all its labels in a different language depending on which locale the user picks from the ComboBox. The variables are being read from the ResourceBundles correctly (see command-line debugging statements) but I cannot get the pane to 'refresh' when the item is selected. I've tried everything I can think of! Please help! :)
    (This assignment was to internationalize a program we wrote for a previous assignment, so this program wasn't originally written to do this. I am trying to add this functionality to my existing project, so it's not ideal).
    Thank you for any advice, help or hints you can give!
    Program(PrjGUI)
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.*;
    import java.text.DateFormat;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    import java.util.Locale;
    import java.util.ResourceBundle;
    import java.util.TimeZone;
    public class PrjGUI extends JFrame
       //**** Instance Variables for both classes
       private JRadioButton optGram, optOz;
       private JTextField txtWeightEnter, txtResult, txtDateTime;
       private JButton cmdConvert;
       private JComboBox comboSelectLocale;
            //arrays--one for combo box list, and the other for values to use when a particular list item is selected
       private String[] localeList = {"English, USA", "Fran\u00E7ais, France", "Espag\u00F1ol, M\u00E9xico"};
       private Locale[] localeCode = {(new Locale("en", "US")), (new Locale("fr", "FR")), (new Locale("es", "MX"))};
       private JLabel lblChoose, lblWeightEnter;
       protected String titleTxt, enterTxt, btnTxt, gramTxt, ozTxt, resultDisplayTxt, localeTimeZone, dateFormat;
       protected ResourceBundle res;
       protected Locale currentLocale;
       //declare Handler Object
       private CmdConvertWeight convertWeight;
       //**************main method******************
       public static void main(String[] args)
          PrjGUI convertWeight1 = new PrjGUI();
       }//end of main******************************
       //constructor
       public PrjGUI()
          //create panel for components
          Container pane = getContentPane();
          //set the layout
          pane.setLayout(new GridLayout(0, 1, 5, 5));
          //set the color
          pane.setBackground(Color.GREEN);
          //make a font to use in components
          Font font1 = new Font("SansSerif", Font.BOLD, 16);
          /**New calendar object to display the date and time*/
          GregorianCalendar calendar = new GregorianCalendar();
          DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US);
          /**currentLocale = localeCode[comboSelectLocale.getSelectedIndex()];
          DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, currentLocale); //uses key for ResourceBundle*/
          TimeZone timeZone = TimeZone.getTimeZone("CST");
          //TimeZone timeZone = TimeZone.getTimeZone(localeTimeZone); //uses key for resourceBundle
          formatter.setTimeZone(timeZone);
          //***create UI objects***
          /**NEW OBJECTS FOR prjInternational:
           * a drop-down combobox, a label, and a txt field
          txtDateTime = new JTextField(formatter.format(calendar.getTime()));
          //txtDateTime = formatter.format(calendar.getTime());
          lblChoose = new JLabel("Please choose your language.");
          lblChoose.setFont(font1);
          lblChoose.setBackground(new Color(0, 212, 255)); //aqua blue
          comboSelectLocale = new JComboBox(localeList);
          comboSelectLocale.setFont(font1);
          comboSelectLocale.setBackground(new Color(0, 212, 255)); //aqua blue
          //comboSelectLocale.setSelectedIndex(0);
          //add a listener to the combo box to get the selected item
          /**default values for variables so I can debug--at the moment
           * I can't get the resouceBundle to work--it can't locate the
           * file.  So I will hard code these in for now.
          /*titleTxt="Food Weight Converter";
          enterTxt="Please enter the Weight you wish to convert.";
          btnTxt="Convert this weight!";
          gramTxt="grams";
          ozTxt="oz";
          resultDisplayTxt="Result will display here.";*/
          comboSelectLocale.addItemListener(new ItemListener()
               public void itemStateChanged(ItemEvent e)
                    res = setCurrentLocale(comboSelectLocale.getSelectedIndex());
                    System.out.println(res.getString("enterTxt"));
                    updateItems(res);
                  //set variables from Resource Bundle
                  /* titleTxt = res.getString("titleTxt");
                   System.out.println(res.getString("enterTxt")); //debug
                   enterTxt = res.getString("enterTxt");
                   btnTxt = res.getString("enterTxt");
                   gramTxt = res.getString("gramTxt");
                   ozTxt = res.getString("ozTxt");
                   resultDisplayTxt = res.getString("resultDisplayTxt");*/
          //2 radio buttons
          //optGram = new JRadioButton("grams", true);
          optGram = new JRadioButton(gramTxt, true);
          //optOz = new JRadioButton("oz.");
          optOz = new JRadioButton(ozTxt);
          optGram.setBackground(Color.GREEN);
          optGram.setFont(font1);
          optOz.setBackground(Color.GREEN);
          optOz.setFont(font1);
          //button group so only one can be chosen
          ButtonGroup weightUnit = new ButtonGroup();
          weightUnit.add(optGram);
          weightUnit.add(optOz);
          //label and text field for weight
          //JLabel lblWeightEnter = new JLabel("Please enter the weight you wish to convert:");
          JLabel lblWeightEnter = new JLabel(enterTxt);
          lblWeightEnter.setFont(font1);
          txtWeightEnter = new JTextField("20.05", 6);
          txtWeightEnter.setBackground(new Color(205, 255, 0)); //lime green
          txtWeightEnter.setFont(font1);
          //button to make conversion
          //cmdConvert = new JButton("Convert this weight!");
          cmdConvert = new JButton(btnTxt);
          cmdConvert.setFont(font1);
          //textfield to display result
          //txtResult = new JTextField("Result will display here");
          txtResult = new JTextField(resultDisplayTxt);
          txtResult.setBackground(new Color(205, 255, 0)); //lime green
          txtResult.setFont(font1);
          //register the handler
          convertWeight = new CmdConvertWeight();
          cmdConvert.addActionListener(convertWeight);
          //add content to pane
          pane.add(txtDateTime);
          pane.add(lblChoose);
          pane.add(comboSelectLocale);
          pane.add(lblWeightEnter);
          pane.add(txtWeightEnter);
          pane.add(optGram);
          pane.add(optOz);
          pane.add(cmdConvert);
          pane.add(txtResult);
          //create window for object
          setTitle(titleTxt);
          setSize(400, 300);
          setVisible(true);
          setLocationRelativeTo(null);
          setDefaultCloseOperation(EXIT_ON_CLOSE);
       }//end of constructor
       /**  ACTION LISTENER CLASS TO RESPOND TO USER'S INPUT (EVENTS) **/
       private class CmdConvertWeight implements ActionListener
          public void actionPerformed(ActionEvent e)
             //System.out.println("we made it to the Action Listener"); //debug
             //get info from fields
             double weight = Double.parseDouble(txtWeightEnter.getText());
             double weightConvert = 0;
             String weightConvertString;
             if (optGram.isSelected())//if user's weight is in grams, converting to oz
             weightConvert = weight/28.35;
             weightConvertString = Double.toString(weightConvert);
             txtResult.setText(txtWeightEnter.getText() + " grams is equal to " + weightConvertString + " oz.");
             }//end if gram select
             else if (optOz.isSelected())//if user's weight is in oz, converting to grams
             weightConvert = weight*28.35;
             weightConvertString = Double.toString(weightConvert);
             txtResult.setText(txtWeightEnter.getText() + " oz. is equal to " + weightConvertString + " grams.");
             }//end if oz select
         }//end actionPerformed
      }//end CmdConvertWeight
       /**setCurrentLocale method from combo box listener*/
       public ResourceBundle setCurrentLocale(int index)
            Locale currentLocale = localeCode[index];
            System.out.println(currentLocale); //debug
            System.out.println("MyResource_" + currentLocale); //debug
            ResourceBundle res = ResourceBundle.getBundle("MyResource_" + currentLocale);
            return res;
       }//end setCurrentLocale
       public void updateItems(ResourceBundle res)
            //convertWeight1.setTitle(res.getString(titleTxt));
            System.out.println(res.getString(btnTxt));//debug
            lblWeightEnter.setText(res.getString(enterTxt));
            optGram.setText(res.getString(gramTxt));
            optOz.setText(res.getString(ozTxt));
            cmdConvert.setText(res.getString(btnTxt));
            txtResult.setText(res.getString(resultDisplayTxt));
       }//end updateItems
    }//end of class PrjGUIResourceBundles(each in a different file)
    public class MyResource_fr_FR extends java.util.ListResourceBundle
         static final Object[][] contents =
              {"titleTxt", "Convertisseur de poids de nourriture"},
              {"enterTxt", "Veuillez \u00E9crire le poids que vous souhaitez convertir."},
              {"btnTxt", "Convertissez ce poids!"},
              {"gramTxt", "grammes"},
              {"ozTxt", "onces"},
              {"resultDisplayTxt", "Le r\u00E9sultat montrera ici."},
              {"localeTimeZone", "CET"},
              {"dateFormat", "Locale.FR"}
         public Object[][] getContents()
              return contents;
    public class MyResource_es_MX extends java.util.ListResourceBundle
         static final Object[][] contents =
              {"titleTxt", "Convertidor del peso del alimento"},
              {"enterTxt", "Incorpore por favor el peso que usted desea convertir."},
              {"btnTxt", "\u00F1convierta este peso!"},
              {"gramTxt", "gramos"},
              {"ozTxt", "onzas"},
              {"resultDisplayTxt", "El resultado exhibir\u00E1 aqu\u00ED."},
              {"localeTimeZone", "CST"},
              {"dateFormat", "Locale.MX"}     
         public Object[][] getContents()
              return contents;
    public class MyResource_en_US extends java.util.ListResourceBundle
         static final Object[][] contents =
              {"titleTxt", "Food Weight Converter"},
              {"enterTxt", "Please enter the weight you wish to convert."},
              {"btnTxt", "Convert this weight!"},
              {"gramTxt", "grams"},
              {"ozTxt", "oz"},
              {"resultDisplayTxt", "Result will display here."},
              {"localeTimeZone", "CST"},
              {"dateFormat", "Locale.US"}
         public Object[][] getContents()
              return contents;
    }Edited by: JessePhoenix on Nov 2, 2008 8:30 PM

    catman2u wrote:
    does anyone from Lenovo actually read this forum?
    From the Communiy Rules in the Welcome section....
     Objectives of Lenovo Discussion Forums
    These communities have been created to provide a high quality atmosphere in which users of Lenovo products and services may share experiences and expertise. While members from Lenovo may participate at intervals to engage in the discussions and offer advice and suggestions, this forum is not designed as a dedicated and staffed support channel. This is an informal and public forum, and Lenovo does not guarantee the accuracy of information and advice posted here -- see important Warranty information below.
    No amount of ranting is going to get you anything more than you will achieve with a clear exposition of your issue... so you might want to try doing that instead of ranting and assuming that everyone already knows what you know etc etc.
    Cheers,
    Bill
    I don't work for Lenovo

  • How to design selection screen with WAD 3.x Web Items

    Hi Guruu2019s,
    I have a requirement where I need to design a selection screen by using WAD 3.x web items. In the selection screen we have to include the Query Description - in the left corner of the selection screen, Name of Sales Person u2013 left side of the screen, Date from and Date to u2013 right side of the selection screen, User ID and User Name u2013 on the top right of the selection screen etc., after this on the bottom of the selection screen I have to include the pushbutton RUN REPORT.
    After filling all the above parameters and click on Run Report it has to trigger another URL link which contains consolidated Sales CRM Report.
    Could any one suggest me and provide me the idea on developing the selection screen with WAD 3.x Web items and is there any other interface to trigger the other URL link when I click on Run Report.
    Regards
    Venkat

    no replies. Closing the incident

  • Create a followup document with selected items using actions

    Hi Experts,
    We are working on CRM 5.0 with ECC 6.0 as backend.
    As per the clients business process we have to create a service order automatically from a sales order whenever there is a serviceline item with item category ZSRV presents in the sales order. The service order which is created should only contain service line item with item category ZSRV. Which means the action should copy only the selected line items to the service order.
    Now the problem is using the standard method COPY_DOCUMENT, I dont have any option for selecting the line items. I have found a method COPY_DEF_ITEMS which may be the most relavant for my scenario. But I am not able to give the processing parameters for this.
    Can any body help me about how to use the standard method    COPY_DEF_ITEMS.
    Points shall be rewarded for the helpful answer.
    Regards,
    Madhu

    PDF was never designed to support the Flash page curl effect (it didn't exist back then). Anything you try (and you've tried the standard hack) will look like a hack. Personally, I don't think the effort is worth it for an effect that's much overused.

Maybe you are looking for

  • Edit the select option in an existing Transfer Structure

    Hello everybody, I've a problem with my NW2004s BI-construct which contains reporting for the SAP IS-U sales statistics. I used the SAP BC Data Source, Info Source and Cube. Now I started the data transfer process. The BI 7.0 could connect to the IS-

  • Suddenly all my B&W filters are Lavender!

    using original CS. don't know how this happened. was playing with gradients somewhere, found this lovely lavender. thought i was just changing it on one filter one place one time for one layer. but now, every time and with every document i open/reope

  • Tax procedure for Canada

    Hi guys, Can anyone guide me in configuration of tax procedure for Canada. Basically our company uses third party s/w Vertex for tax calculations. Any guidlines on what is difference between US and canada config. Also, any specific docs on Canadian c

  • Problem with Office 365 Home - Setting up mail account

    Would like to use Office 365 Home with SBS 2003 ? Will this work ? Receive an error "The resource that you are trying to use is located on an unsupported version of Microsoft Exchange. Contact your e-mail administrator for assistance" Thanks

  • No Sound when viewing Flash content in Safari for Windows

    Hopefully someone can help. Just recently, I've been unable to get sound when viewing Flash content on the web. I currently use Safari for Windows, when I use Internet Explorer on the same computer I can get sound. Just no sound when using Safari for