Java bug in a multi monitor application

Hi,
I am developing an application using three monitors on windows platform. I am using a NVidia GeForce 4 card to derive the monitors. My application opens up in a secondary monitor, It consists of a Canvas whose parent is a JScrollPane, a JTree whose parent is another JScrollPane. The problem is if I load an image on the canvas and slide the scrollbars attached to the canvas, The canvas does not repaint itself, for which I had to add a listener which repaints the canvas each time the scrollbars are slided. Similar problem is with the JTree scroller, so I call the UpdateUI for the jtree each time the scroller is slided. A few days ago I added a JCombobox to my application. When i click it, obviously a dropdown menu appears with a slider. When i move the slider, the JComboBox does not repaint and I am having difficulty capturing the combobox's slider event. That's not all, I also experienced the repaint problem with other swing components for which I have to explicitly call the UpdateUI method. I got to a point that I had to literally call the update method for every swing component I am using which is dropping my applications efficiency. So I changed my monitor's setting and assigned my secondary monitor as the primary monitor using the windows display properties and it worked. The scrollbars work, and everything is repainting. So the solution is to change my display setting programatically so that the secondary monitors becomes the primary monitor, but I am not able to do that. I need some help regarding this.
If I have three monitors on a single computer, and I want to change the secondary monitor to primary, how can I do it using Java?
I hope I explained the problem. I hope someone has an answer.
Babar Noor

Using Java:
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode)
When working in a multiscreen environment using NVIDIA Quadro PCI-E Series' Quadro NVS 280 PCI-E, with two screens (1024x768 display) , DirectX 9.0. One screen is oriented as portrait (secundary screen), the other a landscape (primary screen).
I run my Swing application, move the frame to the portrait oriented screen,
The gui has a default JScrollPane, then when I maximize the gui, I get a horizontal and vertical scrollbar. Moving the horizontal scrollbar , the default viewport fails to repaint the screen correctly.
The solution that worked for me was to set the ViewPort's scrollMode:
scrollpane.getViewport().setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
as suggested in
http://forum.java.sun.com/thread.jspa?messageID=3625667&#3625667

