Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

WebUtil: CLIENT_GET_FILE_NAME Look-and-Feel

495335Jan 18 2007 — edited Nov 2 2007

I have a workaround that might appeal to WebUtil users who do not care for the look-and-feel that is used by the CLIENT_GET_FILE_NAME built-in.

Sorry to tease everyone, but I do not have time to do a lengthy write-up. On one of your forms -- ideally, the first form that your application runs -- place a bean area implemented using the following class:

    package oracle.forms.ea;

    import java.awt.Component;
    import javax.swing.UIManager;

    public class LAFSetter extends Component {

      public LAFSetter() {
        try {
          UIManager.setLookAndFeel(
                  UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
          e.printStackTrace();
        }
      }

    }

Once the form containing this bean area runs, future Swing dialogs should be rendered using the system look-and-feel. I have performed only enough testing to see that this basically works -- thorough testing is left up to you!

Eric Adamson
Lansing, Michigan

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2007
Added on Jan 18 2007
18 comments
7,141 views