JComboBox listener problem

Hi all,
I have following problem, i use combobox and i need to write listener for selecting item.
But both ActionListener and ItemListener are unusable for me, because i dont know how to differ between selecting item when combobox is poped up.
I dont want to react on going thru items in popup, but only to FINAL select of button.
Please Help.
Mathew, HSIGP

     This works on non editable combo boxes
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
public class ComboBoxAction extends JFrame implements ActionListener
     JComboBox comboBox;
     public ComboBoxAction()
          comboBox = new JComboBox();
          comboBox.addActionListener( this );
          comboBox.addItem( "Item 1" );
          comboBox.addItem( "Item 2" );
          comboBox.addItem( "Item 3" );
          comboBox.addItem( "Item 4" );
          //  This prevents action events from being fired when the
          //  up/down arrow keys are used on the dropdown menu
          comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
          getContentPane().add( comboBox );
     public void actionPerformed(ActionEvent e)
          System.out.println( comboBox.getSelectedItem() );
          //  make sure popup is closed when 'isTableCellEditor' is used
          comboBox.hidePopup();
     public static void main(String[] args)
          final ComboBoxAction frame = new ComboBoxAction();
          frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
          frame.pack();
          frame.setVisible( true );
}

Similar Messages

  • JCombobox Listener is DEAF

    Hi Forum
    I am having a problem with my JCombobox Listener, It is not responding.
    I have a Actionperformed method listening for two things
    1 --JButton
    2 --JCombobox
    JCombox listen should work when I click "START RACE" button but it does not
    Here is the code embeded in my friends server, pls be carefull, and working code will be appreciated
    http://www.bespokesoft.com/cv/myRace.java
    (**Note This code compile and runs, just the JCOMBOBOX listener to work) assignment due 14.30 uk time
    Please help me, code will be appreciated!

    make this your actionPerformed()
    public void actionPerformed(ActionEvent evt)
      if(evt.getSource()==chooseBox) mule = (String)chooseBox.getSelectedItem();        
      else
        if (mule == null)
          messageField.setText("Please choose a horse");       
        else if (mule.equals("Choose a Horse"))
          messageField.setText("Please please choose a horse");
        else
          makeRace.runRace();
          makeRace.setResult(mule);
          potField.setText(" "+makeRace.getPot() );
          bankField.setText(" "+makeRace.getBank() );
          messageField.setText("Winner is horse number   "+makeRace.getHorseNumber()+" : "+makeRace.getHorse() );
    }

  • JComboBox cell editor *Listener problem

    Hi all,
    I've setup a TreeTable with a JComboBox as a CellEditor for the second column.
    Everything works just fine, except for event handling on a column with a JComboBox as cell editor.
    In my case, the second column of the TreeTable represents the state of the activities. This state can be changed either programmatically or by user input. That is, my application can automatically change the state for some reason, or the user can select a new state for a particular activity with the mouse.
    What I need to achieve is to capture events generated only from the user.
    I've tried different solutions, adding ActionListener or ItemListener to the CellEditor, but they all capture events generated by the application in addition to those generated by the user of the application.
    Can someone please give me some advice in this matter?
    Xserty

    What I need to achieve is to capture events generated only from the user.If you called the JComboBox's dataModel.setSelectedItem method yourself, no event will be fired!Unfortunately, I'm not able to update the dataModel (directly) myself.
    I'm currently using the Creating TreeTables: Part 3; here's how it kinda works: my JTreeTable extends JTable. The JTreeTable has a model: TreeTableModel extends DefaultTreeModel implements InterfaceJTreeTableModel. In this model there are two methods implemented as following:
    public Object getValueAt(Object pParentNode, int pColumn) {
      MutableActivityNode activityNode = (MutableActivityNode) pParentNode;
      try {
        switch (pColumn) {
          case 0 :
            return activityNode.getName();
          case 1 :
            return activityNode.getState();
          case 2 :
            return new Boolean(activityNode.isMonitored());
          default :
            // do something
      } catch (SecurityException se) {
        // do something
      return null;
    public void setValueAt(Object pValue, Object pNode, int pColumn) {
      MutableActivityNode activityNode = (MutableActivityNode) pNode;
      try {
        switch (pColumn) {
          case 1 :
            activityNode.setState((String) pValue);
            break;
          case 2 :
            activityNode.setIsMonitored(((Boolean) pValue).booleanValue());
            break;
          default :
            // do something
      } catch (SecurityException se) {
        // do something
    }Once I create my JTreeTable (with a model), I set the editor of the second column of my JTreeTable to a JComboBoxCellEditor.
    As you may have noticed, all the information are stored in the node of the TreeTableModel and the information is displayed and set by the two methods above.
    Thank you anyways for the advice :))
    Have you any idea on how I could solve the problem in this case?
    Xserty

  • Help! JcomboBox button listener problem

    Hi all,
    I wanna capture the action while the user is clicking the right button of the jcombo box (which is a down side arrow).
    I used mouseListener, it could only capture the action that the user drop the box , but not for the button.
    Anyone has idea for it?
    Thanks very much

    [url http://forum.java.sun.com/thread.jsp?forum=57&thread=532636]Crosspost.

  • JComboBox listener question

    Hi,
    I was wondering what kind of listener I would use to detect enter being pressed in a JComboBox.
    I tried an actionListener but this sends actionEvents at far too many times, I want to limit what I'm doing to only when the user presses enter in the JComboBox.
    It seems rather odd that a keyListener can't be used with a JComboBox, or at least according to the API specifications...
    All help is very appreciated!!

    The JComboBox itself just has the text field and then the down arrow, correct? Like if I am writing in that text field I am writing in the JComboBox? Basically all i need is a way to do something when the user presses 'enter', but not when all the other various things that trigger ordinary action events are fired. Using a keyListener to find out whether the key pressed was 'enter' seemed like the best way to do this, but if key events aren't even getting sent when the focus is in the text portion of the JComboBox that may not be the case. If there's anyway i can explain the problem better I'd be happy to do so.
    Thanks

  • Message Listener Problem (iDoc)

    I am receiving an iDoc successfully in the Message Listener within Mii.  I have created a Processing Rule for the Message Type and tied it to a simple BLS.  The BLS has an XML input parameter which is selected in the Processing Rule.
    The BLS simply maps the XML input parameter to an XML output parameter and that's it as I want to make sure communication is working before creating any BLS logic.
    The iDoc Message goes into failure status and this is what I get in the log:
    Unable to process request com.sap.jms.client.message.JMSObjectMessage@431f1d25
    [EXCEPTION]
    com.sap.xmii.bls.exceptions.TransactionLoadException: Unable to create transaction instance
    Any ideas why this is happening?

    After much searching and trial and error, I was able to locate the source of this problem.  While I was modifying the "Log Level" in the Processing Rule, someone else changed the Transaction Security to include the "SAP XMII Developer" role.  Once I remove this role from the BLS, the same symptom occurs. 
    It seems this is the only role that allows the Processing Rule to trigger the BLS's.  Is this hard coded somewhere in Mii that this role is required?  If so where can I find these types of requirements so I can avoid going through this for other Mii functionality in the future?
    Thanks

  • HELP!!! Listener problem on AIX 4.1 with oracle 7.2.2.0

    When I try to do "lnsrctl start" (or stop) the server give to me the error below:
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=ora7))
    TNS-12224: TNS:no listener
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    IBM/AIX RISC System/6000 Error: 2: No such file or directory
    Connecting to (ADDRESS=(COMMUNITY=TCP.world)(PROTOCOL=TCP)(Host=BILANCIO)(Port=1521))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    IBM/AIX RISC System/6000 Error: 79: Connection refused
    Connecting to (ADDRESS=(COMMUNITY=TCP.world)(PROTOCOL=TCP)(Host=BILANCIO)(Port=1526))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    IBM/AIX RISC System/6000 Error: 79: Connection refused
    On metalink, solutions are client side, but I have this problem on server side.
    I try to change host name to ip add, but problem persist.
    I try to reboot server (because I think the problem was the oracle istance) but the db works correctly.
    What can I do?
    thank u so much!!!
    pedro

    Hello Pedro,
    Please can you tell me if you resolved this issue you were having and how did you resolve this. I am having the same issue now....
    We did a restore to a different box and now cannot connect to the database and having same issues you described.
    Your help will be appreciated,
    Regards
    Avishkar Bandu

  • Oracle Listener Problem

    I am having a problem starting the Oracle Listener after a system crash on Windows NT.
    However, if I first connect to the internet and then try to restart, everything works ok.
    Why should I have to connect to the internet with my laptop in order to start the Oracle Listener?
    The message I am getting is as follows.
    C:\WINNT\Profiles\timh\Desktop>net start OracleStartORCL
    The OracleStartORCL service is starting..........
    The OracleStartORCL service was started successfully.
    C:\WINNT\Profiles\timh\Desktop>net start OracleTNSListener80
    The OracleTNSListener80 service is starting.
    The OracleTNSListener80 service could not be started.
    A system error has occurred.
    System error 1067 has occurred.
    The process terminated unexpectedly.
    null

    some more info.
    Given below is the output of status. does anything look bad or am I doing something wrong?
    for the service"abcd" it says has two instances, one of the status is unknown. does that matter is it always like that or I am asking very dumb questions?
    Please excuse me if that is the case.
    C:\lsnrctl status
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 23-JUL-2007 14:54:28
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=servername)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Produc
    tion
    Start Date 23-JUL-2007 10:27:09
    Uptime 0 days 4 hr. 27 min. 19 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Parameter File D:\oracle\ora92\network\admin\listener.ora
    Listener Log File D:\oracle\ora92\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=servername.domain)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=servername.domain)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=servername.domain)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "abcd" has 2 instance(s).
    Instance "abcd", status UNKNOWN, has 1 handler(s) for this service...
    Instance "abcd", status READY, has 1 handler(s) for this service...
    Service "abcdXDB" has 1 instance(s).
    Instance "abcd", status READY, has 1 handler(s) for this service...
    The command completed successfully

  • 9.2 and 10g on same machine, listener problem

    Hi,
    i had a 10g db on a solaris server. then i installed a 9.2 database on this server. I know that i should use the 10g listener for 9.2 database.
    But i cant manage to configure it correctly.
    The 10g listener name is LISTENER and 9.2 listener name is TPRS.
    what i did ? i opened netmgr and created a new listener named TPRS. added the database to it.(on the menu database services)
    when i try to start TPRS i get the following error message
    bash-2.05$ lsnrctl start TPRS
    LSNRCTL for Solaris: Version 10.1.0.4.2 - Production on 08-JUN-2009 16:05:22
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting /oracleAS/app/oracle/product/10.1.2.0.2/infra/bin/tnslsnr: please wait...
    TNSLSNR for Solaris: Version 10.1.0.4.2 - Production
    System parameter file is /oracleAS/app/oracle/product/10.1.2.0.2/infra/network/admin/listener.ora
    Log messages written to /oracleAS/app/oracle/product/10.1.2.0.2/infra/network/log/tprs.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sun3.tuprasnet.local)(PORT=1522)))
    TNS-01201: Listener cannot find executable /oracleAS/TPRS/app/oracle/product/9.2.0.1.0/bin/oracle for SID TPRS
    Listener failed to start. See the error message(s) above...
    The directory "/oracleAS/TPRS/app/oracle/product/9.2.0.1.0/bin/" exists , and oracle executable is under it. also /oracleAS/TPRS/app/oracle/product/9.2.0.1.0 is the oracle home for 9.2 database.
    The listener.ora file of 10g is like that:
    SID_LIST_TPRS =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = TPRS)
    (ORACLE_HOME = /oracleAS/TPRS/app/oracle/product/9.2.0.1.0)
    (SID_NAME = TPRS)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracleAS/app/oracle/product/10.1.2.0.2/infra)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = iasdb.tuprasnet.local)
    (ORACLE_HOME = /oracleAS/app/oracle/product/10.1.2.0.2/infra)
    (SID_NAME = IASDB)
    TPRS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sun3.tuprasnet.local)(PORT = 1522))
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sun3.tuprasnet.local)(PORT = 1521))
    what am i missing?
    Thanks in advance,
    mehmet

    We (Gerwin and I) had a small discussion about the problem at hand.
    The discussion is overlooking the obvious
    TNSLSNR for Solaris: Version 10.1.0.4.2 - Production
    System parameter file is /oracleAS/app/oracle/product/10.1.2.0.2/infra/network/admin/listener.ora
    Log messages written to /oracleAS/app/oracle/product/10.1.2.0.2/infra/network/log/tprs.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sun3.tuprasnet.local)(PORT=1522)))
    TNS-01201: Listener cannot find executable /oracleAS/TPRS/app/oracle/product/9.2.0.1.0/bin/oracle for SID TPRSSo the Solaris user that starts the listener HAS NO ACCESS rights to the directory path and/or the executables (lsnrctl / tnslsnr).
    [oracle@srv01-18-102 bin]$ ps -ef|grep tns
    oracle   11967     1  0 Jun07 ?        00:00:53 /u01/app/oracle/product/11.1.0/dbhome_1/bin/tnslsnr LISTENER -inherit
    oracle   28694 17439  0 17:49 pts/0    00:00:00 grep tnsYou can choose for a "more than one listener" solution or "only one listener". Whatever you do the unix user that starts the oracle, listener executables have to be the same OR sicky bits have to exist on the executables (so the user is allowed to start the executables and access the memory realms as if it was the actual owner).
    The moment you don't use the defaults - aka "LISTENER" or a non default port (1521), you will have to define this via the database parameter
    LOCAL_LISTENER
    SQL> conn / as sysdba
    SQL> show parameter local_listener
    NAME                                 TYPE        VALUE
    local_listener                       string
    SQL> ALTER system SET LOCAL_LISTENER=
            "(ADDRESS=(PROTOCOL=TCP)(HOST=sun3.tuprasnet.local)(PORT=1522))"
            scope=BOTH;
    System altered.
    SQL> show parameter local_listener
    NAME                                 TYPE        VALUE
    local_listener                       string      (ADDRESS=(PROTOCOL=TCP)(HOST=sun3.tuprasnet.local)(PORT=1522))Now the database "knows" that it has to register itself against "sun3.tuprasnet.local" and will be serviced via port 1522.
    After been set on database level, the "LOCAL_LISTENER" value can be resolved via the string itself or (*most common way of doing it is using a tnsalias*) is resolved via the tnsnames.ora file (the string given in LOCAL_LISTENER is an tns ALIAS).
    If you use ONE listener, then databases can register themselves against SQL*Net compatible listeners. So you don't have to use a 9i listener for a 9i database. A 10g database is also allowed.
    If I use a ONE listener solution, then I normally pick the listener from the highest database version and let all database versions use this listener.
    The post given here (http://www.liberidu.com/blog/?p=116): "Registering non-default XMLDB HTTP/WebDAV and FTP ports on a non-default Oracle Listener port" describes a use case which is even more "extreem" regarding shared server functionality, based on TWO listeners and NON-DEFAULT PORT addressing, based on an Oracle 9 and Oracle 10 environment on the same machine.
    HTH
    M.
    Edited by: Marco Gralike on Jun 8, 2009 6:01 PM

  • OAS 4.0.8 http listener problems

    I am running OAS 4.0.8 on NT w/ SP5. I followed the instructions for install in the latest (Jan 2000) release notes. The problem I am having is with the listeners. The admin and www default listeners start up fine, but if I create a new listener, it will not start up. The error message tells me to check the NT Event log but there is nothing there. Also there is no svwww.err file available to check because it never starts!
    I am completely lost on this one. Any help is appreciated.
    Thanks

    Try to use root for startup. Remember that port bellow 1024 is protected for root only.
    SA

  • Listener problem

    Hello,
    I have created new database and added connection string in to tnsnames.ora file but i am not able to connect with new database remotely.
    my tnsnames.ora file
    $ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/appl/oracle/product/10.2.0/db/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    PROD2=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 139.74.169.143)(PORT=1532))
    (CONNECT_DATA =
    (SID=ROD2))
    PROD=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 139.74.169.143)(PORT=1532))
    (CONNECT_DATA =
    (SID=PROD)
    listener.ora
    $ cat listener.ora
    # listener.ora Network Configuration File: /opt/appl/oracle/product/10.2.0/db/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER_PROD =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/appl/oracle/product/10.2.0/db)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = PROD)
    (ORACLE_HOME = /opt/appl/oracle/product/10.2.0/db)
    (SID_DESC=
    (SID_NAME = PROD2)
    (ORACLE_HOME = /opt/appl/oracle/product/10.2.0/db))
    LISTENER_PROD =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 139.74.169.143)(PORT = 1532))
    LSNRCTL> status LISTENER_PDMPROD
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER_PDMPROD
    Version TNSLSNR for HPUX: Version 10.2.0.4.0 - Production
    Start Date 06-MAR-2011 07:16:52
    Uptime 0 days 0 hr. 39 min. 31 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /opt/appl/oracle/product/10.2.0/db/network/admin/listener.ora
    Listener Log File /opt/appl/oracle/product/10.2.0/db/network/log/listener_pdmprod.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=139.74.169.143)(PORT=1532)))
    Services Summary...
    Service "PDMPROD" has 1 instance(s).
    Instance "PDMPROD", status UNKNOWN, has 1 handler(s) for this service...
    Service "PDMPROD2" has 1 instance(s).
    Instance "PDMPROD2", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> exit
    sqlnet.ora
    $ cat sqlnet.ora
    # sqlnet.ora Network Configuration File: /opt/appl/oracle/product/10.2.0/db/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    $ tnsping PDMPROD
    TNS Ping Utility for HPUX: Version 10.2.0.4.0 - Production on 06-MAR-2011 07:56:34
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    /opt/appl/oracle/product/10.2.0/db/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 139.74.169.143)(PORT=1532))) (CONNECT_DATA = (SID=PDMPROD)))
    OK (0 msec)
    $ tnsping PDMPROD2
    TNS Ping Utility for HPUX: Version 10.2.0.4.0 - Production on 06-MAR-2011 07:56:40
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    /opt/appl/oracle/product/10.2.0/db/network/admin/sqlnet.ora
    TNS-03505: Failed to resolve name

    If you would have looked up TNS-03505 you would have been easily able to solve this error yourself.
    Please look up this error now, and refrain from redundant posting, violating the Forums Etiquette.
    Thank you !!!
    Others : please don't spoon feed, and promote laziness. The problem is very easy to spot.
    Sybrand Bakker
    Senior Oracle DBA

  • Menu/submenu managing and Event Listening problem

    Hi guys,
    I'm creating a flashwebsite and I've got a problem with submenu appearing/disappering.
    What is extremely easy in html/jquery is taking me overburned in actiuonscript: make appear a submenu only when the mouse cursor is over its button and not over itself.
    Indeed I've my button/MC, that contains its submenu (which is a vertical list of MC), and when I go over it, submenu appears, when I leave, sub menu becomes invisible.
    BUT, when I go over the space under the button (where my invisible submenu is), submenu become visible another time. I know that cause is the listener associated to the main button is linked to all its nested MC.
    My question is: there is a way to declare a listener only to a MC and not for all is nested elements?
    If not, what shopuld I do for my pourpose?
    function createNav(lang:String = 'it') {
        var nav:Array = new Array({label: "CHI SIAMO", url: "../chi-siamo/index.php"},
                                  {label: "PRODUZIONE ESECUTIVA", url: "../produzione-esecutiva/index.php"},
                                  {label: "FILMOGRAFIA", url: "../filmografia/index.php"},
                                  {label: "CAMPILOTS", url: ""},
                                  {label: "PROGETTI", url: ""},
                                  {label: "NEWS", url: ""},
                                  {label: "CONTATTI", url: ""},
                                  {label: "LINGUE", url: "", submenu:new Array({label:"ITALIANO", url:""},
                                                                               {label:"INGLESE", url:""},
                                                                               {label:"TEDESCO", url:""},
                                                                               {label:"FRANCESE", url:""}
        var navHeight:Number = 25;//single element height
       //BUTTON CREATION
        for (var i = 0;i < nav.length;i++) {
            var item:MovieClip = new NavLink();
            item.label.text = nav[i].label;
            item.href = nav[i].url;
            if(nav[i].submenu != null){    //SUBMENU CREATION
                for(var j:int = 0; j < nav[i].submenu.length; j++){
                    var subLabel = new SubLabel();
                    subLabel.x = subLabel.y = 18 * (j + 1);
                    subLabel.tfMC.text = nav[i].submenu[j].label;
                    item.addChild(subLabel);               
            item.buttonMode = true;
            item.mouseChildren = false;
            item.addEventListener(MouseEvent.CLICK, function(e) {
                href = e.target.href;
                gotoAndPlay('page2page');
            var subMenuAnim:Array = new Array();
            item.addEventListener(MouseEvent.MOUSE_OVER, function(e) {
                var iconCocc:MovieClip = e.target.coccinella;
                var iconRotTween:Tween = new Tween(iconCocc, "rotation", Back.easeOut, iconCocc.rotation, (iconCocc.rotation + ((Math.random() * 200) + 200)), 2, true);
                //APPREAING ANIMATION
            item.addEventListener(MouseEvent.MOUSE_OUT, function(e) {
                for(var i:int = 0; i < subMenuAnim.length; i++){
                   //DISAPPREAING ANIMATION
                subMenuAnim = new Array();
            item.y = navHeight * i;
            item.visible = false;
            item.coccinella.rotation = (Math.random() * 200);
            nav_container.addChild(item);

    What are you doing to make the submenu invisible?  If you set its visible property to false it should not interact with the mouse, but if you are changing its alpha property to 0, it will react.

  • Parallel Port Listener problem

    hello everyone,
    I have downloaded the javax.comm package and installed it as given in the installation instructions. I can print my files using the javax.comm classes. But i do not get the Parallel Port Event even if i register a listener.
    Also for all the methods such as is PrinterError(), isPrinterTimedOut(), isPaperOut() etc i do not get anything else but flase. Even if the printer is online or not, or if the paper is out etc, in all cases only false is returned by these methods. Please tel me what could be the problem.
    All these methods return false even when the printer is online or not :
    parallelPort.isPrinterBusy()
    parallelPort.isPrinterError()
    parallelPort.isPrinterSelected()parallelPort.isPrinterTimedOut()
    parallelPort.isPaperOut()

    Well, i think you should be looking for specs about the printer(s) to find out how they communicate with windows. That might not be that easy because not all company's will be very open about that. You should realise that any message windows gives you about the printerstatus comes to you via the drivers for that printer. The drivers know how to communicate with the printer, and that's different per printer.
    The most used standard for printing is Postscript (I believe HP6L is a postscript printer) wich is supported by the 'bigger' printers. There will be info about Postscript on the web, but it is owned by Adobe and I son't know how free the specs are...
    An older dot matrix printer is more likely to be using the lines that are signal out busy, error etc. You will find the pin layout here: http://www.doc.ic.ac.uk/~ih/doc/par/doc/regpins.html
    If all your after is printing your files you might want to use java.awt.PrintJob wich will let you print through the spooler of the operating system, thus letting the OS handle the printer with the right drivers.

  • HTTP Listener problems

    Good day all,
    I have some problems regarding HTTP Listener:
    1. I cannot startup my www listener on port
    80, only Node Manager listener can be
    started. It gives out the errors:
    OWS-08811 & OWS-08851.
    2. I even cannot either view or edit the
    configuration for my HTTP listener.
    When I clicked on the properties such
    as Network, Server, etc, it just doesn't
    show up the configuration that I needed
    to see.
    I have already checked the environment variable: WV_GATEWAY_CFG, and it is in the right path. What could possibly went wrong?
    This is the specification of my installed products:
    Platform: Windows 2000
    DB: Oracle 8i Enterprise Edition 8.1.7.0.0
    Oracle 9ias 4.0.8.2.1a
    Any ideas? Thanks.
    - Alfian
    null

    As far as I know, there is no utilities to view the configuration as you have mentioned. All configurations are in configure files,
    they are
    httpd.conf
    jserv.conf
    jserv.properties
    zone.properties
    If someone does know such a utility, please tell me. :-)
    Regards,
    --tao                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Upgrade from 9i to 10g, solaris 8 listener problems now...

    I recently upgraded some databases from 9i to 10g. In an attempt to punt
    on the 9i listener - I attempted to start the 10g version of the listener
    which is producing the following error:
    -----paste
    lsnrctl startLSNRCTL for Solaris: Version 10.1.0.2.0 - Production on 15-AUG-2004
    15:13:03
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting /data/oracle/app/oracle/product/10g/bin/tnslsnr: please wait...
    TNSLSNR for Solaris: Version 10.1.0.2.0 - Production
    Log messages written to
    /data/oracle/app/oracle/product/10g/network/log/listener.log
    Listening on:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host.place.com)(PORT=1521)))
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    TNS-01114: LSNRCTL could not perform local OS authentication with the
    listener
    -----/paste
    Looking into the logs I see:
    -----paste
    TNSLSNR for Solaris: Version 10.1.0.2.0 - Production on 15-AUG-2004
    15:13:03
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Log messages written to
    /data/oracle/app/oracle/product/10g/network/log/listener.log
    Trace information written to
    /data/oracle/app/oracle/product/10g/network/trace/listener.trc
    Trace level is currently 0
    Started with pid=524
    Listening on:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host.place.com)(PORT=1521)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    15-AUG-2004 15:13:03 *
    (CONNECT_DATA=(CID=(PROGRAM=)(HOST=host)(USER=oracle))(COMMAND=status)(ARGUM
    ENTS=64)(SERVICE=LISTENER)(VERSION=168821248))
    * status * 1189
    TNS-01189: The listener could not authenticate the user
    TNS-12537: TNS:connection closed
    TNS-12560: TNS:protocol adapter error
    TNS-00507: Connection closed
    -----/paste
    I've read on this list that it might be a shared_memory_pool problem, So I
    think I've maxed out the mount of shared memory. This is a Sun Fire V240
    with 8G RAM, so /etc/system has:
    *set shmsys:shminfo_shmmax=268435456
    *set shmsys:shminfo_shmmax=4294967295
    set shmsys:shminfo_shmmax=8254455808
    set shmsys:shminfo_shmmin=200
    *set shmsys:shminfo_shmmni=200
    set shmsys:shminfo_shmmni=1024
    set shmsys:shminfo_shmseg=1024
    set semsys:seminfo_semmap=250
    set semsys:seminfo_semmni=500
    set semsys:seminfo_semmsl=500
    set semsys:seminfo_semmns=2000
    set semsys:seminfo_semmnu=500
    set semsys:seminfo_semume=100
    set semsys:seminfo_semvmx=32767
    set semsys:seminfo_semopm=100
    set noexec_user_stack = 1
    I am totally at a loss as to what the issue might be save some new tags
    needed in listener.ora... Any pointers/help more than welcome...
    Ian

    well, oracle's path seems to see 10g's version of the listener:
    hosts% which lsnrctl
    /data/oracle/app/oracle/product/10g/bin/lsnrctl
    I'm running this on the same host. ie loopback.
    After the error, the listener seems to be in the process table - but nothing can talk to it:
    oracle 856 818 0 20:05:06 pts/2 0:00 egrep lsnr
    oracle 838 1 0 19:57:26 ? 0:00 /data/oracle/app/oracle/product/10g/bin/tnslsnr LISTENER -inherit
    my listener.ora has:
    # listener.ora Network Configuration File: /data/oracle/app/oracle/product/10g/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /data/oracle/app/oracle/product/10g)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host.place.com)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /data/oracle/app/oracle/product/10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = erdos)
    (ORACLE_HOME = /data/oracle/app/oracle/product/10g)
    (SID_NAME = simora1)
    (SID_DESC =
    (GLOBAL_DBNAME = datamine)
    (ORACLE_HOME = /data/oracle/app/oracle/product/10g)
    (SID_NAME = datamine)
    (SID_DESC =
    (GLOBAL_DBNAME = interpnt.place.com)
    (ORACLE_HOME = /data/oracle/app/oracle/product/10g)
    (SID_NAME = interpnt)
    tnsnames has:
    DATAMINE.PLACE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = erdos.place.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = datamine)
    EXTPROC_CONNECTION_DATA.PLACE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    INST1_HTTP.PLACE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = erdos.place.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    INTERPNT.PLACE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = erdos.place.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = interpnt.place.com)
    ERDOS.PLACE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = erdos.place.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = erdos)
    SCALES03 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = scales-a.place.com)(PORT = 1521))
    (CONNECT_DATA =
    (SID=SCALES03)
    (SERVICE_NAME = SCALES03)

Maybe you are looking for

  • Case sensitivity select statement without using native sql

    please help me , i have a selection screen as select-options : s_vbeln, s_kunnr(mandt),s_matnr and p_name as a parameter (type name1) which is case sensitive in sap abap database and i want to get output  from these fields in an alv.[vbeln,kunnr,name

  • Cannot Connect to WiFi

    Hi,      After trying for about a half hour, the wifi on my new Ipad is not working. The wifi network appears when I go the the Wifi panel, but when I try to connect, it says "unable to join network." This has happened with other electronics, but I h

  • Help on profile pic

    How do you set an profile picture? Please help Message was edited by: simbaha2 at 4:45PM

  • I bought an app for someone but they never got the email. how do i resend it?

    i bought an app for someone but they never got the email. how do i resend it?

  • Condition record maitainence

    Dear All, We have created one quotation in that document under condition tab if we want to restrict the usage of condition type based on the user, what settings is needed to do for it. Say Condition record UTXJ - can be maitianed in the quotation by