Set_canvas_property's different behaviour in 9i

Hi folks,
My problem is that the code under works fine in 6i but does not in 9i (10g)
set_canvas_property(canvas_id,VISUAL_ATTRIBUTE,name_in('global.qcolor'));
(It's intended to change the background color of the canvas).
I tried to use BACKGROUND_COLOR instead of VISUAL_ATTRIBUTE either color names like blue,white and rgb codes without any result.
I have about 400 forms modules have this line so I don't want to declare a visual_attribute for this (which works fine in both version) and apply all of the modules if possible.
thanks., Sandor

Hi,
We use a general canvas background color thru the whole application. There is a pre-form trigger which contains that set_canvas_property line. (The default colors of the canvas are set which differ from the color I want to apply by that set_canvas_property command.)
thank.,Sandor

Similar Messages

  • SQL Server Management Studio and Native Client different behaviour on delete

    I have a problem with transaction containing insert and delete to same table and some select/insert/update to some other tables. Problematic table has primary key defined as combination of column1 and column2.
    When two different instances using Native Client execute simultaneously this code and make inserts to table then delete part of code causes deadlock. However this doesn't happen when trying this situation in MS SQL Server Management Studio query.
    Is there some option that is missing from Native Client connection string which can cause this different behaviour?

    Hello,
    I don't think there is a difference in the behavior. SSMS uses ADO.NET and that Provider base on the Native Client.
    The difference will be more that way, when the transaction is commited and so the locks released. I guess your application keeps the transaction (much) longer open; you should commit a transaction as soon as possible to avoid long time locks and so
    deadlocks.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • In-different behaviour of join condition

    My query is of in-different behaviour of join condition with join between a varchar2 column and a number column. I am using the following join condition :-
    CM.UPDATED_BY=to_char(LM.LOGIN_ID)
    where CM.UPDATED_BY is a varchar2 column and LM.LOGIN_ID is a number column. Now, CM.UPDATED_BY also has number only but some previous & old data is having varchar2 data. So, for that reason, i put the to_char before LM.LOGIN_ID, otherwise, only
    CM.UPDATED_BY=to_char(LM.LOGIN_ID)
    would having been okay. Now, my real question is that the query with the condition,
    CM.UPDATED_BY=to_char(LM.LOGIN_ID)
    works fine as long as there is no 'character' data in 'CM.UPDATED_BY'. If i put the condition:
    CM.UPDATED_BY=to_char(LM.LOGIN_ID)
    then, the query is taking too long and the output is also not coming. Please help in solving my doubt as i need it resolved urgently.

    1) Did you intend for all 4 join conditions to be identical? From the text of your question, it sounds like some of the conditions should be different.
    2) How do you compare the running time when CM.UPDATED_BY has non-numerica data and when it has numeric data? If you are altering the data in the table, are you reanalyzing the table between runs? Is there a difference in the query plan in the two cases?
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Different behaviour of XMLType storage

    hi,
    I have problem with different behaviour of storage type "BINARY XML" and regular storage ( simple CLOB I guess) of the XMLType datatype.
    Setup
    - Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    - XML file ( "Receipt.xml" ) with a structure like :
    <?xml version="1.0" encoding="UTF-8"?>
    <ESBReceiptMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <ESBMessageHeader>
              <MsgSeqNumber>4713</MsgSeqNumber>
              <MessageType>Receipt</MessageType>
              <MessageVersion>1.1</MessageVersion>
         </ESBMessageHeader>
         <Receipt>
              <ReceiptKey>1234567-03</ReceiptKey>          
              <ReceiptLines>
                   <ReceiptLine><Material><MaterialKey>00011-015-000</MaterialKey></Material><Qty>47.0</Qty></ReceiptLine>
                   <ReceiptLine><Material><MaterialKey>00021-015-000</MaterialKey></Material><Qty>47.0</Qty></ReceiptLine>
                   <ReceiptLine><Material><MaterialKey>00031-015-000</MaterialKey></Material><Qty>47.0</Qty></ReceiptLine>
    .....etc....etc.....etc...
                   <ReceiptLine><Material><MaterialKey>09991-015-000</MaterialKey></Material><Qty>47.0</Qty></ReceiptLine>
                   <ReceiptLine><Material><MaterialKey>10001-015-000</MaterialKey></Material><Qty>47.0</Qty></ReceiptLine>
                   <ReceiptLine><Material><MaterialKey>10011-015-000</MaterialKey></Material><Qty>47.0</Qty></ReceiptLine>
              </ReceiptLines>
         </Receipt>
    </ESBReceiptMessage>=> 1 Header element : "Receipt" and exactly 1001 "ReceiptLine" elements.
    Problem:
    Test 1 :
    drop table xml_ddb;
    CREATE TABLE xml_ddb (id number,xml_doc XMLType);
    INSERT INTO xml_ddb (id, xml_doc)  VALUES (4716,XMLType(bfilename('XMLDIR', 'Receipt.xml'),nls_charset_id('AL32UTF8')));
    select count(1) from (
    SELECT dd.id,ta.Receiptkey,li.materialkey,li.qty
       FROM xml_ddb dd,
            XMLTable('/ESBReceiptMessage/Receipt' PASSING dd.xml_doc
                     COLUMNS ReceiptKey VARCHAR2(28) PATH 'ReceiptKey',
                             ReceiptLine XMLType PATH 'ReceiptLines/ReceiptLine') ta,
            XMLTable('ReceiptLine' PASSING ta.ReceiptLine
                     COLUMNS materialkey VARCHAR2(14)  PATH 'Material/MaterialKey',
                             qty         NUMBER(10)    PATH 'Qty') li
      COUNT(1)
          1001
    1 row selected.The storage of the XMLType column has not been specified.
    => All 1001 detailled rows are selected.
    => Everything is fine
    Test 2 :
    drop table xml_ddb;
    CREATE TABLE xml_ddb (id number,xml_doc XMLType) XMLType xml_doc store AS BINARY XML; -- <---- Different storage type
    INSERT INTO xml_ddb (id, xml_doc)  VALUES (4716,XMLType(bfilename('XMLDIR', 'Receipt.xml'),nls_charset_id('AL32UTF8')));
    select count(1) from (
    SELECT dd.id,ta.Receiptkey,li.materialkey,li.qty
       FROM xml_ddb dd,
            XMLTable('/ESBReceiptMessage/Receipt' PASSING dd.xml_doc
                     COLUMNS ReceiptKey VARCHAR2(28) PATH 'ReceiptKey',
                             ReceiptLine XMLType PATH 'ReceiptLines/ReceiptLine') ta,
            XMLTable('ReceiptLine' PASSING ta.ReceiptLine
                     COLUMNS materialkey VARCHAR2(14)  PATH 'Material/MaterialKey',
                             qty         NUMBER(10)    PATH 'Qty') li
      COUNT(1)
          1000
    1 row selected.Storage of the XMLType column has been defined as "BINARY XML"
    => Only 1000 rows are select
    => One row is missing.
    After some tests : There seems to be a "hard border" of 1000 rows that comes with the different datatype ( So if you put 2000 rows into the XML you will get also only 1000 rows back )
    Question
    As I am a newbie in XMLDB :
    - Is the "construction" with the nested tables in the select-statement maybe not recommended/"allowed" ?
    - Are there different ways to get back "Head" + "Line" elements in a relational structure ( even if there are more than 1000 lines) ?
    Thanks in advance
    Bye
    Stefan

    hi,
    General
    You are right. I have a predefined XSD structure. And now I try to find a way to handle this in Oracle ( up to now, we are doing XML handling in Java ( with JAXB ) outside the DB)
    => So I will take a look at the "object-relational" storage. Thank's for that hint.
    Current thread
    The question, whether there is an "artifical" border of 1000 rows, when joining 2 XML tables together, is still open....
    (although it might be not interesting for me anymore :-), maybe somebody else will need the answer...)
    Bye
    Stefan

  • Different behaviour between 1.4,1.5_05, 1.5_07.

    Hi and thanks in advance for your help,
    Looking for pointers to a solution for a problem I have.
    A set of Java classes subscribe to a subscription service and listen for updates on a network. To do this the JVM uses JNI (actually a JIntegra vendor product) to talk to the Windows DLL files on the server, it�s these files that actually listen for the updates. The information is then passed back up to the JVM (via the JIntegra libraries). The strange behaviour i get is as follows:
    1.     No problems with JDK 1.4.*
    2.     JDK1.5_05: The program runs fine for a few minutes and then crashes out BUT with no stack trace or errors at all (it just terminates).
    3.     JDK 1.5_07: The program runs ok to start with but then consumes all the file handles on the Windows server. After approx 4hrs the program hangs as it has consumed all the servers spare file handles (in fact 3,800,000 of them).
    The added problem of debugging this, is that we use a vendor for the Java/COM+ interaction and we don�t have the source code, But I have tried different versions of the JIntergra without any change in the behaviour (so i don't think its that). It appears to be the JVM version that causes the change in behaviour.
    I do not understand why I get such different behaviour from the different versions of Java? Although both JDK1.5 don't work.
    I was wondering if someone can point me in the right direction for trying to get JVM information outputted when the JDK1.5_05 crashes out.
    How can I put a hook in the JVM in my code to output information when it exits. I realise its doing it unexpectedly so this type of solution might not work but I find it strange that no error is thrown.
    Also; Does anyone know of any bugs that might possibly explain any this behaviour?
    Any ideas anyone.

    Jintegra recommend using 1.5. I will check the JNI bugs database to see if anything like this has happened before:
    Got this one stacktrace recently:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (4D555445583F57494E13120E4350500080), pid=1944, tid=1500
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing)
    # Can not save log file, dump to screen..
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (4D555445583F57494E13120E4350500080), pid=1944, tid=1500
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing)
    --------------- T H R E A D ---------------
    Current thread is native thread
    Stack: [0x045e0000,0x04620000), sp=0x0461fb08, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x11f2eb]
    V [jvm.dll+0x62f13]
    V [jvm.dll+0xd1741]
    V [jvm.dll+0xd18f0]
    V [jvm.dll+0x90d16]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x03029730 JavaThread "J-Integra COM initialization thread (please don't touch)" daemon [_thread_blocked, id=1684]
    0x00237c28 JavaThread "DestroyJavaVM" [_thread_blocked, id=3112]
    0x009fc7c8 JavaThread "Thread-0" [_thread_blocked, id=2996]
    0x009a16a8 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2860]
    0x00238478 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1464]
    0x0099f730 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3168]
    0x009998e0 JavaThread "Finalizer" daemon [_thread_blocked, id=2928]
    0x0023fae0 JavaThread "Reference Handler" daemon [_thread_blocked, id=2268]
    Other Threads:
    0x009982d8 VMThread [id=2036]
    0x009a2ce8 WatcherThread [id=532]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 576K, used 244K [0x22ab0000, 0x22b50000, 0x22f90000)
    eden space 512K, 47% used [0x22ab0000, 0x22aec330, 0x22b30000)
    from space 64K, 6% used [0x22b40000, 0x22b410a8, 0x22b50000)
    to space 64K, 0% used [0x22b30000, 0x22b30000, 0x22b40000)
    tenured generation total 1408K, used 917K [0x22f90000, 0x230f0000, 0x26ab0000)
    the space 1408K, 65% used [0x22f90000, 0x23075430, 0x23075600, 0x230f0000)
    compacting perm gen total 8192K, used 1354K [0x26ab0000, 0x272b0000, 0x2aab0000)
    the space 8192K, 16% used [0x26ab0000, 0x26c02a20, 0x26c02c00, 0x272b0000)
    ro space 8192K, 67% used [0x2aab0000, 0x2b00d9f8, 0x2b00da00, 0x2b2b0000)
    rw space 12288K, 46% used [0x2b2b0000, 0x2b853808, 0x2b853a00, 0x2beb0000)
    Not sure what 'Internal Error (4D555445583F57494E13120E4350500080)' represents.
    Thanks for your advice.

  • Different behaviour of Flash content when on server

    Hi
    I have noticed different behaviours of my Flash movie in case
    a/ I am checking offline content (SWF) using the fault view (Show All)
    b/ I am checking  the SWF in a HTML file on a server.
    More concrete: Depending on a number of conditions I attach a movieclip to a certain object. This works fine in offline mode.
    Another example: Depending on a certain zoom level of the application, I unload some SWF.
    All works fine offline.
    When I check this online, the attach movieclip function only works in some cases, the unload of SWF does not work .
    What can be the cause ?
    bestregards
    eG

    Not sure about most of your questions -- this is all new stuff for me, too. But on this one item, I hope this helps:
    For example it tells me that a plugin (which has already been installed) needs to be installed.If you installed the Mozilla browser after initially installing the java plugin in IE, then the plugin needs to be installed within the Mozilla browser's plugins directory. And I have never been able to get Netscape or Firefox to install a Forms plugin properly. It seems like I need to run IE to get the plugin installed automatically. Then I go back to the other browser and all is ok. Looking into the Mozilla-based browser's plugins folders, I can see that running the plugin install through IE also copies the corresponding .dll file into all the Mozilla-based browsers' plugins folders.
    But since you have already installed the plugin in IE, I am not sure how you would get it to work for the other browser. But if you can identify the .dll required, just copy it yourself into your Mozilla browser's folder.

  • Different behaviour of j_security_check between 6.1 and 8.1

    Hi,
    we have a web-application that is secured via security-constraints in
    the web.xml. We are authenticating using FORM-based authentification and
    had this app deployed on a wls6.1. Now we have moved to 8.1 and have a
    different behaviour between 6.1 and 8.1 for log-in forms using the
    j_security_check. We have login-boxes on most pages:
    <form method="POST" action="j_security_check">
                                  Username<br><input type="text" name="j_username" size=11
    class="texteingabe"><br>
                                  Password<br><input type="password" name="j_password" size=8
    class="texteingabe"> <input type=image
    src="/dvrWebApp/htdocs/images/pfeil_rechts_hi.gif" border=0><br>
    </form>
    that on 6.1 redirected after the login to the page they were placed on -
    on 8.1 the login redirects to the root of the web-app, regardless of the
    page they are placed- can i change this back to the old 6.1-Behaviour?!
    cheers
    stf

    This sounds like bollocks, I was doing some form based security recently under 8.1 and there was no attempt to direct to any page i was not trying to access.
    The idea is you try to access a protected resource, your not authorized, so you are authenticated, then you continue on to that resource.
    Are you sure, that the resource your accessing does not direct you there because of some inbuilt business logic in your JSP/servlet ?

  • Different behaviour inside a Thread

    Hello ,
    I am developing a software to help in automating certain tasks related to certain voice switch , i connect to the switch using ssh . i send commands generally using a button that ptints the content of a textbox into the outputstream . every thing works fine as long as i print the command into the outputstream from the code of the button press event . This hangs the interdace because i have to wait for a specific output format . So i used a Thread to execute the same code so that the interface doesn't hang . The strange thing is after the thread finishes i am not able to receive any thing from the switch ( although the printing into the output stream doesn't produce any exceptions and this is not the same if i executed the same code without the thread) . The question is why the program has different behaviour inside a thread and outside it ?
    Best Regards ,

    >
    Sounds like this actually is more related to Swing than concurrency (if I'm correct). I think that everything is working, but you are failing to update the UI with the result. You are only allowed to update the UI from the AWT thread, so you probably need to publish the result using invokeLater or use a SwingWorker.

  • Different behaviour in MAX vs. LabVIEW when writing to IMAQdx GigE attribute

    Hi, I am controlling a Dalsa GigE camera in LabVIEW RT using IMAQdx.  Apart from a couple of quirks with the interface we are acquiring images without much problems at the moment.  
    However, there are one or two issues that are confusing us.  In this case, it is possible to set an attribute in MAX (a command attribute that instructs the camera to perform internal calibration) but when setting the same attribute in LabVIEW the error 0xBFF69010 (-1074360304) Unable to set attribute is thrown.  See attached images.
    I check whether the attribute is writable before attempting a write.  It is, however the write is unsuccessful and reading the iswritable attribute then returns false.  In MAX I can write to this attribute without any issues.  
    Is there anything that I need to configure/read/write in my LabVIEW code that MAX does.  Does MAX write to all attributes (based on the values in the XML file) when it opens the camera or does it simply read all the values from the camera.  When LabVIEW opens a camera reference does it perform the same steps as what MAX does - I'm trying to figure out what the difference between MAX and LabVIEW could be that could be causing this behaviour.
    Any help will be appreciated.
    Solved!
    Go to Solution.
    Attachments:
    Diagram.png ‏15 KB
    FrontPanel.png ‏8 KB
    It works in MAX.png ‏20 KB

    AnthonV wrote:
    Hi, I am controlling a Dalsa GigE camera in LabVIEW RT using IMAQdx.  Apart from a couple of quirks with the interface we are acquiring images without much problems at the moment.  
    However, there are one or two issues that are confusing us.  In this case, it is possible to set an attribute in MAX (a command attribute that instructs the camera to perform internal calibration) but when setting the same attribute in LabVIEW the error 0xBFF69010 (-1074360304) Unable to set attribute is thrown.  See attached images.
    I check whether the attribute is writable before attempting a write.  It is, however the write is unsuccessful and reading the iswritable attribute then returns false.  In MAX I can write to this attribute without any issues.  
    Is there anything that I need to configure/read/write in my LabVIEW code that MAX does.  Does MAX write to all attributes (based on the values in the XML file) when it opens the camera or does it simply read all the values from the camera.  When LabVIEW opens a camera reference does it perform the same steps as what MAX does - I'm trying to figure out what the difference between MAX and LabVIEW could be that could be causing this behaviour.
    Any help will be appreciated.
    Hi AnthonV,
    "Quirky" is a good way to describe the Spyder3 when it comes to the GigE Vision/GenICam interface (as opposed to Dalsa's driver which communicates using custom serial commands to the camera over ethernet)....
    The Spyder3 has a lot of timing-dependent issues. It is possible that the delay between opening the camera and setting that feature is different via MAX vs your code in LabVIEW. Also, there are certain cases where MAX will surpress the error from being displayed. Ignoring the error shown vs. not, do you see the feature take effect in either of the two cases?
    The basic behavior between MAX and LabVIEW is the same. In both cases when you open the camera all the settings are loaded from our camera file which has the saved camera settings. This file is created the first time you open the camera and is updated whenever you click Save in MAX or call an API function to save the settings. In any case, I do know that the Spyder3 has various issues saving/restoring settings to our camera files.
    I suggest talking with Dalsa about the issues you are having. They might be able to set you up with newer firmware that addresses some of these problems (we have worked with them in the past to identify many of them).
    Eric

  • Different behaviour in JMS Cluster automatic failover

    Hi,
              I am problem in JMS clustering, now let me explain the scenario.
              I have 2 managed servers participating in the weblogic cluster, now since JMS is a singleton service what i did is i have created 2 JMS servers and targeted them to Managedservers 1 and 2 respectively.I have also created a Distributed Destination and deploy they with the deployment "wizard" ("autodeploy") to all the member of the cluster.
              Now in my case I created two different type of client
              Asynchronous and synchronous .
              The first one register himself as MessageListener and also as ExceptionListener. When I bring down the managed server in which the client is connect the call back method onException is called.
              The second client instead register himself as ExceptionListener but not as MessageListener. It call in different thread the receive method on the destination.
              In this case if i I bring down the managed server in which the client is connect the call back method onException is NOT called, instead i receive the JMSException on all the call "receive".
              I expected that the behaviour was the same of the firts client.
              Thanks in advance.
              dani

    Its not clear from your description what you're trying to do, as typical apps use a single module, including those that use distributed destinations, and typical apps do not use the convention of specifying a module name in their JNDI name. (The "!" syntax makes me suspect that you're not using JNDI to lookup destinations, rather you're using the rarely recommended JMS session "createQueue()" call.).
    Never-the-less, I suspect the problem is simply that your using a distributed queue and haven't realized that queue browsers and consumers pin themselves to a single queue member. To ensure full coverage of a distributed queue, the best practice is to use a WebLogic MDB: WebLogic MDBs automatically ensure that each queue member has consumers.
    By the way, if you are using a distributed queues, then the best practice config is as follows for each homogeneous set of JMS servers:
    -- Configure a custom WL store per server, target to the server's default migratable target.
    -- Configure a JMS server per server, target to the server's default migratable target, set the store for the JMS server to be the same as the custom store.
    -- Configure a single JMS module, target to the cluster.
    -- Configure a single subdeployment for the module that references each JMS server (and nothing else).
    -- Configure one or more distributed queues for the module. Never use default targeting -- instead use advanced subdeployment targeting to target each distributed queue to the single subdeployment you defined earlier.
    -- Configure one or more custom connection factories in the module, use default targeting.
    I recommend that you read through the JMS admin and programmer's guides in the edocs if you haven't done so already. You might find that the JMS chapter of the new book "Professional Oracle WebLogic" is helpful.
    Tom
    Edited by: TomB on Nov 4, 2009 10:12 AM

  • DW CS3 to CS4 : different behaviour on click event on TabbedPanels

    Hi all,
    In the CS3 spry tabbedpanels wingets, if they add a href link in a thumb-index, the directed page is correctly shown.
    In CS4 ds'nt work, the tab is simply shown !
    To try it, show the code below.
    Is there a resolution to use HREF in them in CS4?
    Best regards
    Pascal
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Document sans nom</title>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0">Onglet 2</li>
          <li class="TabbedPanelsTab" tabindex="0"><a href="index.html">Click to go on index.html</a></li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">Contenu 1</div>
        <div class="TabbedPanelsContent">Contenu 2</div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    //-->
    </script>
    </body>
    </html>

    Spry overwrites the "default" actions of the browser to allow different markup for the widget. To overcome this behaviour again you can add a small hack on your <a> element:
    onclick="window.location = this.href;"

  • JComboBox - different behaviour in 1.3 and 1.4

    I have noticed that there is a difference in JCombobox behaviour in 1.3 and 1.4.
    I think it is better to give the program than explaining the issue.
    the below given program shows the difference.
    import javax.swing.* ;
    import java.awt.* ;
    import java.awt.event.* ;
    import java.util.* ;
    * Test program to show difference between
    * Combo behaviour in java1.3 and 1.4
    public class CTest extends JFrame
         private JComboBox combo1 ;
         private JComboBox combo2 ;
         public CTest()
              super() ;
         public void init()
         combo1 = new JComboBox() ;
              combo1.addItemListener( new ItemListener()
                        public void itemStateChanged( ItemEvent event )
                        if (null != combo1.getSelectedItem() && event.getStateChange() == ItemEvent.SELECTED)
                             loadCombo2(combo1.getSelectedIndex()+1) ;
         combo2 = new JComboBox() ;
              combo2.addItemListener( new ItemListener()
                        public void itemStateChanged( ItemEvent event )
                        if (null != combo2.getSelectedItem() && event.getStateChange() == ItemEvent.SELECTED)
                             System.out.println("Combo2 item selected : "+ combo2.getSelectedItem()) ;
              JPanel panel = new JPanel(new BorderLayout()) ;
              panel.add(combo1,BorderLayout.NORTH) ;
              panel.add(combo2,BorderLayout.SOUTH) ;
              getContentPane().add(panel) ;
         public void loadCombo1()
              combo1.removeAllItems() ;
              for (int iCount = 0 ; iCount <5 ; iCount++)
                   String strItem = "Item : "+iCount ;
              combo1.addItem(strItem) ;
              try
                   combo1.setSelectedIndex(0) ;
              catch(Exception e)
         private void loadCombo2(int itemCount)
              combo2.removeAllItems() ;
              for (int iCount = 0 ; iCount <itemCount ; iCount++)
                   String strItem = "Item : "+iCount ;
              combo2.addItem(strItem) ;
              try
                   combo2.setSelectedIndex(0) ;
              catch(Exception e)
         public static final void main(String args[])
              CTest app = new CTest() ;
              app.init() ;
              app.setSize(100,100) ;
              app.setVisible(true) ;
              app.loadCombo1() ;
    In jdk1.3 every time you change the selection in combo 1 there will be selection change in combo 2 also. but not in jdk1.4.
    i am not sure whether it is a bug. But surely te behaviour is different.
    any comments on this issue???

    Anil,
    I've just noticed this as well, so I had a quick look at the 1.4 sources. Quite simply, adding and removing items in a JComboBox will never fire an ItemStateChangedEvent, even if the selected item does change.
    The culprits are intervalAdded() and intervalRemoved() in JComboBox.java. Under 1.3 these methods called contentsChanged() which would then fire an ItemStateChangedEvent if necessary. Under 1.4, these methods are empty. Why? I have no idea. It seems like a bug to me, but can't see anything in the bug database about it. Hope someone from Sun can explain it.
    Regards,
    Peter

  • Different behaviour on windows and linux

    On a text field , I have attached a number converter, just to make sure that user enters the number else gets an error message.
    Things looks fine but it behaves differently on windows and linux os.
    When I am running this application on windows if user enters
    123456.46, it is stored as it is i.e 123456.46 in MySQL db.
    However, if run this on linux and if user enters 123456.46 then it is stored in MySQL db as 123456.460000000006402842700481414794921875
    I am not sure where the problem is. Can somebody guide me about it.
    Thanks.

    Not sure why the behaviour is different, but coded to remove the extra fractions.

  • Different behaviour of a application inside/outside a portal

    Hello,
    i want to run a web-application inside a portal. If the iview(URL-IView) is running inside the portal the input fields of the application are not editable. You first have to press a submit button. Then it works.
    If the iview starts in a new window or outside the portal everything is working fine. I can't influence the bahaviour of the web-application. So my question: Is there a iview-property to influence this behaviour,so that i can run application inside a portal-page? Outside a portal it is running fine.
    Regards
    Marco

    Hi Marco,
    > that simulates the iview running as an web-application
    > outside the portal
    In most cases, the applications behave totally normal. Problems arise if for example an application uses frames and does reference to _top (which inside the portal returns a different (wrong) source than standalone).
    > What kind of application-JS could influence this
    > different application behaviour?
    For example: See above. But as said originally: This is almost indeterminable remotely...
    Hope it helps
    Detlev

  • Different behaviour between IE6 and IE on opening Office documents via KM

    Hi all,
    we're in the process of rolling out Internet Explorer 7 (IE7) and noticed something unexpected when opening non-html documents from a KM navigation iview. When clicking on the links in the ivew the documents are all opened in a new window because the hyperlink / href contains "target=_blank". When the document itself is for instance an Excel document, the browser will ask wether you want to open the document or not. When you choose to open the document, Excel launches and the blank IE6 window is closed in the background. When the user is done with the document he or she will return to the portal screen.
    This nice behaviour does not occur with IE7. The blank window remains open so when the user closes the Office document they are looking at an empty IE7 screen.
    Is there any way to fix this by customization or even by code change? It seems to me that this is more a SAP issue because for all HTML pages and for all documents that have IE plugins such as PDF'syou want to open a new window but for the others you want only the application to be lauched, not an empty IE.
    Message [3141588|https://www.sdn.sap.com/irj/sdn/thread?threadID=147594&messageID=3141588#3141588] seems to deal with the same problem and got a somewhat disturbing answer.
    The resource rendering parameter rndOpenTargetType does not seem to help see [Help.sap.com|http://help.sap.com/saphelp_nw70/helpdata/EN/87/3d48475ee8bd448c4031aa98d90524/frameset.htm]
    Marcel

    I found the solution on another site, superuser.com, so I can't claim the solution as my own, but it worked for me. Kent Ng says: 
    I face the similar issue with Excel 2003. If you have installed Skype-Click-to-Call, just removed it to resolve this issue.

Maybe you are looking for

  • Sharing preferences bad???

    Hi; Something is up with file sharing on my computer, part of a home network of 5. I've always had file sharing turned 'on' on this computer and others could log in if they were adminstrators. Now, all of a sudden they can't log in any more. They get

  • How do I flip individual characters in a text frame.

    I have some outlined text, with tracking decreased so they overlap, and every second letter's size slightly different so the paths don't merge. I would like the 1st letter to be on top, without breaking it all into individual text frames, and i don't

  • Include Paycheck in Payment Wizard

    Hi there, I'm new to this forum and I was wondering if it's possible to include the paycheck or salary of the employees within SAP. At this moment the salary is payed manually however it would be nice if it's possible to embed this information within

  • File Exists

    Hi experts, I have an issue "java.io.File". File f = new File( this.myFM.myGlobal.AgreementsDirectory + "/" + ClientDocBean.getSubdirectory() + "/" + ClientDocBean.getFilename()); // Check that the file exists, if not then throw an error if(!f.exists

  • Flash CS 5.5 Crashes when selecting Text Tool

    Need some help here.  Trying to work on a project for class and everytime I select the text tool (menu bar/tool bar/keyboard shortcut) it crashes...I have tried using both purchased product and trial version.  Getting no help from support when I chat