JTextField color does not update on Linux machine

Hi All,
I want to change the background color of JTextFiled see the below code snippet, jTxtMessage is my JTextField type
jTxtMessage.setOpaque(true);
jTxtMessage.setBackground(java.awt.Color.BLUE);
It is working fine on windows OS but not on Linux OS it is showing white no update occurs even i tried with
jTxtMessage.setBackground(new java.awt.Color(51, 102, 255));
Can anyone help me on this so that i can change the background color of JTextField according to my wish.
Thanks in adv for any suggestion.
Kind Regards,
Pradeep

WalterLaan wrote:
I believe the GTK L&F feel ignores the background of components. ..I just checked on an Ubuntu Linux box (using the system PLAF) and confirmed your belief. I could set the FG to any color I wanted, but the BG stayed white.
Edit 1:
And I'd have done that when I first saw the post, if the OP had posted an SSCCE. ;-)
Edited by: AndrewThompson64 on Nov 24, 2009 10:22 PM

Similar Messages

  • Encoding ISO-8859-1 does not work on linux machine

    Hi all
    I have an xsl with encoding ISO-8859-1 .So in this xsl I put special character like € that rappresent the Euro (money) symbol.
    So when I use that xsl on a window machine everithing is all right.When I use a Linux machine that code are not correctly mapped..
    Why?
    Help
    Regards

    actually I have a different mapping for �....on
    window it maps the space...on linux it maps A^....
    Any idea?How exactly are you determining that it is not working?
    Are you printing it to the screen? Are you using String.getBytes() and then printing the byte value? What are you doing?

  • My firefox beta 12 using Linux platform does not update to firefox RC1 via the "check for update" function. I know windows' beta version had this fixed, when would Linux get similar support ?

    Current platform : Linux
    Current firefox version : Firefox 4 beta 12
    Issue : does not update to RC 1 using the check for update feature.
    Background : previously downloaded beta 8 and then it automatically updated to beta 12 using update features but for RC1, it does not.
    I know users under Windows platform had same problem but was resolved and they can now update via check for update feature.
    Please implement for Linux users too.
    Thanks !!

    If you can't update then you can download and install the full Firefox 4 RC version.
    * http://www.mozilla.com/firefox/all-beta.html

  • Minetest translation does not work on my machine.

    Hey there.
    After trying my luck in the official Minetest forums a week ago and got nothing more than the initial “try this-and-that” thing as response in the German discussion section and no reply at all in the regular discussion section I decided to ask on Reddit on last Saturday afternoon, too. On Reddit my question only got 3 upvotes and no comments.
    Since no-one seems to know what’s going on I decided to post my question here, too.
    It sems like the translation feature in Minetest does not work on my machine for unknown reason.
    The language files are there and according to it’s oputput and the PKGBUILD Minetest was compiled with gettext support. LANG and LC_MESSAGES are properly set (I even tried LC_ALL). Localization works properly in all other applications that support localization.
    Here’s some relevant system information.
    $ uname -rms
    Linux 3.16.1-1-ARCH x86_64
    $ minetest --version
    Minetest 0.4.10
    Using Irrlicht 1.8.1
    Build info: VER=0.4.10 BUILD_TYPE=Release RUN_IN_PLACE=0 USE_GETTEXT=1 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=0 STATIC_SHAREDIR=/usr/share/minetest
    $ pacman -Ql minetest | grep locale/de
    minetest /usr/share/locale/de/
    minetest /usr/share/locale/de/LC_MESSAGES/
    minetest /usr/share/locale/de/LC_MESSAGES/minetest.mo
    $ locale
    LANG=de_DE.utf8
    LC_CTYPE="de_DE.utf8"
    LC_NUMERIC="de_DE.utf8"
    LC_TIME="de_DE.utf8"
    LC_COLLATE="de_DE.utf8"
    LC_MONETARY="de_DE.utf8"
    LC_MESSAGES="de_DE.utf8"
    LC_PAPER="de_DE.utf8"
    LC_NAME="de_DE.utf8"
    LC_ADDRESS="de_DE.utf8"
    LC_TELEPHONE="de_DE.utf8"
    LC_MEASUREMENT="de_DE.utf8"
    LC_IDENTIFICATION="de_DE.utf8"
    LC_ALL=de_DE.utf8
    $ cat /etc/locale.gen
    de_DE.UTF-8 UTF-8
    en_DK.UTF-8 UTF-8
    en_US.UTF-8 UTF-8
    According to the discussion in the German discussion section in the Minetest forums I tried to set language = DE (and variants like de_DE with or without .utf8 in all possible variants) in minetest.conf but it didn’t change anything. Also: Here’s the output of running Minetest with --verbose parameter.
    16:47:01: INFO[main]: Using system-wide paths (NOT RUN_IN_PLACE)
    16:47:01: INFO[main]: path_share = /usr/share/minetest
    16:47:01: INFO[main]: path_user = /home/dirk/.minetest
    16:47:01: INFO[main]: minetest with SER_FMT_VER_HIGHEST_READ=26, VER=0.4.10 BUILD_TYPE=Release RUN_IN_PLACE=0 USE_GETTEXT=1 USE_SOUND=1 USE_CURL=1 USE_FREETYPE=1 USE_LUAJIT=0 STATIC_SHAREDIR=/usr/share/minetest
    16:47:01: INFO[main]: logfile = /home/dirk/.minetest/debug.txt
    16:47:01: VERBOSE[main]: httpfetch_init: parallel_limit=8
    16:47:01: INFO[main]: Message locale is now set to: LC_CTYPE=de_DE.utf8;LC_NUMERIC=C;LC_TIME=en_DK.utf8;LC_COLLATE=de_DE.utf8;LC_MONETARY=de_DE.utf8;LC_MESSAGES=de_DE.utf8;LC_PAPER=de_DE.utf8;LC_NAME=de_DE.utf8;LC_ADDRESS=de_DE.utf8;LC_TELEPHONE=de_DE.utf8;LC_MEASUREMENT=de_DE.utf8;LC_IDENTIFICATION=de_DE.utf8
    Irrlicht log: Irrlicht Engine version 1.8.1
    Irrlicht log: Linux 3.16.1-1-ARCH #1 SMP PREEMPT Thu Aug 14 07:40:19 CEST 2014 x86_64
    Irrlicht log: Using renderer: OpenGL 3.3.0
    Irrlicht log: GeForce 9600 GT/PCIe/SSE2: NVIDIA Corporation
    Irrlicht log: OpenGL driver version is 1.2 or better.
    Irrlicht log: GLSL version: 3.3
    16:47:01: INFO[main]: text_height=22
    16:47:01: INFO[main]: Searching worlds...
    16:47:01: INFO[main]: In /home/dirk/.minetest/worlds:
    16:47:01: INFO[main]: Spielwelt
    16:47:01: INFO[main]: 1 found.
    16:47:01: INFO[main]: Waiting for other menus
    16:47:01: INFO[main]: Waited for other menus
    16:47:01: INFO[main]: Audio: Initializing...
    16:47:01: INFO[main]: Audio: Vorbis extension NOT present
    16:47:01: INFO[main]: Audio: Initialized: OpenAL 1.1 ALSOFT 1.16.0, using OpenAL Soft
    16:47:01: INFO[main]: GUIEngine: Initializing Lua
    16:47:01: VERBOSE[AsyncWorkerThread_0]: Loading and running script from /usr/share/minetest/builtin/init.lua
    16:47:01: INFO[AsyncWorkerThread_0]: Initializing Asynchronous environment
    16:47:01: VERBOSE[AsyncWorkerThread_1]: Loading and running script from /usr/share/minetest/builtin/init.lua
    16:47:01: INFO[AsyncWorkerThread_1]: Initializing Asynchronous environment
    16:47:01: VERBOSE[AsyncWorkerThread_2]: Loading and running script from /usr/share/minetest/builtin/init.lua
    16:47:01: INFO[main]: SCRIPTAPI: Initialized main menu modules
    16:47:01: VERBOSE[main]: Loading and running script from /usr/share/minetest/builtin/init.lua
    16:47:01: INFO[AsyncWorkerThread_2]: Initializing Asynchronous environment
    16:47:01: VERBOSE[AsyncWorkerThread_3]: Loading and running script from /usr/share/minetest/builtin/init.lua
    16:47:01: INFO[AsyncWorkerThread_3]: Initializing Asynchronous environment
    16:47:01: INFO[main]: Searching worlds...
    16:47:01: INFO[main]: In /home/dirk/.minetest/worlds:
    16:47:01: INFO[main]: Spielwelt
    16:47:01: INFO[main]: 1 found.
    16:47:01: VERBOSE[main]: OpenALSoundManager::maintain(): 0 playing sounds, 0 sound names loaded
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.0.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.1.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.2.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.3.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.4.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.5.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.6.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.7.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.8.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.9.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /home/dirk/.minetest/sounds/main_menu.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.0.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.1.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.2.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.3.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.4.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.5.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.6.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.7.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.8.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.9.ogg for decoding
    16:47:01: INFO[main]: Audio: Error opening /usr/share/minetest/sounds/main_menu.ogg for decoding
    16:47:01: INFO[main]: OpenALSoundManager: "main_menu" not found.
    16:47:05: INFO[main]: Audio: Deinitializing...
    16:47:05: INFO[main]: Audio: Deinitialized.
    16:47:05: INFO[main]: GUIEngine: Deinitializing scripting
    16:47:05: INFO[main]: Searching worlds...
    16:47:05: INFO[main]: In /home/dirk/.minetest/worlds:
    16:47:05: INFO[main]: Spielwelt
    16:47:05: INFO[main]: 1 found.
    16:47:05: INFO[main]: Updating configuration file: "/home/dirk/.minetest/minetest.conf"
    16:47:05: INFO[main]: Skipping writing of /home/dirk/.minetest/minetest.conf because content wouldn't be modified
    16:47:05: INFO[main]: Updating configuration file: "/home/dirk/.minetest/minetest.conf"
    16:47:05: INFO[main]: Skipping writing of /home/dirk/.minetest/minetest.conf because content wouldn't be modified
    16:47:05: VERBOSE[main]: httpfetch_cleanup: cleaning up
    … or on nopaste.info for better readability.
    Since it seems to work for everyone else (otherwise there might be more replies to my quesions in several places, I guess *g*) I’m pretty sure that’s a local problem on my machine. But since gettext properly works on my machine in all and every application that use it I have no clue at all where to start debugging.
    Hints are highly appreciated Thanks in advance!
    Kind regards,
    Dirk

    Hi there...
    It gives me a URL that begins with http:// Safari does something strange, ie. flashes the page, and then complains about not recognizing photo://
    It seems that it has not figured out that it needs to open iPhoto 6.
    Regardless, the provided link is not viewable when cutting and pasting into safari, neither.
    I am using the latest and greatest 10.4.4, Safari is 2.0.3.

  • Book editing - change a photo, book does not update

    We are having a small problem. When editing our book, we double on some photos to edit them. Crop, color adjust, etc. Then we click done, and get sent back to our Book page.
    Now about half the time the book preview does not update the image that we just changed. It seems to update the larger full page images more often than it updates the smaller images in the book layout. If I double click the photo again, I can see the change I previously made are still there, but they are not being reflected in the book preview.
    So 2 questions, how do I force the book to update its photo preview? And if I print this will it use the edited photo, and not the version its showing me in the preview?
    Assume this is just a screen display issue, and that the generated print will use the right assets, right?
    This is in iLife '08 on Leopard on an intel Macbook.

    Squeegy:
    Welcome to the Apple Discussions. Try changing the layout, i.e. from frames with or without text to the other and then back. That may jump start the picture to display properly. It works for me when I do some cropping, like from landscape to portrait and the frame doesn't reset itself.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Lighroom 5.4 Develop View does not update when changing sliders

    Just updated to Lightroom 5.4 (using Adobe CC) on Win8. After going to "develop view" on any photo and changing the exposure or any other slider does not update the main view of the photo. It does however update the thumbnail in the film strip and the second monitor window correctly. I've tried everything I can think of:
    (1) downgrading to LR 5.3 (which used to work)
    (2) forcing 1:1 and standard preview regeneration
    (3) uninstalling the re-installing Lightroom (both 5.3 and 5.4)
    (4) Optimizing catalogue
    (5) Removing the Adobe AppData folder
    (6) Creating a brand new catalogue with zero photos, importing a single photo and trying to change exposure/contrast on that
    None of these result in the develop view of the picture changing when I change the sliders.
    Do you guys have any experience with this?

    The chances of me suspecting monitor color profile causing bugs in LR was very slim. =)
    So were mine, especially when only the view itself doesn't work, but all other stuff works fine. Well, I probably have really not good colour profile, luckly you can change it after the lr is launched - it won't cause the problem untill next restart (at least works for me). And hopefully once my calibrator arrives lr will work ok with its colour profiles..

  • Bug:  Histogram Does Not Update when Using Painting Tools

    I was investigating something else, and I saw something not working...  I'm under the distinct impression that the Histogram panel should automatically update after every operation.  Having the Histogram panel displayed full-time on the screen, it should always be up to date.
    However, when I Dodge or Burn or even paint color on an image, the Histogram is not updating. 
    If I select one of the History states I've just created, it updates.
    Consider this simple sequence of operations:
    I'm able to reproduce this failure in Photoshop CS5 as well, BUT NOT IN CS4 (it updates in Photoshop CS4 after every painting operation), so clearly it's not a new bug, though somehow I've managed not to notice it in my years of using Photoshop CS5.
    Is it broken like this for everyone in Photoshop CS5 and 6?
    Could this be some twisted attempt to try to optimize painting performance?  If so, why isn't there an option to allow a user to request it to update on every operation on a fast computer with cores out the wazoo?
    -Noel

    More info:
    Just poking around in Photoshop CS6 to see what, if anything would make the Histogram display update...
    Even though the Refresh icon is disabled (and the "Uncached Refresh" entry in the fly-out menu is grayed-out), double-clicking in the topmost histogram display will force it to update (as described above by Conroy in post #1 above).
    If I change the selection Channel field in the Histogram panel, mostly it does not update, but when I change between some of the settings - for example between RGB and Luminosity - the graphs update.  Amazingly they revert back to the un-updated state if I switch the channel BACK to what it was!
    Making a selection DOES cause it to update.  
    Choosing Select - Color Range (just starting the function) DOES cause it to update.
    Hitting the quick mask mode button DOES cause it to update. Notably Edit in Quick Mask Mode is in the Select menu.  Could an association with Select be a clue?
    This bug is easy to reproduce, is shown to be a problem across multiple versions and multiple OSs, and in at least one case (Photoshop CS4 x64 on Windows 7 x64 here) it can be shown to work properly, so the code is probably not far off being right.  Seems to me this should be the kind of thing a junior engineer could find and fix so someone, say,  at Chris Cox's level could have it done before 5 today... 
    -Noel

  • Pthread_once() does not update __pthread_once_pad

    Having a problem where pthread_once() gets called, but does not update the __pthread_once_pad[3] to show that the init routine was called for the associated pthread_once_t var.
    The init routine gets called, and the resultant pthread_key_t variable can be used to call pthread_setspecific(), but a resultant pthread_getspecific() will fail. I can see in gdb that the __pthread_once_pad[3] value is unchanged.
    This is happening on SOlaris 9 SPARC with gcc 3.3.2, and on Solaris 8 x86. The code works on Linux with an older gcc and also on Solaris 8 SPARC with an older gcc.
    We can write our pthread_once() to increment the __pthread_once_pad[3] value and call the init function and it will work fine.
    Any clues?

    I don't have an installed seat of Pr + AE CS6 accessible at this time so I can't check it with those versions. I see no bug in CC 8.n though, so I tend to agree that it may be a bug specific to your local setup or some specific step we don't yet know about. In any case, I should clarify a couple of things to make sure we're all on the same page about how DL works with AE:
    1. You're really just 'rendering' preview files to make playback a little better. You're not actually rendering anything from AE in PrPro to give you a standalone media file.
    2. Due to the nature of item #1, there really isn't any architectural way you could actually break the Dynamic Link of any imported files by just building previews for them, because it's just referencing an additional cache file to improve playback.
    3. If you make changes in AE to a rendered comp in Pr, then it will show red again in the sequence and you will need to re-render if you want that playback boost back. This is as designed.
    4. If you want to truly render (aka flatten, or render and replace) an AEP in CS6, you need to export it as a standalone media file from AE and import that file into Pr.
    5. It's possibly that DL itself is malfunctioning, in which case you may need to quit AE or Pr or both and maybe even re-import (via DL) the file agin.
    6. It's good practice to browse to an AEP in the media browser, then import it from there using the Dynamic Link Import dialog. This is not required, but we've heard of cases where some import problems are avoided in this way. Also using the media browser to import in general is good because it previews folder dependent files in a better way.

  • Container's validate does not update removal

    the validate() method does not update the display to show the remval of a component from a container. A way to go around: use repaint() instead.
    Please see the following code:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextField;
    import javax.swing.JToolBar;
    import net.effortech.harry.swing.Laf;
    public class ScrollPaneViewPort extends JFrame {
      private JButton add = new JButton("Add");
      private JButton remove = new JButton("Remove");
      private JTextField field;
      private JScrollPane scrollPane;
      private ActionListener al = new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          JButton s = (JButton) e.getSource();
          if (s == add) {
            add.setEnabled(false);
            remove.setEnabled(true);
            field = new JTextField();
            scrollPane = new JScrollPane(field,
                JScrollPane.VERTICAL_SCROLLBAR_NEVER,
                JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            getContentPane().add(scrollPane, BorderLayout.SOUTH);
            validate();
          } else {
            add.setEnabled(true);
            remove.setEnabled(false);
            getContentPane().remove(scrollPane);
            validate();
            //repaint();
      public ScrollPaneViewPort() {
        super("ScrollPane ViewPort");
        JToolBar tb = new JToolBar();
        tb.add(add);
        remove.setEnabled(false);
        tb.add(remove);
        add.addActionListener(al);
        remove.addActionListener(al);
        getContentPane().add(tb, BorderLayout.NORTH);
        setBounds(100, 100, 500, 400);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setVisible(true);
      public static void main(String[] args) {
        new ScrollPaneViewPort();
    }

    use repaint() insteadThat matches our experiences.

  • JCombox does not work under linux (fedora) could you help me???

    Hi All,
    I am implementing a GUI for a linux application. This GUI works fine under windows system. But the JCombobox does not work under Linux system. Would you help me to solve it? Thank you very much!..
    The problem is that I cannot select any other item except the first item in the dropdown box of JCombobox. There is no event generated when I click the combobox, while events are generated for other Buttons.
    This problem exists for the following code when I maximize the window. When the window is minimize to some extend in my problem, it is OK.
    Here is the simplify code:
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.Serializable;
    import java.util.Vector;
    import javax.swing.ComboBoxModel;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.event.ListDataEvent;
    import javax.swing.event.PopupMenuEvent;
    import javax.swing.event.PopupMenuListener;
    import java.awt.event.*;
    import javax.swing.*;
    //carmen
    import javax.swing.filechooser.*;
    import javax.swing.event.*;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.border.*;
    //import AlwaysSelectableComboBoxDemo.AlwaysSelectableComboBox;
    //import AlwaysSelectableComboBoxDemo.AlwaysSelectableComboBox;
    import java.io.*;
    import java.util.*;
    import java.lang.String.*;
    public class Test extends JFrame
         private JComboBox jComboBox1;
         private JComboBox jComboBox2;
         private JPanel contentPane;
         private JTabbedPane jTabbedPane1;
         //Main Tab
         private JPanel Main;
         private JPanel OutputSimSet;
         private JPanel Test;
         private JPanel ScriptGenTab;
         private JPanel ResultTab;
    //Result Tab
    private JPanel SimResult;
         public Test()
              super();
              //initializeComponent();
              contentPane = (JPanel)this.getContentPane();
              jTabbedPane1 = new JTabbedPane();
              Main = new JPanel();
              OutputSimSet = new JPanel();
              Test = new JPanel();
              ScriptGenTab = new JPanel();
              ResultTab = new JPanel();
              SimResult = new JPanel();
         jComboBox1 = new JComboBox(
                        new String[]{"Item 1","Item 2", "Item 3"});
                        jComboBox1.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ae) {
                        System.out.println("Yeah");
         jComboBox2 = new JComboBox(
                                  new String[]{"Item 1","Item 2", "Item 3"});
                                  jComboBox2.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent ae) {
                                  System.out.println("Yeah");
              // jTabbedPane1
              jTabbedPane1.addTab("Main", Main);
              jTabbedPane1.addTab("ScriptGenerator", ScriptGenTab);
              jTabbedPane1.addTab("Simulation Result", ResultTab);
              jTabbedPane1.addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent e)
                        jTabbedPane1_stateChanged(e);
              // contentPane
              contentPane.setLayout(new BorderLayout(0, 0));
              contentPane.add(jTabbedPane1, BorderLayout.CENTER);
              // Main
              //Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              Main.setLayout(new BorderLayout(0, 0));
              Main.add(OutputSimSet,BorderLayout.NORTH);
              OutputSimSet.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              OutputSimSet.add(Test, 0);
              Test.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              Test.add(jComboBox1,0);
              //ResultTab
              ResultTab.setLayout(new BorderLayout(0, 0));
              ResultTab.setBorder(new TitledBorder(""));
              ResultTab.add(SimResult, BorderLayout.NORTH);
              SimResult.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              SimResult.add(jComboBox2,0);
              // Test
              this.setTitle("Test");
              this.setLocation(new Point(0, 0));
              this.setSize(new Dimension(600, 500));
              this.setVisible(true);
         public void initializeComponent()
         /** Add Component Without a Layout Manager (Absolute Positioning) */
         private void addComponent(Container container,Component c,int x,int y,int width,int height)
              c.setBounds(x,y,width,height);
              container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTabbedPane1_stateChanged(ChangeEvent e)
              System.out.println("\njTabbedPane1_stateChanged(ChangeEvent e) called.");
              // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jComboBox1_actionPerformed(ActionEvent e)
              System.out.println("\njComboBox1_actionPerformed(ActionEvent e) called.");
              Object o = jComboBox1.getSelectedItem();
              System.out.println(">>" + ((o==null)? "null" : o.toString()) + " is selected.");
              // TODO: Add any handling code here for the particular object being selected
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Create and set up the window.
    Test frame = new Test();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    package oct03_JCBox;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Point;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    public class Test extends JFrame
    private JComboBox jComboBox1;
    private JComboBox jComboBox2;
    private JPanel contentPane;
    private JTabbedPane jTabbedPane1;
    //Main Tab
    private JPanel Main;
    //private JPanel OutputSimSet;
    //private JPanel Test;
    private JPanel ScriptGenTab;
    private JPanel ResultTab;
    //Result Tab
    //private JPanel SimResult;
    public Test()
         super();
         //initializeComponent();
         contentPane = (JPanel)this.getContentPane();
         jTabbedPane1 = new JTabbedPane();
         Main = new JPanel();
         ScriptGenTab = new JPanel();
         ResultTab = new JPanel();
    //     OutputSimSet = new JPanel();
    //     Test = new JPanel();
    //     SimResult = new JPanel();
         jComboBox1 = new JComboBox(
         new String[]{"Item 1","Item 2", "Item 3"});
         jComboBox1.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent ae) {
              System.out.println("Yeah");
         jComboBox2 = new JComboBox(
         new String[]{"Item 1","Item 2", "Item 3"});
         jComboBox2.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   System.out.println("Yeah");
         // Main
         //Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         Main.add(jComboBox1);
         //ResultTab  -----     
         ResultTab.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         ResultTab.add(jComboBox2);
        //      jTabbedPane1
         jTabbedPane1.addTab("Main", Main);
         jTabbedPane1.addTab("ScriptGenerator", ScriptGenTab);
         jTabbedPane1.addTab("Simulation Result", ResultTab);
         jTabbedPane1.addChangeListener(new ChangeListener() {
              public void stateChanged(ChangeEvent e)
                   jTabbedPane1_stateChanged(e);
         // contentPane
         contentPane.setLayout(new BorderLayout(0, 0));
         contentPane.add(jTabbedPane1, BorderLayout.CENTER);
         // Test
         this.setTitle("Test");
         this.setLocation(new Point(0, 0));
         this.setSize(new Dimension(600, 500));
         this.setVisible(true);
         public void initializeComponent()
    //     /** Add Component Without a Layout Manager (Absolute Positioning) */
    //     private void addComponent(Container container,Component c,int x,int y,int width,int height)
    //     c.setBounds(x,y,width,height);
    //     container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTabbedPane1_stateChanged(ChangeEvent e)
         System.out.println("\njTabbedPane1_stateChanged(ChangeEvent e) called.");
         // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
         // TODO: Add any appropriate code in the following Event Handling Methods
    //     private void jComboBox1_actionPerformed(ActionEvent e)
    //     System.out.println("\njComboBox1_actionPerformed(ActionEvent e) called.");
    //     Object o = jComboBox1.getSelectedItem();
    //     System.out.println(">>" + ((o==null)? "null" : o.toString()) + " is selected.");
    //     // TODO: Add any handling code here for the particular object being selected
         * Create the GUI and show it. For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
         private static void createAndShowGUI() {
         //Create and set up the window.
         Test frame = new Test();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.pack();
         frame.setVisible(true);
    public static void main(String[] args) {
         //Schedule a job for the event-dispatching thread:
         //creating and showing this application's GUI.
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
         public void run() {
         createAndShowGUI();
    } Try this - you use too many unnecessary JPanels.
    Which way you prefer with actionPerformed should work either way.
    I think your problem was too many unnecessary Panels and set all attributes before it is added, perhaps,
    not add the panel first and then try to set attributes like layout, color, etc...

  • SCEP 2012 Definition Updates for Linux machines thru SCCM

    We have a situation where SCEP definition needs to be updated on Linux machines which don't have access to internet.
    All I have read is that SCEP functions as stand alone for Linux & Mac machines. Can someone guide thru how do SCEP definitions get updated on Linux machines that are not connected to internet.

    Pls check the below link
    http://www.niallbrady.com/2013/02/22/how-can-i-deploy-system-center-2012-endpoint-protection-definition-updates-from-a-unc-file-shares/
    Thanks, Prabha G

  • Install package generated with OSP does not wok on Linux

    Hi!
    I have generated an install package of my product using Oracle Software Packager 2.2.0.14.0. I have tested it on Windows and Linux systems. I have found that is works properly on Windows but on Linux the installer does not even copies the files to the machine. I have set to the filegroups in the OSP to be copied on all platforms.
    Why the installation does not work on Linux if the settings are correct?
    Can anyone give me a solution?
    Arpad

    Use
    . .bash_profile
    P.S. Where did you find the information to use
    .bash_profile. I would expect you to set the
    classpath in .bashrc, .profile or, to allow all to
    get the same environment, in /etc/bashrc .I tried . .bash_profile and got this answer:
    bash: CLASSPATH: command not foundAnd I don't recall how I decided to use .bash_profile, but .profile doesn't exist and I don't understand the syntax in .bashrc and it frightens me.

  • IPhoto main view window does not update

    I have a problem with the recent version of iPhoto 9.3 (650.39). Sometimes, if I return from a full view of an image, and then try to go to a different folder, album or anything, the main window view does not update. If I resize iPhoto, the main window stays the same.
    I need to restart iPhoto to fix this problem. My Mac is a 2011 iMac with the latest Version of OS X 10.7.4
    Anyone has a similar problem?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    If it does work in Firefox Safe-mode then disable all extensions (Tools > Add-ons > Extensions) and then try to find which is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Paged dataset does not update it's child dataset

    My paged dataset works great, except on refreshing it's child
    dataset, when sorting or navigating from page to page.
    Clicking on the record in the paged dataset does return the
    correct child dataset record. Clicking on any of the column headers
    to sort the paged dataset or clicking on any of the page functions,
    i.e. Next Page, Previous page, does not update the child dataset
    record.
    The first record of the paged dataset is set to 'selected',
    after sort or page navigation function.
    What am I missing?
    Here is the code that updates the child dataset record:
    onClick="pvPOrders.setCurrentRow('{ds_RowID}');"
    Here is the sort:
    onclick="dsPOrders.sort('PONUM','toggle');"
    Here is the page navigation:
    onclick="pvPOrders.nextPage();"
    There are no observers. The code can be viewed here:
    http://codeshare.ulatu.com/mare3184

    Hi Doug,
    You shouldn't have to do the manual setting of the
    currentRow. The fact that your code snippet here:
    http://codeshare.ulatu.com/mare3184
    Has your PagedView data set pvPOrders depending on dsPOrders
    means that when you set the current row on pvPOrders it just
    forwards the set request on to dsPOrders.
    I'm a bit confused by the other snippet you posted here:
    http://codeshare.ulatu.com/marc0722
    because I don't see any mention of a PagedView in that
    snippet. In any case, I mocked up something that should be similar
    to your situation, and it seems to work just fine:
    <!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"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <script src="includes/xpath.js"
    type="text/javascript"></script>
    <script src="includes/SpryData.js"
    type="text/javascript"></script>
    <script src="includes/SpryPagedView.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsStates = new
    Spry.Data.XMLDataSet("data/states/states.xml", "/states/state");
    var dsCities = new
    Spry.Data.XMLDataSet("data/states/{dsStates::url}",
    "/state/cities/city");
    var pvStates = new Spry.Data.PagedView(dsStates, { pageSize:
    5 });
    //-->
    </script>
    <style type="text/css">
    <!--
    .hover {
    background-color: #FFCCFF;
    .select {
    background-color: #6699FF;
    -->
    </style>
    </head>
    <body>
    <input type="button" value="Prev"
    onclick="pvStates.previousPage()" /><input type="button"
    value="Next" onclick="pvStates.nextPage()" />
    <p>Select a State:</p>
    <div spry:region="pvStates dsStates">
    <div>{pvStates::ds_PageNumber} of
    {pvStates::ds_PageCount}</div>
    <ul spry:repeatchildren="pvStates" spry:choose="">
    <li spry:when="{pvStates::ds_RowID} ==
    {dsStates::ds_CurrentRowID}" spry:setrow="pvStates"
    spry:hover="hover" spry:select="select" spry:selected="">
    {pvStates::name}
    </li>
    <li spry:default="" spry:setrow="pvStates"
    spry:hover="hover" spry:select="select">
    {pvStates::name}
    </li>
    </ul>
    </div>
    <p>Cities for the currently selected state:</p>
    <div spry:region="dsCities"
    spry:repeatchildren="dsCities">
    {name}
    </div>
    </body>
    </html>
    --== Kin ==--

  • JTextField.replaceSelection is not updating

    Hey,
    I have never worked with the Document class before, and I dont really understand Threads at all for that matter, but can someone explain this for me:
    Basically I have overridden the backspace key to modify backspace and it works fine, except for this small part in which I try to remove all selected text. The code below takes place within the keyTyped method of a KeyListener, which is within a class that extends JFrame, and textField is a JTextField within that class.
    if(textField.getSelectedText() != null)
         textField.replaceSelection("");
    }//the above code updates the Document, because when i retrieve textField.getDocument().getText() and print it it looks correct, but textField doesn't update.
    Adding textField.notifyAll(); after textField.replaceSelection(""); updates textField (not sure why exactly), but it also throws a java.lang.IllegalMonitorStateException. When I synchronized(textField){textField.notifyAll();} no error is thrown, but textField does not update. Im not even sure notifyAll() is the method I want to use, but I dont even understand the root of this problem!!!
    If anyone has any clue about this please let me know, thanks.
    Other Notes: i consumed the KeyEvent for backspace through consuming both keyPressed and keyTyped KeyEvents. Im not sure if the code works stand-alone without being in the class but I will check that out and update...
    Update: When testing stand-alone i realized the error was within the key listener not with the replaceSelection() method. I will update one more time when i figure out what the problem is.
    Update: I basically figured out that the backspace character sucks. Sometimes it requires you to add identical code in both the keyTyped and keyPressed methods (such as when you are disabling it with e.consume()). This also applies for my case, when you use JTextField.replaceSelection(): you must put code in both methods for some reason?! Also, notify was not required. Does anyone know why that could have possibly fixed the problem to some extent though?
    Edited by: boldafashizzle on Feb 23, 2008 11:13 AM

    I have overridden the backspace key to modify backspace Why?
    i realized the error was within the key listener You should be using "Key Bindings":
    http://java.sun.com/docs/books/tutorial/uiswing/TOC.html
    basically figured out that the backspace character sucks.Maybe this posting will help explain what is going on:
    http://forum.java.sun.com/thread.jspa?threadID=359205&forumID=57
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html

Maybe you are looking for

  • Please help, mixed reports, malware ? virus ? neither ? I am truly stuck

    I am having a problem with my relatively new 6month old imac. Please I am hoping to find some really smart (& hopefully patient)  mac users for help. I  appreciate all the time mac uers help members with there questions. Yuy guys really are an invalu

  • IPad Mini - Printing issues via AirPrint

    We have two iPad minis at home, we have a Air Print compatible HP 3525 e-All-in-One.. Both the iPad minis are the same generation using the same iOS version 7.0.6 From one iPad mini I can print on the above airprint from the Notes app. However, from

  • About apache tomcat

    i want to download the tomcat to setup a webserver so that i can place some JSP pages there i went to this site http://jakarta.apache.org/site/binindex.cgi but i really had no idea which one i should download....... after reading some of the FAQ ther

  • Orders02 IDOCs not received on the  EDI side

    Hello SRMer's System Information: R/3 4.6 C Issue related to EDI Purchase orders Pushed from R/3: We have a situation where the  Orders02 IDOCS in R/3 have status Code 3  in WE02 (data passed to port successfully) with a green light, but they are not

  • Which application?

    I am using the pages application to transfer Microsoft .doc documents onto my iPad.  What application is used to transfer Microsoft .xll documents across?