Similar Messages

  • Multi-monitor application switching bug in Windows 8.1

    In the latest 8.1 update, we got some better features here and there, but using metro apps seem to break multi-monitor setups. 
    In certain circumstances, the cursor will get "caught" between screen edges, as if the metro app-switcher or charms bar were open.
    There's no one way to reproduce this bug, sometimes it happens and sometimes it doesn't, but it usually starts to happen when switching from a metro app to the desktop on the main display via the top-left hotcorner.
    This may also happen in many other circumstances involving metro apps or the hotcorners or anything like that. I have not had a problem involving the start screen so far. Getting rid of it (temporarily) is just as finicky as reproducing the issue. I really
    have no idea what makes it go away, but switching back and forth between apps using different methods (hotcorners, taskbar, metro minimize/close buttons) seems to get rid of it until you interact with apps again.
    I have an AMD r9 280x and 2 1080p displays. I am not using eyefinity. I am running Win 8.1 Pro updated to the latest 8.1 update where there are metro apps on the taskbar.
    Needless to say, this is very annoying. If I can't smoothly move my mouse cursor between screens, it really interferes with a dual/multi screen setup. With all the people with multiple screens, I'd expect more people to have run across this problem, so if
    you need more information to identify whether this is a software/OS issue, let me know.

    In certain circumstances, the cursor will get "caught" between screen edges, as if the metro app-switcher or charms bar were open.
    That's not a bug.  It's a feature.  Unfortunately there is no GUI support for it.  And evidently there needs to be a training dialog, in the same way that there is one for Flicks.  Search for  "Escape Velocity"...
    http://answers.microsoft.com/en-us/windows/forum/windows8_1-windows_update/issue-with-dual-monitors-after-windows-81-update/30431433-32a7-48e7-853e-f6f391f5fa3e?msgId=2139704d-c2d2-44e6-b466-452769e7fdbf
    That's strange.  They called it Escape speed?  Implying direction doesn't matter?  <eg>
    Robert Aldwinckle

  • Java Security Manager in Multi-threaded application

    I am writing a multi-threaded application listening (TCP and UDP) to several ports. To help implement certain security features (eg. refusing connections from certain ip address), I'm using the java.lang.SecurityManager (by subclassing it). I am having a few problems and queries and am hoping someone here can help me.
    1. As all the threads are calling the checkAccept(host, port) method. Is there a way to know which thread is currently accessing the security manager? For example if host A were to make 2 connections to the application, one to thread 1 (say listening to port 5001) and the other to to thread 2 (say listening to port 5002). I intend to refuse the connection to thread 2 but there is not way of differentiating the 2 connections since they are from the same host and there isnt any way of knowing their port number.
    2. Are calls to the Security Manager thread safe?
    I have been having this problem for a long time, would appreciate if someone can help point me to the right direction. cheers.

    1. As all the threads are calling the
    checkAccept(host, port) method. Is there a way to
    know which thread is currently accessing the security
    manager?Just use Thread.currentThread(). As specified in the Javadoc for e.g. SecurityManager.checkAccept().
    2. Are calls to the Security Manager thread safe? No.

  • Question using Java API in a multi threaded application for MDX queries

    Currently I’m building a web application that makes a lot of MDX calls using the Essbase Java API. Each time we run an MDX call we basically run the following code:
    IEssbase ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
    IEssDomain dom = ess.signOn(userName, password, false, null, "embedded");
    IEssCubeView cv = cv=dom.openCubeView("view", hostName, appName, cubeName);
    IEssOpMdxQuery op = cv.createIEssOpMdxQuery();
    op.setQuery(false,mdx,false,IEssOpMdxQuery.EEssMemberIdentifierType.NAME);
    cv.performOperation(op);
    IEssMdDataSet mddata = cv.getMdDataSet();
    cv.close();
    My questions is, is this the correct way to use the API in multi threaded environment where many users may be hitting the application at the same time? For every request do I need to create a separate IEssbase object and sign on to an IEssDomain? Or can I use a single IEssbase and IEssDomain object for the entire application? If not should I call the IEssDomain.signOff() method after each user’s request has completed? Which of the above objects are thread safe? I’m using Essabae 9.3.1. Any insight would be really appreciated.
    Thanks
    David

    Thanks for the input friend,
    I should have mentioned that in my application all
    connections to Essbase use the same user name and
    password so the filtering isn’t a concern. This is my
    first Java application using Essbase has a data
    source, I’m used to connecting to various SQL
    databases and I always use a connection pool, how is
    connection pooling handled in the Essbase java API?I'm not sure what happened to it since I never used it, but there used to be something called the High Availability Services or something that was essentially a connection pool for Essbase JAPI connections, but it required an extra license.
    Since you don't care about identity (everyone has full access to everything), you can create your own connection pool, but you'll have to manage your multithreading yourself. Its been this way since the beginning. The C API isn't/wasn't thread-safe either (we tried).

  • Uix 2.2.8 multi monitor related bug

    Hi,
    I have a multi monitor system, on the seconnd screen, there is the browser , showing a page which has a Date Picker and a LOV. If I click on one of the icons, the window opens, and then all of a sudden jumps to the first screen with IE, with Mozilla it already opens on the first one. Same screen would be nice though.
    Bye Jan

    Hello Jan,
    In the UIX javascript code the newly opened window's coordinates are checked to make sure it is not partially off the screen. If so, the window's coordinates are adjusted to put it on the screen.
    I think there is a bug in IE which doesn't treat the multi-monitors as a single monitor, or something like that. Unfortunately, I doubt we can do anything about this.
    Are you saying it works in Mozilla, correct?
    Thanks,
    Jeanne

  • Multi-Monitor PSE 9 Corrupt Display

    Multi-Monitor PSE 9 Corrupt Display
    Evening all -
    First post here at PS Gurus.  I hope that you guys can lend your  expertise in pinning down an issue that I am having and have also had on  other PS versions.  I am running
    Windows 7 (64 bit) Ultimate
    2600k / 8 gb ram / 256 Samsung SSD / 460 GTX 1GB
    Matrox Triplehead 2 Go with x3 22" monitors (resolution 5040 x1050)
    A fresh install of the trial version of PSE 9 is yielding corrupt main  toolbar and options bar (for each tool selected).  The application is  expanding full screen on all three monitors just fine but the toolbar  are corrupt - partly transparent / party compressed to the left.  No  matter what I have done in terms of resizing the application window the  results are the same or get worse.
    On another computer I installed PS CS5 (also under win7 64 bit  environment) and I was having the same issue.  However, at the time I  thought the install was bad in some shape or form so I dropped the  issue. 
    I am now considering PSE 9 but see that Win7 + Matrox just isn't  working correctly with this combination of hardware / software  components. 
    Has anyone see this issue or know of a potential fix?  I have read a  couple of threads on the net with similar issues but I don't see any  resolution.  Your help is greatly appreciated.
    Thanks-
    Benjamin

    My main reason for testing PSE-O 9.0 was to find out if this "bug" was fixed. I can not use PSE-O to organize and show pictures the way I want to with this weaknes in place. Your answer is probably correct, bun not at all helpfull.
    So thank you for trying, but my test of PSE O is over for now.
    Does anybody out there know of other products that will do the trick?

  • DUAL MONITOR BUG: One Picture – One Monitor – Different Colors!

    There have been several threads discussing that Photoshop CS4 and OS 10.6. show wrong colors in dual monitor setups.
    The first one to prove this with a screen capture was jb510-LJ0JJQ in August 2009: http://forums.adobe.com/message/2207312#2207312
    Eight months and three OS updates later the problem is still there and makes professional work with more than one monitor a nuisance.
    Here's another actual example: A picture and its 100% identical copy showing different colors on one screen!
    Here's how to repeat it – try this at home ;-)
    1) In the finder make a copy of a rgb picture.
    2) Open one of the two identical pics in photoshop.
    3) Drag it to the other monitor.
    When releasing the mouse button you may see the bug already: the colors will "switch".
    4) To verify this go to system presets - monitors - and change the primary monitor (by dragging the menu bar to the other)
    5) Now open the identical copy you made in step 1) and see the difference!
    Here's a synopsis of suggested workarounds:
    1) disable open GL (which seem to makes no difference on my setup)
    2) click "desaturate monitor colors" but set desaturation to 0 (which prevents visual switching in step 3) (only if openGL is ON) but also leads to a wrong display in step 4+5
    3) make the hardware calibrated monitor your default monitor and strictly avoid changes or dragging pics to the other monitor (which seems to be the only reliable method)
    4) some guys even force both monitors to use the profile of their hardware-calibrated monitor (using color sync) to make sure they see what they should see on at least that one monitor. What a stone-age workaround for the the world's leading imaging program!
    Considering that reliable colors in professional (=multi monitor) settings should be the most basic function of photoshop this mayor malfunction should be solved with CS5! Otherwise we might have to live with it for some more years...
    Have Adobe and Apple realized this bug and on their agenda? Will it be gone with OS 10.6.3? Can anyone explain the reasons for this bad bug? Is there a "officially" recommended workaround?
    Thanks, regards,
    Eric

    There have been several threads dealing with this malfunction. But most faded out in silence or acceptance of the workarounds.
    http://forums.adobe.com/message/2207312#2207312
    http://forums.adobe.com/thread/521483
    http://forums.adobe.com/message/2272192#2272192
    http://forums.adobe.com/thread/311761?start=0&tstart=0
    http://forums.adobe.com/thread/618927?tstart=60
    http://forums.adobe.com/thread/603992?tstart=90
    http://www.wetcanvas.com/forums/showthread.php?t=552977
    http://www.hilfdirselbst.ch/gforum/gforum.cgi?post=368889?search_string=zwei%20monitor#368 889
    But man, this is no minor bug! Consistent colors are the by far most important basic function of photoshop. If you cannot rely on the colors in photoshop you can as well use "Preview" and "Word" for print production ;-)
    Carson, how did Apple react to your complaint? What do you mean with "they don't get it". Do they not see it? Or can't they get it right?
    Shall we open a thread at apple forums to point out that it's not the problem of a single user?

  • Java Bug? Centering a JLable with just an icon in a JScrollPane

    Hi,
    I'm attempting to write a image viewing program. I would like the image centered on the window displaying them, but because some images are larger than the window, I would like the image to be in the upper left hand coner of the window with scroll bars to allow you to view the rest of the image.
    I have attempted to implement this by placing a JScrollPane on a JFrame, and then placing a JLabel in the JScrollPane's Viewport. I set the Label's text to blank, and then set the image, wraped in an InageIcon, as the JLabel's Icon.
    To center the JLabel, I have tried to set the JScrollPane's Viewport's LayoutManager to two different layout managers, but I've found buggy operation with each. The Layout I've tried are the following:
    1. a GridLayout(1,1,0,0); - this works fine when the image is smaller that the available area of the JScrollPane. However, if the window is resized so that the image more than totally fills the JScrollPane, the image gets cut off. What happens is that the image is centered in the available scrollpane view, meaning the uper and left edges of the image get cut off. Scroll bars appear to let you view the lower and righer edges of the image, however, when you scroll, the newly uncovered areas of the image never get drawn, so you can't get to see the lower or right edges of the image either.
    2. a GridbagLayout with one row, and one column each with a weight of 100, centered and told to fill both horizontally and vertically. Again, this correctly centers the JLabel when th eimage is smaler than the available space in the JScrollPane. Once the window is resized so that the image is bigger than the space to view the image in, strange problems occur. This time it seems that the JScrollPane's scrollbars show that there should be enough room to show the image if the image was in the upper left corner, however, the image isn't in the upper left corner, it is offset down and to the right if the upper left corner by an amount that appears equal to the amount of extra space needed to display the image. For example, if the image is 200x300 and the view area is 150x200, ite image is offest by 50 horizontally and 100 vertically. This results in the bottom and right edges of the image getting cut off because the scrollbars only scroll far enough to show the image if the image was placed at 0,0 and not at the offset location that it is placed at.
    You may not understand what I'm trying to say from my description, but below is code that can reproduce the problem.
    Questions. Am I doing anything wrong that is causing this problem? Is that another, better way to center the JLabel that doesn't have these problems? Is this a JAVA Bug in either the layoutmanagers, JScrollPane or JLabel when it only contains an icon and no text?
    Code:
    this is the class that creates and lays out the JFrame. It currently generates a 256x256 pixel image. By changing the imagesize variable to 512, you can get a larger image to work with which will make the bug more obvious.
    When first run the application will show what happens when using the GridLayout and described in 1. There are two commented out lines just below the GridLayout code that use a GridbagLayout as descriped in method 2. Comment out the GridLayout code when you uncomment the GridBageLayout code.
    package centertest;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.image.*;
    public class Frame1 extends JFrame {
        JPanel contentPane;
        BorderLayout borderLayout1 = new BorderLayout();
        JScrollPane jScrollPane1 = new JScrollPane();
        JLabel jLabel1 = new JLabel();
        static final int imagesize=256;
        //Construct the frame
        public Frame1() {
            enableEvents(AWTEvent.WINDOW_EVENT_MASK);
            try {
                jbInit();
            catch(Exception e) {
                e.printStackTrace();
        //Component initialization
        private void jbInit() throws Exception  {
            contentPane = (JPanel) this.getContentPane();
            contentPane.setLayout(borderLayout1);
            this.setSize(new Dimension(400, 300));
            this.setTitle("Frame Title");
            //setup label
            jLabel1.setIconTextGap(0);
            jLabel1.setHorizontalAlignment(JLabel.CENTER);
            jLabel1.setVerticalAlignment(JLabel.CENTER);
            jLabel1.setVerticalTextPosition(JLabel.BOTTOM);
            //create image and add it to the label as an icon
            int[] pixels = new int[imagesize*imagesize];
            for(int i=0;i<pixels.length;i++){
                pixels=i|(0xff<<24);
    MemoryImageSource mis = new MemoryImageSource(imagesize, imagesize,
    pixels, 0, imagesize);
    Image img = createImage(mis);
    jLabel1.setIcon(new ImageIcon(img));
    jLabel1.setText("");
    contentPane.add(jScrollPane1, BorderLayout.CENTER);
    //center image using a GridLayout
    jScrollPane1.getViewport().setLayout(new GridLayout(1,1,0,0));
    jScrollPane1.getViewport().add(jLabel1);
    //Center the image using a GridBagLayout
    /*jScrollPane1.getViewport().setLayout(new GridBagLayout());
    jScrollPane1.getViewport().add(jLabel1,
    new GridBagConstraints(0, 0, 1, 1, 100.0, 100.0,
    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
    new Insets(0, 0, 0, 0), 0, 0));
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    and here is an application with which to launch the frame
    package centertest;
    import javax.swing.UIManager;
    import java.awt.*;
    public class Application1 {
        boolean packFrame = false;
        //Construct the application
        public Application1() {
            Frame1 frame = new Frame1();
            //Validate frames that have preset sizes
            //Pack frames that have useful preferred size info, e.g. from their layout
            if (packFrame) {
                frame.pack();
            else {
                frame.validate();
            //Center the window
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            Dimension frameSize = frame.getSize();
            if (frameSize.height > screenSize.height) {
                frameSize.height = screenSize.height;
            if (frameSize.width > screenSize.width) {
                frameSize.width = screenSize.width;
            frame.setLocation( (screenSize.width - frameSize.width) / 2,
                              (screenSize.height - frameSize.height) / 2);
            frame.setVisible(true);
        //Main method
        public static void main(String[] args) {
            try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception e) {
                e.printStackTrace();
            new Application1();
    }I'm running Java 1.4.1 build 21 on Windows 98. I used JBuilder8 Personal to write this code.

    Hmmm,
    You are correct. Not setting a layout for the scrollpane's viewport (using the default of javax.swing.ViewportLayout) results in the positioning of the image tat I want (center the image if image is smaller than the scrollpane, if the image is larger, place it in the upper-left corener and enable the scrollbars to scroll to see the rest of the image).
    Anyone have any idea why the GridLayout and GridBagLayout act as they do? I gues it isn't that important tomy program, but I'm still not sure that they are operating correctly. (Specifically, GridLayout sha scrollbars, but when you scroll, no new parts of the image are revealed.)

  • Maintaining default locale in multi-lingual application

    Hello,
    I have a multi-lingual application where the language can be changed at runtime.
    To make the following code work properly, the default locale has to be set each
    time the language changes. Why?
    Since I need to check sometimes the platforms original locale (I do this with
    "Locale.getDefault()"), I am looking for a way not to change the default locale,
    but still to change the resourceBundle.
    In the API I read under "ResourceBundle, Cache Management" that the bundles are cached. Is this the reason why redefining the resourceBundle has no effect? And if yes, how can it be avoided?
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class Y extends JFrame {
      boolean toggle;
      Locale currentLocale;
      JButton b;
      ResourceBundle languageBundle;
      String country, userLanguage;
      public Y() {
        setSize(300,300);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        Container cp= getContentPane();
        b= new JButton();
        b.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
         toggle= !toggle;
         if (toggle)
           country= "DE";
         else
           country= "GB";
         setUserLanguage(country);
        cp.add(b, BorderLayout.SOUTH);
        setUserLanguage("GB");
        setVisible(true);
      public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
         new Y();
      void setUserLanguage(String country) {
        if (country.equals("DE"))
          userLanguage= "de";
        else
          userLanguage= "en";
        currentLocale = new Locale(userLanguage, country);
    //    System.out.println(currentLocale); // The locale changes ...
    //    Locale.setDefault(currentLocale); // Remove comment slashes and it works.
    //    languageBundle.clearCache(); // No effect.
        languageBundle = ResourceBundle.getBundle("MyBundle",currentLocale);
        System.out.println(languageBundle); // ... but the resourceBundle does not change.
        b.setText(languageBundle.getString("ButtonText"));
    The resource bundle files:
    MyBundle.properties
    ButtonText= Just a button
    MyBundle_de_DE.properties
    ButtonText= Nur ein KnopfEdited by: Joerg22 on 18.08.2008 13:26

    What's your default locale? If your default locale is de_DE, that's the expected behavior. The reason for it is the fallback mechanism searches default locale's bundle before falls back to the base bundle, i.e., in case of searching en_GB bundle, the search order is:
    en_GB
    en
    de_DE
    de
    (base)
    So, it will choose MyBundles_de_DE.
    If you do not want this default locale fallback, you can specify ResourceBundle.Control instance, which is returned from ResourceBundle.Control.getNoFallbackControl() method, in your getBundle() call. Or if you do not use JDK6, you could copy the base bundle to MyBundles_en, which is ugly but should work.
    Naoto
    Edited by: naoto on Aug 18, 2008 1:05 PM

  • Multi-Thread application and common data

    I try to make a multi-Thread application. All the Threads will update some common data.
    How could I access the variable �VALUE� with the Thread in the following code:
    public class Demo {
    private static long VALUE;
    public Demo(long SvId) {
    VALUE = 0;
    public static class makeThread extends Thread {
    public void run() {
    VALUE++;
    public static long getVALUE() {
    return VALUE;
    The goal is to get the �VALUE� updated by the Thread with �getVALUE()�
    Thanks for your reply
    Benoit

    That code is so wrong in so many ways......
    I know you're just experimenting here, learning what can and can't be done with Threads, but bad habits start early, and get harder to kick as time goes on. I am going to give a little explanation here about what's wrong, and what's right.. If you're going to do anything serious though, please, read some books, and don't pick up bad habits.
    Alright, The "answer" code. You don't use Thread.sleep() to wait for Threads to finish. That's just silly, use the join() method. It blocks until the threads execution is done. So if you have a whole bunch of threads in an array, and you want to start them up, and then do something once they finish. Do this.
    for(int k=0; k<threads.length; k++) {
      threads[k].start();
    for(int k=0; k<threads.length; k++) {
      threads[k].join();
    System.out.println("All Threads Done");Now that's the simple problem. No tears there.
    On to the java memory model. Here where the eye water starts flowing. The program you have written is not guarenteed to do what you expect it to do, that is, increment VALUE some amount of time and then print it out. The program is not "Thread Safe".
    Problem 1) - Atomic Operations and Synchronization
    Incrementing a 'long' is not an atomic operation via the JVM spec, icrementing an int is, so if you change the type of VALUE to an int you don't have to worry about corruption here. If a long is required, or any method with more then one operation that must complete without another thread entering. Then you must learn how to use the synchronized keyword.
    Problem 2) - Visiblity
    To get at this problem you have to understand low level computing terms. The variable VALUE will NOT be written out to main memory every time you increment it. It will be stored in the CPUs cache. If you have more then one CPU, and different CPUs get those threads you are starting up, one CPU won't know what the other is doing. You get memory overwrites, and nothing you expect. If you solve problem 1 by using a synchronized block, you also solve problem 2, because updating a variable under a lock will cause full visiblity of the change. However, there is another keyword in java.. "volatile".. A field modified with this keyword will always have it's changes visible.
    This is a very short explaination, barely scratching the surface. I won't even go into performance issues here. If you want to know more. Here's the resources.
    Doug Lea's book
    http://java.sun.com/docs/books/cp/
    Doug Lea's Site
    http://g.cs.oswego.edu
    -Spinoza

  • Multi-monitor SW is affecting VMware performance on Helix

    I have discovered that running multi-monitor software like Matrix desktop management is affecting the VMware Workstation 10 guest performance so drastically that virtual machines become literally unusable.  Similar experience is reported by other people using different multi-monitor software like DisplayFusion, see https://communities.vmware.com/message/2315099#2315099
    ThinkPad W520, i7-2820 CPU, 32GB RAM, NVidia Quadro 2000M 2GB GPU , mSATA Samsung Evo 840 1TB + 2x Samsung SSD EVO 840 1TB & Lenovo Helix i7 8GB RAM & ThinkPad W540, i7-4800MQ, 32 GB RAM, NVidia Quadro K1100M, OS on M.2 2242 Transcend MTS400 256GB + 2x Samsung SSD EVO 840 1TB

    Ray, it will do a lot more good if you file an official bug report at http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Be sure to describe the configuration in extreme detail.
    Peter

  • Jdev11g: Has anyone developed a multi -langual application successfully?

    Hi,
    In our application the user can change the language of the application by selecting it from as drop-down-list.
    This works fine if we run the application with embedded WLS.
    But running it on external WLS the language switch does not have any effect.
    We have already filled bug 7588599 for this issue which is also reproduceable from Oracle Support.
    At the moment I do not know a workaround.
    I can't believe that there is nobody out there who has already been successfull with a multi-langual application on external WLS?
    I hope to find a workaround in this forum to avoid waiting for backport patch.
    regards
    Peter
    Edited by: hofespet on Nov 26, 2008 7:18 AM
    repost

    Hi,
    problem is solved!
    Excerpt from the SR:
    Development did find the cause of the problem. The framework does lookup the language files in a specific format. That is the language must be in lower case and not in uppercase. In this case the file system is case insensitive since it is windows, so the exploded app just happened to work since it was finding the file on the file system. When deploying the application the file is being looked up by the jar/zip-finder which is working case-sensitive and thus it cannot find the file "startBundle_en.properties".
    The application should name the resource files exactly how they will be looked up by the application and by the ResourceBundleManagerRT.
    Rename the file "startBundle_EN.properties" into "startBundle_en.properties".
    regards
    Peter

  • Clarification of the handle/body idiom in multi threaded applications

    Hello
    As some DBXML classes use the handle-body idiom (handle/body idiom in some docs), could someone please clarify the consequences of that in a multi threaded application like a web container?
    For 100% Java people, like me, this is known in the Java world as 'programming towards interfaces', or as the Bridge pattern; which is seen as good practice.
    Let's take an example. The class XmlQueryContext is not thread safe, but it has a copy constructor. Imagine that your web application has one XmlQueryContext, that we never use in a query, but that we prepare only to be copied in new threads. Is it thus safe to instantiate various new XmlQueryContexts using that copy constructor in various new threads and use them simultaneously?
    Thank you
    Koen
    PS What I am really asking here is if somebody could please translate the following to Java parlé:
    A copy constructor is provided for this class. The class is implemented using a handle-body idiom. When a handle is copied both handles maintain a reference to the same body.

    As a Java user you do not have to worry about how the C++ copy constructors behave. In the Java API if a copy constructor exists for the object, then the copy constructor will copy all of the original object's data into a new object (XmlContainer is the one exception to this rule, generally one should not use that copy constructor at all). So in short, what you plan to do will work.
    Lauren Foutz

  • Any 3rd party utilities that fix full screen mode for multi-monitor users?

    I am a multi-monitor user.  As multi-monitor users know, full screen mode is basically useless since if you try to go full screen on one monitor, it causes the other monitor to go blank and become unusable (at least with most programs).  Are there any 3rd party utitilities or fixes for this?
    Thanks

    Spaces, which is what this functionality stems from, was limited in that it used your entire setup and switched all of the screens over; space to space. I never used spaces because I always had multiple monitors and I was always working with multiple apps simultaneously that I wanted to be able to reference while working on the others.
    Now they call Spaces, "mission control" and changed the appearance of it, but the functionality remained the same, each workstation comprised all of your monitors, and would switch over all of them when switching to a new "Desktop".
    Fullscreen apps wrongly assumes that it can take the functionality of the afformentioned MS/Spaces and use it for one app, negating the whole idea of why someone would have multiple screens (real estate to work with other applications).
    If they stop considering multiple monitors as one Workspace, they can then make it so they are asynchronous "tablets" instead of one conjoined entity.
    So, you say people have been asking about this for 2 years, I've been asking for this for 5!
    The issue here is, the only answer is to not use it. Making Mission Control and Fullscreen apps completely ignored by people like us, where I could be using both functions to glide around my work station and three monitors, mixing and matching which apps I want to be viewed on each separate monitor, to perform one single task; together.
    It would actually reward people who wanted to utilize Thunderbolt technology and have more then one monitor.
    There is no telling why apple chose to push out something that would only support the casual user, with one display, but the only direct way to let apple know that we feel limited by the OS is to send feedback. Even though it seems that we are powerless in this situation, I hope that they do consider how to make this function better.
    </rant>

  • Monitoring application running multiple servers. Is JMX a good choice?

    Hello,
    I am looking for a framework to make a monitoring application. Right now, I am looking at JMX which seems very interesting but I am not sure to understand everything totally.
    I need to check several information and to do so, I need to ask several servers. Log errors on some, stat files on other and so on. Maybe also make a wrapper with a Python application.
    So my question is : Is JMX a good option ?
    At the moment, nothing is implemented.
    Thanks for your advices.
    Romain

    i'm not sure i understand your question completely.
    if you are asking "will jmx work for all my applications, including non-java ones", then the answer is no. jmx is a java specific framework. however, jmx enabled java applications could be monitored as part of a larger application management system. there are jmx to snmp bridges which would enable your jmx management features to be used through snmp capable tools (where snmp is a management tool which is not language specific). also, some management utilities have "plugins" which know how to talk different protocols, where there is probably a good chance that jmx is supported.
    basically, jmx is probably the best choice for your java based services. you will need to find another way to monitor your non-java services. once you put all those pieces together, you will need to find a monitoring tool which can "talk" to the different services in the protocols that they support.
    long answer, short: jmx is a great building block, but it is not the entire solution if you are integrating non-java based services.
    Edited by: jtahlborn on Mar 1, 2011 11:32 AM

Maybe you are looking for