All components not updating when I change the L&F

I have developed a GUI and want Windows LookAndFeel for it. Please excuse me if I use some terms incorrectly. I'll explain my class structure first -
1. class MainWindow - Contains the main method and invokes MainFrame
2. class MainFrame - Creates the basic GUI and all the components and their event-handlers
3.class MainPanel - Contains the actions to be taken in response to an event in MainFrame
4. Dialog Boxes : Their are several classes implementing several dialog boxes which I load as needed.
I have changed the L&F in the MainFrame class after all the MainFrame class components have been loaded. I have also used updateComponentTreeUI( ) to update all components already formed. I found out that not all components are having the Windows L&F when I tried out a JProgressBar. Instead of the green-broken progress indicator (Windows XP style), it was showing the gray-filled indicator (Java style). Then I noticed even the Menu Items are having the default L&F. Can anyone comment. Not giving any code because I am not sure which part of the huge GUI code should I post, i.e. where the problem really lies.

You just said it doesn't work for a menu. So you
create a frame with a menu and a menu item. About 10
lines of code. Then you add two buttons one to switch
to the Windows LAF the other to the Metal LAF.
Another 10 lines of code. Now you have your demo
program.No no, you din't get me. I know the basics regarding L&F. All the components are working fine, but that JProgressBar is not showing the XP view. Forget the JMenuItems, I am not sure the view is Windows L&F or Metal L&F, but I am sure the JProgressBar is not Windows L&F (while the rest of the components in the dialog box are perfect). Could this be due to something that I missed out while implementing the JProgressBar. But the Windows L&F is loaded before the dialog box containing the progress bar comes in. Your answer to my last Swing post helped me a lot. Hope you (or anyone else) can help me with this too

