Event problem with JComboBox

Hi, javamen.
I ve gotten a little problem when working with Itemlistener interface. My combo has 4 options, in which the first one always appears when the applet starts up. Whenever the user DOESNT change it and submit the applet form, throught a button click, the applet gets a NullPointerException. But, if the user changes the option, i always get it, throught my interface' methods(ItemStateChanged). Of course, i know its because there was no combobox event, just a button event (click). So, how can i deal with this situation, since i need to get the combobox option content.
Regards, Euclides.

But, this is the question! I dont know how to initialize the combobox' first option. Help me, please! I am using the addItem method as follow:
MakeJCombo ( JComboBox ComboObj) {
ComboObj.addItem ("option1");
ComboObj.addItem ("option2");
ComboObj.addItem ("option3");
then:
public void itemStateChange(ItemEvent ie) ...
Object origem = ie.getSource()...
if (origem == ComboObj) ...

Similar Messages

  • FocusListener problem with JComboBox

    Hi,
    I am facing a problem with JComboBox. When I make it as Editable it is not Listening to the FocucListener Event....
    Please tell me if there is any way to overcome this..
    Regards,
    Chandan Sharma

    I searched the forum using "jcombobox focuslistener editable" and quess what, the first posting I read had the solution.
    Search the forum before posting questions.

  • Strange problem with JComboBox

    I am having a strange problem with JComboBox, I created a method as a JComboBox factory which returns a JComboBox filled with items. the method works fine and I can see the items in the JComboBox. The problem is when I try using the method myCombo.SelectedItem(String item); the object myCombo does not set the selected item, it just leaves the item blank (or unselected).
    //This method build a JComboBox
    public javax.swing.JComboBox makeJComboBox(String[] items) {
    javax.swing.JComboBox myComboBox = new javax.swing.JComboBox();
    for (int index=0;index<items.length;index++){
    myComboBox.addItem(makeObj(items[index]));
    return myComboBox;
    public Object makeObj(final String item) {
    return new Object() {
    public String toString() {
    return item;
    }

    Couple of better ways to populate a combo with items-
    public javax.swing.JComboBox makeJComboBox(String[]items) {
    javax.swing.ComboBoxModel cbModel = new DefaultComboBoxModel(items);
    javax.swing.JComboBox myComboBox = new javax.swing.JComboBox(cbModel);
    return myComboBox;
    }OR
    public javax.swing.JComboBox makeJComboBox(String[]items) {
    return new javax.swing.JComboBox(items);

  • Problem with JComboBox in aTable Cell

    I try to put JComboBox in JTableCell,
    what i want to do is something like this...
    Question | Answer |
    1. what is your favourite | a. Pizza |
    food? | b. Hot Dog |
    2. what is your favourite | a. red |
    color? | b. blue |
    Object[][] data = {
    {"1.What is your favourite food?", new AnswerChoices(new String[]{"a.Pizza","b.Hot Dog"})},
    {"2.What is your favourite color?", new AnswerChoices(new String[]{"a.red","b.blue"})}
    here my code;
    //class AnswerChoicesCellEditor
    import javax.swing.table.*;
    import javax.swing.*;
    import java.awt.Component;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    import de.falcom.table.*;
    public class AnswerChoicesCellEditor extends AbstractCellEditor implements TableCellEditor{
         protected JComboBox mComboBox;
    public AnswerChoicesCellEditor(){
         mComboBox = new JComboBox();
         mComboBox.addActionListener(this);
         mComboBox.setEditable(false);
    public Component getTableCellEditorComponent(JTable table,Object value,boolean isSelected,int row,int column){
         if(value instanceof AnswerChoices){
              AnswerChoices a = (AnswerChoices)value;
              String[] c = a.getChoices();
              mComboBox.removeAllItems();
              for(int i=0; i < c.length; i++)
                   mComboBox.addItem(c);
                   mComboBox.setSelectedIndex(a.getAnswer());
         return mComboBox;
    public Object getCellEditorValue(){
         int nchoices = mComboBox.getItemCount();
         String[] c = new String[nchoices];
         for(int i = 0; i<nchoices; i++){
              c[i] = mComboBox.getItemAt(i).toString();
         return new AnswerChoices(c,mComboBox.getSelectedIndex());
         //return mComboBox.getSelectedItem(); //here i get but after selection there is no comboBox in tableCell
    //the Renderer class
    import javax.swing.table.TableCellRenderer;
    import javax.swing.*;
    import java.awt.Component;
    public class AnswerChoicesCellRenderer extends JComboBox implements TableCellRenderer {
         private Object curValue;
    /** Creates new AnswerChoiceCellRenderer */
    public AnswerChoicesCellRenderer() {
    setEditable(false);
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column) {
    if (value instanceof AnswerChoices) {
    AnswerChoices nl = (AnswerChoices)value;
    String[] tList = nl.getChoices();
    if (tList != null) {
    removeAllItems();
    for (int i=0; i<tList.length; i++)
    addItem(tList[i]);
         setSelectedIndex(AnswerChoices.getAnswer());
         //this.setSelectedItem();
    //return this;
    //this.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    if (table != null)
    if (table.isCellEditable(row, column))
    setForeground(CellRendererConstants.EDITABLE_COLOR);
    else
    setForeground(CellRendererConstants.UNEDITABLE_COLOR);
              setBackground(table.getBackground());
    return this;
    public class AnswerChoices {
         static int ans = 0;
         String[] choices ;
    public AnswerChoices(String[]c,int a){
              choices = c;
              ans          = a;
    public AnswerChoices(String[] c){
              this(c,0);
    public String[] getChoices(){
         return choices;
    public void setAnswer(int a){
         ans = a;
    public static int getAnswer(){
         return ans;
    //the TableModel i used in my app
    import java.awt.Color;
    import javax.swing.JTable;
    import javax.swing.ListSelectionModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableModel;
    import javax.swing.*;
    public class FAL_Table extends JTable {
    /** Creates new FAL_Table */
    public FAL_Table(DefaultTableModel dtm) {
    super(dtm);
    setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    setRowSelectionAllowed(false);
    setColumnSelectionAllowed(false);
    setBackground(java.awt.Color.white);
    setDefaultCellEditorRenderer();
    private void setDefaultCellEditorRenderer(Class forClass, TableCellEditor editor, TableCellRenderer renderer) {
         setDefaultEditor(forClass, editor);
         setDefaultRenderer(forClass, renderer);
         private void setDefaultCellEditorRenderer() {
              // Setting default editor&renderer of Boolean
              setDefaultCellEditorRenderer(Boolean.class, new BooleanCellEditor(), new BooleanCellRenderer());
              //Setting default editor&renderer of ComboBox
              setDefaultCellEditorRenderer(JComboBox.class, new ComboBoxCellEditor( ),new ComboBoxRenderer());
              // Number class
              // Setting default editor&renderer of java.math.BigDecimal
              setDefaultCellEditorRenderer(java.math.BigDecimal.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of java.math.BigInteger
              setDefaultCellEditorRenderer(java.math.BigInteger.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of java.lang.Byte
              setDefaultCellEditorRenderer(Byte.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Double
              setDefaultCellEditorRenderer(Double.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Float
              setDefaultCellEditorRenderer(Float.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Integer
              setDefaultCellEditorRenderer(Integer.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Long
              setDefaultCellEditorRenderer(Long.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of Short
              setDefaultCellEditorRenderer(Short.class,new NumberCellEditor(), new NumberCellRenderer());
              // Setting default editor&renderer of String
              setDefaultCellEditorRenderer(String.class,new StringCellEditor(), new StringCellRenderer());
              // Setting default editor&renderer of FileName
              setDefaultCellEditorRenderer(FileName.class,new FileNameCellEditor(), new FileNameCellRenderer());
              // Setting default editor&renderer of Color
              setDefaultCellEditorRenderer(Color.class,new ColorCellEditor(), new ColorCellRenderer());
              setDefaultCellEditorRenderer(AnswerChoices.class, new AnswerChoicesCellEditor(), new AnswerChoicesCellRenderer());
              setDefaultCellEditorRenderer(JSpinner.class, new SpinnerCellEditor(), new SpinnerRenderer());
    public Class getCellClass(int row,int col) {
    TableModel model = getModel();
    if (model instanceof FAL_TableModel) {
    FAL_TableModel ptm = (FAL_TableModel)model;
    return ptm.getCellClass(row,convertColumnIndexToModel(col));
    return model.getColumnClass(convertColumnIndexToModel(col));
    public TableCellRenderer getCellRenderer(int row, int column) {
    TableColumn tableColumn = getColumnModel().getColumn(column);
    TableCellRenderer renderer = tableColumn.getCellRenderer();
    if (renderer == null) {
    renderer = getDefaultRenderer(getCellClass(row,column));
    return renderer;
    public TableCellEditor getCellEditor(int row, int column) {
    TableColumn tableColumn = getColumnModel().getColumn(column);
    TableCellEditor editor = tableColumn.getCellEditor();
    if (editor == null) {
    editor = getDefaultEditor(getCellClass(row,column));
    return editor;
    import javax.swing.table.*;
    import java.util.Vector;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    public class FAL_TableModel extends DefaultTableModel implements TableModel {
    public FAL_TableModel() {
    this((Vector)null, 0);
    public FAL_TableModel(int numRows, int numColumns) {
    super(numRows,numColumns);
    public FAL_TableModel(Vector columnNames, int numRows) {
    super(columnNames,numRows);
    public FAL_TableModel(Object[] columnNames, int numRows) {
    super(convertToVector(columnNames), numRows);
    public FAL_TableModel(Vector data, Vector columnNames) {
    setDataVector(data, columnNames);
    public FAL_TableModel(Object[][] data, Object[] columnNames) {
    setDataVector(data, columnNames);
         public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    Object obj = getValueAt(row,col);
    if (col != 1){
    return false;
         }else{
              return true;
    public Class getCellClass(int row,int col) {
    Object obj = getValueAt(row,col);
    if (obj != null)
         return obj.getClass();
         else
         return Object.class;
    public Object getCellValue(int row,int col) {
    Object obj = getValueAt(row,col);
              return obj;      
    my problem is, when i select an item from one of the comboBox in the table the value of the other cells changes too and i have the same problem with JSpinner.
    please help i am stuck
    Gebi

    and when i try to get the current value oa a cell it returns the Component class like this
    AnswerChoices@bf1f20 ...

  • Events problem with (Java and ActiveX)

    Hi,
    I use an ActiveX component with Java and i've got a problem with events.
    Java classes were generated with Bridge2Java (IBM).
    In order to manage events I added a listener in my application :
         javaMyActiveX = new MyActiveX();
         javaMyActiveX.add_DMyActiveXEventsListener(new _DMyActiveXEventsAdapter());
    I also added a constructor in the _DMyActiveXEventsAdapter class and I fill the body of methods.
    The ActiveX generates two types of events :
    - The ones are directly generated by methods.
    - The others are generated by a thread.
    With MS Products (VB, Visual C++, Visual J++), I catch all events.
    With java (jdk 1.4), I catch only events generated by methods.
    Can anyone help me.

    I'm not 100% sure, but the last time I used that bridge, it only worked if you ran your Java app within a Microsoft VM.

  • Problem with JComboBox in a fixed JToolBar

    Hi,
    I've created a JComboBox in a JToolBar that contains all available fonts. When I click on the drop down arrow I only see the first font and a small part of the second. The JComboBox is dropped down in fact just as far as the border of the JToolbar. All the rest isn't visible to me; it seems that they are behind the other components of my JApplet. However, if I move the JToolBar from it's position (as it's a floatable component), there's no problem at all. So I'm wondering why I can't see everything when the JToolBar is docked.... Can anyone help me?
    Thanks in advance!!
    E_J

    it seems that they are behind the other components of my JApplet.Sounds like you are mixing AWT components with your Swing application. Make sure you are using JPanel, JButton ... and not Panel, Button....

  • Creation of an event : problem with the container

    Hi Gurus,
    I'm facing a problem in creation of an event.
    I'm in SAP ECC 6.0 for a migration project from 4.6B
    In an ABAP program I'm trying to create an event in order to launch a workflow.
    1st step : Set datas in the container -> In INTERNAL_TABLE I have 5 lines.
    swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container.
    2nd step : Create an event :
      CALL FUNCTION 'SWE_EVENT_CREATE'
              EXPORTING
                objtype              = w_wf_objtype
                objkey               = w_wf_objkey
                event                = w_wf_event
                creator              = applicant
                start_recfb_synchron = 'X'
              TABLES
                event_container      = event_container
              EXCEPTIONS
                objtype_not_found    = 1
                OTHERS               = 2.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              WRITE sy-subrc.
            ENDIF.
    Now when I check my container with SWI2_FREQ I see that INTERNAL_TABLE has just one ligne, the rest disapears.
    I have this problem only when I set an internal table in an container
    I don't know why, but it perfectly works on 4.6B.
    Thanks a lot
    Walid

    Hi,
    I dont see a point in having this statement
    swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container. Infact it is not needed !!
    SWE_EVENT_CREATE like any other FM, take a
    lt_var type standard table of SWCONT.
    ls_var type SWCONT.
    fill your ls_var with all fields and append it to lt_var each time and pass lt_var to event_table of SWE_EVENT_CREATE. It should work !!
    However, suggested way is to use SAP_WAPI_CREATE_EVENT instead of SWE_EVENT_CREATE  from ECC 5.0 onwards. There are fe concerns with SWE_EVENT_CREATE mainly with respect to commit and persistancy. Better we should use SAP_WAPI* as much as possible from ECC 5.0.
    Try above and Good Luck !!
    Regards
    Krishna Mohan

  • Client Eventing Problem with URL Iview

    Hi,
    I am new to EP and have a basic client eventing question. We are trying to integrate a URL Iview from a partner product with a standard Iview downloaded from Iviewstudio. This standard Iview is capable of handling client events from other Iviews in the standard package. We want to re-use this Iview with the same event (same functionality) to be able to handle events from the partner URL Iview.
    The partner Iview and our portal are on different servers.
    We are using the following Javascript but it doesnt seem to raise the event.
    EPCM.storeClientData('urn:com.sap.bor:BUS0010','objid',LocId));
    EPCM.storeClientData('urn:com.sap.bor:BUS0010','AllKeys','objid');
    EPCM.raiseEvent('urn:com.sap.bor:BUS0010','select','','/irj/servlet/prt/portal/prtroot/...'
    We were able to debug and find that the data was being stored in the Data Bag. However the event is not being raised at all. It seems that it just gets stuck somewhere in the Raise event. We even put a javascript alert after the raise event but it doesnt seem to reach there at all.
    Could you give me a few pointers as to what the problem might be.
    Thanks in advance.
    Message was edited by: Mayank Bhatnagar

    Hi,
    let's have a look at two quotes of the PDK documentation.
    "Using the EPCF from your JavaScript, you can send messages to JavaScript code embedded in other iViews."
    "Isolated iViews are iViews that are not inlined into a portal page, but referenced using an IFRAME. To make the EPCF available in such iViews, the EPCF JavaScript as well as the EPCF applet are included into each generated frame."
    From my point of view, this only can work automatically with content provided by the portal.
    Therefore, this can't work with isolated URL iViews  generated with the wizards. Imagine a google iView, running in an iFrame. Google is called by the portal, but it's simply standard google HTML output - displayed in the portal.
    To provide the capability of the EPCF, the epcf javascript file has to be included in the "partner URL iView"'s source. I tried this and it worked. However, this is not a highly sophisticated solution
    If the partner iView's server is running in a different domain, there are further issues to be considered (keyword: java script origin policy)
    If anybody has corrections or can provide a good solution, don't hesitate.

  • Problem with JComboBox in a JPanel

    I have a JComboBox in a JPanel (with a gridbaglayout), and I add items to the combobox:
    String[] stateList={"AL",.....};
    JCombobox stateCB=new JComboBox(stateList);
    and when I run the application, the states appear in the box, but when I click on the box, there is no drop-down list!
    any ideas?

    Is the combobox Enabled if it is then after adding it to anything set it to true cause i poersonally tried out as u have given it it works and else if it does not show a list then use the setmodel function and set the model to DefaultComboBoxModel and then add the items using a for loop

  • Problem with JComboBox in j2sdk 1.4.2_01

    Hi,
    I've got a JComboBox, and I want to change its background color. I use this code:
    BasicComboBoxEditor editor = (BasicComboBoxEditor)myJComboBox.getEditor();
    editor.getEditorComponent().setBackground(SystemColor.control);
    This code works with versions 1.3.1 and 1.4.1, but with version 1.4.2_01 it doesn't.
    Can anyone tell me another way to change the background color??
    Thanx in advance.

    Hi,
    I've got a JComboBox, and I want to change its background color. I use this code:
    BasicComboBoxEditor editor = (BasicComboBoxEditor)myJComboBox.getEditor();
    editor.getEditorComponent().setBackground(SystemColor.control);
    This code works with versions 1.3.1 and 1.4.1, but with version 1.4.2_01 it doesn't.
    Can anyone tell me another way to change the background color??
    Thanx in advance.

  • The problem with JComboBox

    hi,
    i have a JComboBox that has 3 items, when user choose one of them,
    how can i get it as a string to store into database.
    thanks a lot..

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class test extends JFrame implements ItemListener {
      JComboBox comboBox;
      public test() {
        super("JComboBox");
        String[] comboBoxItems = {
          "one", "two", "three"
        comboBox = new JComboBox(comboBoxItems);
        comboBox.addItemListener(this);
        JPanel panel = new JPanel();
        panel.add(new JLabel("select one"));
        panel.add(comboBox);
        getContentPane().add(panel, BorderLayout.CENTER);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(200,100);
        setLocationRelativeTo(null);
        setVisible(true);
      public void itemStateChanged(ItemEvent e) {
        if(e.getStateChange() == ItemEvent.SELECTED) {
          String selection = (String)e.getItem();
          System.out.println("selection = " + selection);
      public static void main(String[] args) {
        new test();
    }

  • IDLE event problem with newer versions of the flash player

    Greetings,
    I have an issue that seems to be related to newer versions of the flashplayer in how they handle IDLE events. I have an IDLE event handler that works as expected with flashplayer version 10.0.45.2. With flashplayer 10.2.153.1, the IDLE event does not fire when my flex application is not in focus (browser minized, different browser tab in focus,etc...). Or when it fires, it's usually after a longer lag than normal. Has anyone experienced this issue? Thanks

    Thanks for the reply. Are there any fixes/workarounds for this issue? Say I have a need to create a timer that fires every 10 minutes regardless of whether the player is in focus or not, how do I implement such a timer? Same goes for the IDLE event, I want to be notified if the application has been idle for X minutes regardless of whether it's in focus or not.Prior to 10.2 (and per your reply, 10.1), this all worked fine in flex without needing to adjust for the player being in focus.

  • Event Problem with tab-removal at JTabbedPane

    Hi,
    I have got a JTabbedPane with two added Tabs. The second Tab is selected. I registered the following ChangeListener wih the tabbed pane:
    jTabbedPane1.addChangeListener(
    new ChangeListener() {
    public void stateChanged(ChangeEvent e) {
    if (((JTabbedPane)e.getSource()).getSelectedIndex() == 0) {
         jTabbedPane1.removeTabAt(1);
    There seems to be a MouseEvent in the event-queue behind the ChangeEvent, that causes a
    java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
    at java.util.Vector.elementAt(Vector.java:412)
    at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:347)
    at javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHandler.mousePressed(BasicTabbedPaneUI.java:1817)
    at java.awt.Component.processMouseEvent(Component.java:3707)
    at java.awt.Component.processEvent(Component.java:3539)
    at java.awt.Container.processEvent(Container.java:1159)
    at java.awt.Component.dispatchEventImpl(Component.java:2588)
    at java.awt.Container.dispatchEventImpl(Container.java:1208)
    at java.awt.Component.dispatchEvent(Component.java:2492)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2205)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)
    at java.awt.Container.dispatchEventImpl(Container.java:1195)
    at java.awt.Window.dispatchEventImpl(Window.java:921)
    at java.awt.Component.dispatchEvent(Component.java:2492)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
    because the Tab is already removed.
    Does anybody know how to remove the tab in the stateChanged() method without generating the exception afterwards?
    Thanks in advance for your help,
    Kai

    try deferring the remove until other events have been processed, like this: SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        jTabbedPane1.removeTabAt(1);
    });

  • Event problem with SDK 2005

    Hi,
    I want to catch the et_form_unload event of my form to validate if I want to block the form from closing.
    The problem is : we should use the et_FROM_UNLOAD event but if I set bubbleevent to false the form close anyway. (event if beforeaction = true)
    But if I use et_FORM_CLOSE everything works fine except that the et_FORM_CLOSE event is "deprecated in UI API 2004" and in 2 realeses my addon wil not work.
    Any hints ?

    Hi,
    I have seen the comment about et_FORM_CLOSE in the UI API Help for 2004 version...
    But in 2005 SP01 it is already there and it is not anymore marked as deprecated.
    There is even a comment about it in the list of changes. Pay attention this comment refers to <b>2005 SP01</b> version:
    <i><b>Topic</b>
    Added before event to close event. Ignore the bubble event setting in the after event.
    <b>Description</b>
    In this event SAP Business One will throw also before event and not only after event. Due to the fact the SAP Business One now is sending before event the bubble event setting in the after event will be ignore and the user will need to set the bubble setting like in the other type of event in the before.
    <b>Impact for Add-Ons</b>
    In previous versions only 'after' event was sent and the bubble flag was used. From 2005 version SAP Business One will ignore the bubble flag in after event. SAP Business One will send before event as well as after event and will use the bubble flag only in before event.
    <b>Possible Solution</b>
    1. check all place in the code on which close event were used and verify that behavior is kept
    2. check that this event handled only once (not 2 for the before and after)</i>
    I think it will not be deprecated, but to be sure please create a message for support to have it confirmed.
    Hope it helps
    Trinidad.

  • Window Event, problem with attaching listener

    Can someone point me in the right direction here
    1:
    window.nativeWindow.addEventListener(air.Event.RESIZE,onResizeComplete);
    2:
    window.nativeWindow.addEventListener(air.Event.MOVE,onMoveComplete);
    Line #1 works perfect, line #2 throws an error: "TypeError:
    Error #2007: Parameter type must be non-null."
    Both functions
    onResizeComplete and
    onMoveComplete are defined the same way.

    try deferring the remove until other events have been processed, like this: SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        jTabbedPane1.removeTabAt(1);
    });

Maybe you are looking for

  • Can we change the net value in the conditons of the sales order?

    Hello: I have below scenario: Sales order: Material           A PR01 (Price condition)               98 USD ZADD (Discount condition)        to be calculated by SAP R3 system (?%) Net price                                    80 USD (expected) Due to

  • Need to install Standard VGA Graphics Adapter

    My computer initially started with a Standard VGA Graphics Adapter but now its gone and some applications won't run properly. How can I fix this?

  • Proxy settings not sticking

    All, I've got a strange issue. I have a policy set up that has a proxy server set under /User Config/Windows Settings/Internet Explorer Maintenance/Connection/Proxy Settings. That works fine. However, I'm trying to add some local web resources into t

  • Planning Server Requires Restart to Show Changes to Business Rules

    Planning Web Services Requires stop ,and delete "server/Planning0/tmp" files in weblogic domain ,restart to Show Changes to Business Rules or New Business Rules.

  • What type of camcorder/camera will work?

    Okay, I have a Mac OS X version 10.2.8, and I wanted to know, are there any cameras or digital camcorders that would still be compatible with my computer (and iMovie version 3.0.3)? I'm not sure, since I would think they would be more compatible with