Similar Messages

  • Condition value not updated when qty changed

    hi all,
    I have created a new condition ZPR1 (copied from PR00) and use a new formula for it.
    There is a problem when I change the qty after the item is billed.
    Suppose the original qty is 1 and total ZPR1 price is 100. When I change the qty to 2, the ZPR1 price is still 100! It will change to 200 if the item is not billed.
    Anybody encounters such problem and how to solve?
    Thanks

    Hi,
    I don't mean to change the unit price.
    I mean the condition value (the item total price) is not updated
    You can't change the price anymore in the condition tab after you billed
    But when you change the qty of the item, the total value should change accordingly
    And I think for my case I should not cancel the invoice. Suppose original qty is 10, and there is partial shipment of 7 and billed the customer. Later customer request to reduce the qty to 7 to complete the item. We should not cancel the invoice in this case.
    Try to test with PR00 and PN00, you will see the item value will be changed according to the item qty.

  • Why the PO action history is not updating when i perform the vacation rules

    Hi,
    Can any one explain why the action history is not updating when performed the vacation rules using the below example
    Example: A >B>C>D are in the approval hierarchy here I have defined the vacation rules by login to the user C here I selected the item type as “All” and delegated to D.
    Now the buyer “A” has sent the document for approval. The user “B” can successfully reserve funds and approved the document. Now the document is automatically delegated to D. Here D can open the document from open notifications and approved the document. Now when I checked the Action history here I cannot find the performed name D who has actually approved the document.
    Note:we are using the 11.5.10.2 version.
    The Action History in the following manner
    Seq Action Performed By
    ================================
    4 Approve C
    3 Forward B
    2 Reserved B
    1 Forward A
    0 Submit A
    From the above action history why the user D name is not showing. Can any one let me know ASAP?
    Regards,
    Keivn.
    Edited by: user10960960 on May 5, 2009 3:36 AM

    When you set up the vacation rule, if you simply delegate the ownership to D, then C retains the ownership and the approval occurs with C's limits. And hence D is treated as the approver.
    If you transfer the ownership, then C is out of the picture. The notification goes to D and when he/she approves, D's limits kick in and he will be seen as approver.
    Hope this helps,
    Sandeep Gandhi

  • Desktop does not update when I change networks

    I'm having this odd behavior that I hope someone can shed some light on.
    My desktop is set to keep my icons arranged by name. All of my volumes appear on the desktop, as well. I've noticed in recent weeks that whenever I switch networks, my desktop stops updating. It happens when I unplug my ethernet at work and move to the wireless network, or when I pack up, come home, and connect to my wireless network at home. When I connect to a network volume or plug in my iPod, the icons do not appear on my desktop. Or, if I delete a file from my desktop, it leaves an empty space instead of rearranging the icons like I have it set to do.
    I've found two ways to fix it.
    (1) Relaunch Finder.
    (2) Open the Desktop View Options (Command-J) and adjust the grid spacing.
    Once I do either of these things, all of the icons rearrange appropriately and network volumes I've connected to since switching networks appear. However, on Monday, when I go in to work, I'll have to do one of those two things again.
    Maybe it's just a nuisance, but I worry that behavior like this is a symptom of a larger problem. I can't think of any new software I've installed that might be causing this trouble. I've repaired permissions and deleted caches and all that stuff. Has anyone else experienced this problem?

    Since changing the grid spacing fixes things, I don't think this is a switching network issue. It sounds to me like its a switching screen resolutions issue. I'm guessing that you have your machine plugged into a monitor at one location and not the other, or you have monitors of different sizes/resolutions at both locations. You can test this theory by simply changing your screens resolution once you get your machine into this state. If it fixes the problem, then I was right.
    As far as a permanent fix, I don't think there is one. Only workarounds like you have already discovered.

  • Treetable does not update when plsql changes db

    Hi,
    I have a database table based VO. From this VO I create a treetable.
    Now I use a pl sql procedure that I invoke from my UI that rollsup data that is shown in the treetable.
    My problem is that a simple addPartialTarget statement on the treetable is not refreshing the data that is shown in the tree table after the rollup finishes and the results are written to the DB.
    I also tried the sequence of these methods that I found somewhere.
    vo.clearCache();
    vo.refreshCollection(null,true,true);
    vo.executeDetailQuery(masterRows);
    This also did not work. On inspection of the code in these methods I saw that they operate on the default iterator (the later 2 calls). Hence my problem since treetable is supposed to have some internal iterators.
    My question is how do I force the treetable to refresh itself in my scenario or more preceisely the VO to update the values in its cache and than the treetable partial target should be able to pick up these changes ?
    Regards.

    So here is the soln for all interested
    After reading the documentation on refresh properties I saw the tip that the only way to refresh the iterators was to call execute on the given iterator.
    This can be done as below :
    // Tell the iterator to re-execute the query to get the new data
    ControlBinding ctr = (ControlBinding) getBindingContainer().getControlBinding("YourTreeBindingNameHere");
    CollectionModel model = (CollectionModel)this.yourTreeTable.getValue();
    JUCtrlHierBinding hierBinding = (JUCtrlHierBinding)model.getWrappedData();
    hierBinding.executeQuery();
    // refresh UI to show the new data in the iterator above.
    AdfFacesContext.getCurrentInstance().addPartialTarget(yourTreeTable);
    Setting the refresh to any amount of properties would not have helped and indeed did not help as I tried it all out.
    Sorry can't find the document page again for this post but you will find this tip where all the property values for Refresh attribute on the iterator are defined i.e. ifNeeded, prepareModel etc.

  • Schedule lines are not modified when i change the requested delivery date

    Hi  
    i have a issue when i am created sales order with requested delivery date 10.11.2011
    and the same is copied in to item schedule lines as a 10.11.2011
    before saving the order i change the requested derlivery date to 11.11.2011
    this new requested delivery date is not dopied to schedule lines at item level (still is having 10.11.2011)
    can any one tell me this is system standard behaviour or can we correct this
    Thanks and Regards
    Kishore

    Hi DevarapalliKK,
    I tried this solution & problem is solved.
    --Go to VA01 & enter the material & qty
    --Select the line item in VA01 & click on Edit
    --Select Fast Change of & click on Delivery date & mention the Delivery date as 11.11.2011. & click on copy.
    --Check the request delivery date in header level in sales tab it will change to 11.11.2011 & also check the Schedule lines in Item level the date will be 11.11.2011 & Save it.
    Please let me know if your problem is solved
    Regards
    Pradeep

  • Sales order: price condition not working when i change the sold to party

    Hi guys,
    I've a strange problem by making the following steps:
    1. Create a sales order:
         By VA01 i create an order by filling the SOLD TO and one material - all OK. The price is calculated correctly.
    2. Change SOLD TO:
        I change the sold to by filling another payer that has a different price list (PLTYP) - the price is not re-calculated
    If i change with another payer with the same price list everything is ok.
    Can you tell me what could be the problem?
    Many thanks

    Did you actually change the sold-to party though or just the payer?  The sold-to party's price list type controls the price list type value copied into the order header.  Even if the payer has a different value, it's not copied to the order header.  You can see this behavior in FV45KFKD_VBKD_FUELLEN.  If you switch sold-to's then you should get a pop-up that new pricing was carried out; you should also see your new price list type value in the order header and you can use the 'analysis' function at the item level to verify that the correct price was used.

  • Firefox will not recognize when I change the settings for .torrent and .rar files to "do this automatically for files like this from now on", EVEN AFTER I change the setting in Tools Options Applications.

    Um, why is this? I think my Question pretty much covers it. Is there a way I can fix the settings so Firefox automatically opens .torrent files and .rar files with the programs I tell it to always use?

    I'm sorry to hear that you didn't receive a reply to this problem. As far as I can tell, there '''is''' no reply or solution to this problem so far, as I have exactly the same problem too.
    One solution that I did try (and which worked, but not for my exact needs) was to tell Firefox to ''always'' '''save''' the torrents to the download folder. Then, in your personal torrent program, change the settings so that torrents from the download folder are automatically searched and added. In this way, torrents are automatically loaded in your torrent program. However, for me, I need to see the contents of the torrent before I download it all, which wasn't possible with this method. If that isn't important to you, this should be a sufficient solution.
    Regards,
    Lewis

  • Itunes will not recognise when i change the folder location

    I have removed all my music from my pc hard drive and moved it to an external hard drive to free up space. i have changed the folder location in preferences but itunes still says that each and every track cannot be found. it doesn.t revert back to the original location just doesn't find the tracks..... i've done the same thing on my powerbook and it worked fine - can anyone help me out please?
    thanks very much.

    Changing the location of your iTunes Music folder in your iTunes Preferences doesn't affect files that are already in your Library ... it only affects where tracks that are added from that point on will be located.
    If you still have the tracks on your PC, you can make use of this article in the Apple Knowledge Base.
    If the tracks aren't on your PC any longer, post back for another strategy.

  • ICal does not update when calendar changes are made on all my other devices. Prompt that the server does not recognize the password, but the password is correct.

    I have an iPhone 5, iPhone 5s, MacBook Air and recently bought an iPad Air. Since I synced my iPad, my iCal on my Macbook no longer updates and every time I open it, this window appears even if I didn't change or forget my password. So I tried changing my password and still this window appears. I hope someone can help me. Thanks!

    As if by magic it is now working. I went away from the mac for a couple of hours, came back and it started to work. This is scary as I would expect this kind of action on a Mickysoft machine but not a Mac. Ho Hum - at least the problem has been sorted even if I don't know how.
    Chris

  • Finder not updating when files change

    I’ve started experiencing a really irritating problem whereby the Finder does not automatically update the view of a directory when I save a file in it. It seems to ignore all file system changes.
    This never used to happen. In fact, when I first installed Leopard I was very impressed at how instantly file system changes were reflected in Finder windows.
    Looking at some of the other threads here I tried relaunching Finder to see if that made a difference. However, attempting to relaunch Finder causes it to ‘exit’ and not restart. If I do "ps ax | grep Finder", I get this line:
    486 ?? E 0:00.00 (Finder)
    The process will not exit, even if I try to “kill -9” it.
    Sometimes rebooting solves the problem.

    Yeah seem to be having the same problem with Finder updating as well.
    I deleted a few of the files in my download folder and all the files disappeared. Yet only the properly deleted files appeared in the Trash. I browsed back to the dowload folder and one thing had reappeared, then all the others suddenly appeared out of nowhere while I was looking at the folder.
    Very strange.

  • How do I update my adobe flahplayer OS X 10.6.8?  It does not update when I install the update from the adobe site

    When I try to update my adobe flashplayer from the adobe website it does not show updated and I still get the error that my adobe is out of date.

    Try un-installing and then re-installing.
    Adobe Flash Uninstaller
    Adobe Flash Player

  • Play list in iCloud does not update when I change it on my computer

    I have a play list that I have  been adding songs to. (runs are getting longer) The problem is even if I click on the update iTunes match in iTunes the added songs do not appear on my other devices. In particular my iPhone. The play list on my phone still shows the old song count the playlist originally had. How can I get these songs to show up on my phone...I have 4 days to get this figured out before the marathon...

    3rd generation iPods don't charge over USB.

  • HT5621 i could not update my applications since the account that applied was when i was in the US...it says that i needed to change itunes store here in the philippines and how do i do that?

    i could not update my applications since the account that applied was when i was in the US...it says that i needed to change itunes store here in the philippines and how do i do that?

    Click here and follow the instructions to change the iTunes Store country.
    (87167)

  • Text not updated when changing the ResourceBundle

    this is an abstraction of what i have on my code:
    controller
    public class controller extends VBox{
         @FXML protected Label ex2;
         public CtrlMainMenu() throws Exception{
              FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/view/View.fxml"));
              fxmlLoader.setController(this);
              fxmlLoader.setRoot(this);
              fxmlLoader.setResources(CtrlLanguage.resource);
              fxmlLoader.load();
         @Override public void initialize(URL arg0, ResourceBundle arg1) {
              ex2.setText(arg1.getString("ex2"));
    }View
    <fx:root type="VBox" xmlns:fx="http://javafx.com/fxml">
         <children>
              <Label text="%ex1"/>
              <Label fx:id="ex2"/>
         <children>
    </fx:root>Language controller
    public class CtrlLanguage{
         private static String PATH =
              new File(
                   CtrlImageLoader.class.getProtectionDomain().getCodeSource().getLocation().getPath()
              ).getParentFile().getPath() + "/language/";
         public static ResourceBundle resource;
         public static void setLanguage(String file) throws Exception{
              try {
                   if(new File(PATH + file).exists())
                        resource = new PropertyResourceBundle(new FileInputStream(PATH + file));
                   else
                        resource = new PropertyResourceBundle(CtrlLanguage.class.getResourceAsStream("/language/"+file));
              } catch (Exception e) {
                   resource = new PropertyResourceBundle(CtrlLanguage.class.getResourceAsStream("/language/EN"));
         public static String get(String key){
              try {
                   return resource.getString(key);
              } catch (Exception e) {
                   return key;
    }problem comes when I try to change the language without changing the current root
    the elements of the view are not updated when the bundle is changed (CtrlLanguage.setLanguage("file");) until the root is changed/loaded again
    is there any way so i can make the content change without having to reload again the root?

    A method which returns an instance of the following class:
    * A localizable read only property for internationalization of string properties.
    * @author Christian Schudt
    public final class LocalizableStringProperty extends ReadOnlyStringProperty {
        private String resourceKey;
        private StringProperty text;
        private String baseName;
        private ClassLoader classLoader;
        // Keep the listener as hard reference in the class, so that it won't get GCed, until this class has no references any more.
        private ChangeListener<Locale> changeListener;
        public LocalizableStringProperty(LocaleManager localeManager, String baseName, String resourceKey) {
            this(localeManager, baseName, resourceKey, null);
        public LocalizableStringProperty(LocaleManager localeManager, String baseName, String resourceKey, ClassLoader classLoader) {
            changeListener = new ChangeListener<Locale>() {
                @Override
                public void changed(ObservableValue<? extends Locale> observableValue, Locale locale, Locale locale1) {
                    localeChanged(locale1);
            localeManager.localeProperty().addListener(new WeakChangeListener<Locale>(changeListener));
            this.baseName = baseName;
            this.classLoader = classLoader;
            this.resourceKey = resourceKey;
            text = new SimpleStringProperty();
            localeChanged(localeManager.getLocale());
        private void localeChanged(Locale locale) {
            ResourceBundle resourceBundle;
            Locale.setDefault(locale);
            if (classLoader == null) {
                resourceBundle = ResourceBundle.getBundle(baseName, locale);
            } else {
                resourceBundle = ResourceBundle.getBundle(baseName, locale, classLoader);
            text.set(resourceBundle.getString(resourceKey));
        @Override
        public String get() {
            return text.get();
        @Override
        public Object getBean() {
            return text.getBean();
        @Override
        public String getName() {
            return text.getName();
        @Override
        public void addListener(ChangeListener<? super String> changeListener) {
            text.addListener(changeListener);
        @Override
        public void removeListener(ChangeListener<? super String> changeListener) {
            text.removeListener(changeListener);
        @Override
        public void addListener(InvalidationListener invalidationListener) {
            text.addListener(invalidationListener);
        @Override
        public void removeListener(InvalidationListener invalidationListener) {
            text.removeListener(invalidationListener);
    }

Maybe you are looking for

  • Can't put bookmarks into folders or create folders

    When I bookmark a page it does not give me the option to put it into a folder or to create a folder most of the time. And if it does then when I try to put it into a folder the whole "bookmark option" disappears.

  • What adapter must i use to make a projection of an m4v-file (sound and images)

    I have to make a presentation from an m4v-file. What adapters shall i use for sound?

  • Opendocument issue

    Here is my issue... I have two simple reports; report A and B. I am calling report B from A using using Opendocument function by clicking link. After i refresh the report A by clicking Refresh All; if i click report B link I am getting warning messag

  • Remove Idoc Status Message

    Hi, Is there any way we could remove the IDoc status message after IDoc posted successfully? I have created the customized idoc status and want to remove the standard message since it is overlapping message. Any helps is very much appreciated. Thanks

  • Midp 2.0 support

    Does only the newest devices support midp 2.0? Or can I run some midp 2.0 code on any device, like motorola i85s? The nokia 7650 does support midp 2.0? Thnks Ricardo