Glass Pane Effect in JDev.

i experts,
I am using JDev 11.1.1.5.0, I am using the following code for rendering messages.
                    FacesMessage fm = new FacesMessage("Thank you for Contacting us!!!");
                    fm.setSeverity(fm.SEVERITY_WARN);
                    FacesContext fc = FacesContext.getCurrentInstance();
                    fc.addMessage(null, fm);Now my problem is to make a glass pane effect behind the faces message. As same as the viewing popup. I should restrict my user from editing the form until I close my faces message. If this question sounds silly, kindly apologize me.
Thanks,
-Arun

you mean
<af:dialog modal="true">modal="true" means that the dialog does not allow the user to make changes on the base page until the dialog is closed. A non-modal dialog will allow the user to make changes on the base page; if the user navigates away from the base page, the dialog will close.
Timo

Similar Messages

  • Glass pane effect in faces message.

    Hi experts,
    I am using JDev 11.1.1.5.0, I am using the following code for rendering messages.
                        FacesMessage fm = new FacesMessage("Thank you for Contacting us!!!");
                        fm.setSeverity(fm.SEVERITY_WARN);
                        FacesContext fc = FacesContext.getCurrentInstance();
                        fc.addMessage(null, fm);Now my problem is to make a glass pane effect behind the faces message. As same as the viewing popup. I should restrict my user from editing the form until I close my faces message. If this question sounds silly, kindly apologize me.
    Thanks,
    -Arun

    duplicate of {thread:id=2534727}
    Timo

  • Glass Pane( preventUserInput when user clicks on Search button in af:query)

    Hi,
    We are using glass pane implementation on a search screen.
    When I click on Search button in af:query component (having selectInputDate (Date Picker) components)., glass pane is firing correctly,
    but second time when I am trying to select date using Date Picker (and Change the Month), glass pane is fired (entering into handleBusyState function) and calendar popup is not opening.
    I folled the below article for implementation.
    url: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/27-long-running-queries-169166.pdf used for glassPane implementation.
    Can any one help me for this issue.

    Hi am using the following code (javascript) -- Jdev(11.1.1.3)
    function preventUserInput(evt){   
    var eventSource = evt.getSource();
    var popup1 = eventSource.findComponent("showGlassPanePopup");
    if (popup1 != null){
    AdfPage.PAGE.addBusyStateListener(popup1,handleBusyState);
    evt.preventUserInput();
    //JavaScript call back handler
    function handleBusyState(evt){ 
    var popup = AdfPage.PAGE.findComponentByAbsoluteId('r3:0:r1:0:showGlassPanePopup');
    if(popup!=null){
    if (evt.isBusy()){
    popup.show();
    } else if (popup.isPopupVisible()) {
    popup.hide();
    AdfPage.PAGE.removeBusyStateListener(popup, handleBusyState);
    ... End of Code..
    This line .. (popup.isPopupVisible()) removes the Popup , if popup is visible...
    If u want the view am using..
    SELECT EMPNO , DEPTNO , HIREDATE FROM EMPLOYEE (sample Application i have created), created a view criteria for this..
    ( (EMPNO = :empNum ) AND (DEPTNO = :deptNum ) AND (TO_CHAR( TO_TIMESTAMP(HIREDATE), 'yyyy-mm-dd hh24:mi:ss.ff') = :hireDts ) ) (View Criteria)
    .. <af:clientListener method="enforcePreventUserInput" type="query"/> (added for af:query)
    Popup Used: <af:popup id="showGlassPanePopup" contentDelivery="immediate">
    <af:dialog id="d2" type="none" closeIconVisible="false">
    <af:panelGroupLayout id="panelGroupLayout1" layout="vertical">
    <af:outputText value="Processing......Please Wait.." id="ot97"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    1. When i click search for first time.. it is showing like -- Processing .. Please Wait'
    2. When i click select Date picker it is show -- Processing .. Please Wait'
    and show a calender popup window.. If we change the month ... it will again show like -- Processing .. Please Wait'
    and it will not open calender window.
    Please Help me on this..Am facing trouble due to this.
    Thanks in Advance.
    Edited by: user10115793 on Nov 15, 2011 12:58 AM

  • Different glass pane behaviour in Mac and Windows

    I have an application with a glass pane containing a panel that is set non-opaque. On this panel I do amouse drag and draw a transparent rectangle when the mouse is released. On the main frame below there is a picture. This works fine on a Mac, I end up with a transparent rectangle on top of the bottom frame. However, when I run the same program on a Windows machine, as soon as the mouse is released, the rectangle is drawn and the glass pane layer gets opaque, hiding the picture below.
    Any solutions?

    >
    I'd suggest you to post some code. ...>Some code is good, but an SSCCE is better. ;-)

  • Placing a hatched or window pane effect on a photo in the album

    Iam in the middle of making an album as a gift, one of the photos was placed with a window pane effect on it, I know how to remove it, but would like to place that same effect on a different photo in the album. Unable to find out how to do it.  Tjank you for your help.

    What version of iPhoto? I assume you mean you're making a book, right?  Can you take a screenshot of the photo with the effect and post it (use the camera button in the tool bar).  What does the photo look like back in its Event?  I don't know what you mean by a window effect but it might be one of the Effects options in the Edit mode
    Select the photo in it's Event and use the Photos ➙ Revert to Original menu option if it's not grayed out.  That will remove any edit done in iPhoto.
    OT

  • Glass pane  how to use it?

    please i am new to Java i wanted toknow more about the glass pane component why cant it be use as the content pane .

    google is your friend
    http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html#glasspane

  • Plug Ins for Glass Shattering Effects

    Hi Everyone,
    Does anyone know where or how or even if it is possible to find a plug in or program that I can apply a glass shattering effect to footage and picture, you know the effects where it breaks the pictures in to different shapes of broke glasses then float off the screen?
    Thanks,
    Dan

    This definitely is possible in Adobe After Effects, but that's certainly not inexpensive, if that's what you're looking for.

  • Can the Adobe Photoshop Layer Support with Captivate 4 be use to show a Zoom & Pan Effect?

    I'm working with a client that is interested in creating the "Zoom & Pan" effect you get with Camtasia using Captivate 4.  I'm not finding enough information to support that this is possible with Captivate 4.  The Photoshop Layer Support feature with Captivate 4 comes across as something that may work to some degree however, it is again unclear if it would definitely work to give the zoom & pan effect I am looking for.  Would anyone mind explaining this feature in greater detail and/or offering any ideas for how I can show the zoom & pan effect in Captivate 4?

    Hi there
    LOL, good luck with that!
    NOTHING in Captivate will achieve what you are seeing in Camtasia. Sorry, there simply is no comparison. Sure, Captivate has panning while recording, but what you end up with are several herky jerky snapshots of suddenly being in a different screen area. Sort of reminds me of walking through a room while slowly closing and opening your eyes. In other words, you are seeing version 1 of the panning feature. We hope it improves, but it's not there yet.
    If you have Camtasia, you could combine it with Captivate for some nice and interesting effects and have the best of both worlds! I do that.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Splitpane under a glass pane

    I have a lot of components under a transparent glass pane.
    I dispatch mouse events captured by the topmost glasspane
    to underling components converting coordinates with
    SwingUtilities methods.
    Everything works fine except a splitpane. When a try to
    resize one of the components it contains, nothing happens.
    validate(), repaint() methods invoked on the split at event
    dispatching time are completely unusefull.
    The glasspane gets MouseListener and MouseMotionListener
    events.
    Whats the trik to get the split working?
    Thanks.

    Thanks for the response. The application I am writing has a split pane down the middle, with a glasspane on each side already over what are called View containers. However, a View in either of those containers may contain another splitpane.
    I was hoping for a simpler framework style solution such that the developers of a View would not be required to implement their own glasspane functionality and have to tie into the active View management.
    My current recourse is to utilize the KeyboardFocusManager to attempt to accomplish what I was trying to do with the GlassPane: set the active view based on selection in any portion of the View (component or empty Panel area). Got the first half working pretty easily, I expect the second have to be quite more challenging.
    Thanks again.

  • How can I block the keyboard using the glass pane ?

    I have a problem with the GlassPaneDemo from the Java Tutorial in
    the
    uiswing/components/example-swing
    folder.
    When the glass pane is visible it blocks the mouse input but the
    keyboard input doesn't. For example if the glass pane is visible and
    you press the F10 key, the menu will be activated. So the keyboard is
    not at all blocked.
    Can this problem be fixed ? I mean, to really block the keyboard
    when the glass pane is visible.
    Here I wrote down the specification written in the
    Java Documentation at the setGlassPane method from the
    RootPaneContainer interface:
    The glassPane is always the first child of the rootPane and the
    rootPanes layout manager ensures that it's always as big as the
    rootPane. By default it's transparent and not visible. It can be
    used to temporarily grab all keyboard and mouse input by adding
    listeners and the making it visible. by default it's not visible.
    As it may be seen, one says that the keyboard input can be blocked.
    HOW ?
    In hope that I resolve the problem, I have made some changes such as,
    adding a key listener to the glass pane add listening to the keyboard events,
    but I failed to fix the problem.
    Faithfully yours,
    Sarmis

    Here is an example that I think will work for you.
    Note the consume() call on the event object. I think that is what you're after.
    import java.awt.event.*;
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    public class Comparer extends JFrame implements ActionListener
        private GlassComponent myGlassPane;
        private JTextField myField;
        public Comparer()
            getContentPane().setLayout(new FlowLayout());
            getContentPane().add(myField = new JTextField(20));
            setGlassPane(myGlassPane = new GlassComponent());
            JButton theButton = new JButton("Glass");
            theButton.addActionListener(this);
            getContentPane().add(theButton);
            pack();
        public void actionPerformed(ActionEvent anEvent)
            myGlassPane.setVisible(true);       
        public static void main(String[] args)
            new Comparer().setVisible(true);       
    class GlassComponent extends JComponent implements AWTEventListener
        Window myParentWindow;
        public GlassComponent()
            super();
            this.setCursor( Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );
            setOpaque(false);
            addMouseListener( new MouseAdapter() {} );
        public void setVisible(boolean aVisibleBoolean)
            if(aVisibleBoolean)
                if(this.myParentWindow == null)
                    this.myParentWindow = SwingUtilities.windowForComponent(this);
                Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.KEY_EVENT_MASK);
            else
                Toolkit.getDefaultToolkit().removeAWTEventListener(this);
            super.setVisible(aVisibleBoolean);
        public void eventDispatched(AWTEvent anEvent)
            if(anEvent instanceof KeyEvent && anEvent.getSource() instanceof Component)
                if(SwingUtilities.windowForComponent( (Component)anEvent.getSource()) == this.myParentWindow )
                    ((KeyEvent)anEvent).consume();
    } HTH,
    Fredrik

  • Loss of audio panning effects with timeline audio of Sync type "Stream"

    I have a Flash animation which is loaded into a parent master Flash file. In the animation, there is voice audio embedded in the timeline which is synced with a character animation. The Sync type of the audio is set to Stream, which is essential for the mouth movements to match the audio. When I try to pan the voice audio so that it comes only out of the right speaker, it sounds fine during preview playback, but after publishing, all of the panning effects are lost. If I change the Sync type to "Event" or "Start", the panning effects work fine, but the audio is terribly out of sync with the animation.
    The source audio is a mono audio file. Not sure if that has anything to do with it. I've tried changing the publish settings for both the parent and the child animation Flash files to be Speech, Mp3 mono, Mp3 Stereo and just about every other option, with no desirable results. I have also tried publishing and running the animation without loading it through the parent file, also no results.
    Is there some kind of rule in Flash about Stream versus Event audio and panning? Do I need to use a stereo audio source file? I don't currently have access to the original audio files, but I can get them. Are all Stream type sounds automatically converted to mono at runtime or something??
    Thank you thank you thank you

    According to the Adobe installation information the trial version of Premiere Elements 11 is fully functional and the watermark is only present until a licence code is purchased.
    I have edited AVI footage from a camcorder using the program with no problems (and no loss of audio sync) and the watermark is also present with this.
    The odd placement of audio and video was caused by my not dragging the clip carefully enough.
    What is odd is that the clip plays completely normally using WIndows Media Player and VLC Media player so I would expect Premiere Elements to be able to handle it without problems.
    I think that there is some sort of bug in Premiere Elements' handling of mpe4 files (both in versions 10 and 11) rather than there being anything wrong with my computer.
    Is there some way of communicating this directly to the Adobe programers ?
    I enclose screenshots of the project settings:

  • Resizing glass pane

    Disabling GUI controlls causing the loose of the controls beauty.
    However, sometimes it is neccessary, to display the control in
    a uneditable mode, especially when the input can not be consumed.
    The perfect idea to maintain the beauty of the GUI contorls and
    make them uneditable, is to put a glass infront of them, so you just
    look from pattern :).
    This is a greate idea provided through GlassPane in the Swing API.
    But, still there is a limitation, why?
    The glass pane should be as large as the JRootPane, which means
    that you have to cover the whole top-level container :(.
    Take this example:
    I have a TabbedPane that consists of multiple tabs and the tabbed pane is loacted in a JApplet. I need to move between the tabs while making the controls in side the tabbs uneditable. Here I was constrained by the
    Glass Pane since it covers the whole applet's area, and no more accessability to the tabbs.
    Some one said: redispatch the event to the TabbedPane, I said: Ok, but
    no method in the TabbedPane tells me which tab has the x,y point.
    I suggest to make the GlassPane resizable, and to provide a method in
    the TabbedPane which takes the x,y a returns the index of the selected
    tab.
    Please what do you think ? :-)

    I think it is not useful because you can create your own glasspane for any component you want !
    Look at this thread :
    http://forum.java.sun.com/thread.jsp?forum=57&thread=268566
    I hope this helps,
    Denis

  • Redrawing glass pane

    Hi, I have a program where I am storing information which takes up some time. I created a progressbar and put it in the glass pane and update it several times during this process. Below i posted a simplified example. In this example it works as it should and the progress bar gets redrawn every time I call pb.update().
    However the code I use in the application is complex and the progress bar does not get drawn onto the screen until the method finishes, which is too late. I have tried putting repaint() calls at the end of the update() method, but that does not work. Although the program enters the paint method, nothing gets drawn onto the screen. The only thing that helped was paintimmediately(), which painted the contentPane() on the screen, but did not paint the glassPane.
    My question is, how does java determine when to redraw the glass pane, since I don't have a repaint() call anywhere. Is there a way to force java to draw the glasspane on the screen? Or if you have any tips as to what could be the problem.
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class Main extends JFrame {
       public Main() {
         setSize(200,50);
         setVisible(true);
         ProgressBar pb = new ProgressBar();
         setGlassPane(pb);
         pb.setVisible(true);
         Thread t = new Thread();
         try {
             t.sleep(1000);
             pb.update();
             t.sleep(1000);
             pb.update();
             t.sleep(1000);
             pb.update();
             t.sleep(1000);
             pb.update();
             t.sleep(300);
         } catch ( Exception e ) {}
         pb.setVisible(false);
        public static void main(String[] args) {
         JFrame.setDefaultLookAndFeelDecorated(true);
         Main app = new Main();
         app.addWindowListener(
            new WindowAdapter() {
               public void windowClosing( WindowEvent e )
              System.exit( 0 );
    public class ProgressBar extends JComponent {
    JProgressBar jProg;
    int cur;
        public ProgressBar () {
         init();
         cur = 0;
         setOpaque(false);
        public void init() {
            jProg = new javax.swing.JProgressBar(0,100);
         jProg.setValue(0);
         jProg.setStringPainted(true);
         jProg.setSize(200,30);
         add(jProg);
       public void update() {
         cur += 25;
         jProg.setValue(cur);
    }

    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html]How to Use Progress Bars for a working example. You should also read the section from the tutorial on "How to Use Threads" since you are not using the Thread correctly in you simple demo.

  • Why glass pane requires setLightWeightPopupEnabled(false)?

    In the code below, the glass pane is a JPanel which everybody knows is a Swing lightweight component. Then why JComboBox requires setLightWeightPopupEnabled(false) for its proper functioning? What on earth does the method, in the first place? Why glass pane? What oddity in the hell does the glass pane have that other Swing component doesn't, never?
    import javax.swing.*;
    import java.awt.*;
    public class GlassPaneOddity{
      public static void main(String[] args){
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel gp = new JPanel(new BorderLayout());
        frame.setGlassPane(gp);
        JComboBox cb
          = new JComboBox(new String[]{"alpha", "beta", "gamma", "delta"});
        cb.setLightWeightPopupEnabled(false); // why this line is so critical?
        gp.add(cb, BorderLayout.NORTH);
        frame.setSize(300, 300);
        frame.setVisible(true);
        gp.setVisible(true);
    }

    This is a quite interesting subject:
    The JRootPane has basically 2 components (although its layout is managing a few more):
    - the glasspane
    - the layered pane
    The z-order of components inside containers (so also for JRootPane) is defined to be:
    - index 0 is highest
    - index 1 is lower but higher than 2 etc...
    The glasspane is added always on index 0 (meaning highest)
    The layered pane is added after (meaning lower)
    Inside the layered pane are added:
    - the content pane
    - the menubar
    And the layout of the rootpane (RootLayout) takes care of the positioning of the glasspane, layered pane, content pane and the menubar.
    The layered pane has a layer for content (containing contentpane and menubar) but also for popups. The popups are shown on top of the content pane, but always under the glasspane.
    As far as I can see this seems to be in line with the explanation under the rootpane tutorial. And in line with Michael's observation.
    Hope it helps,
    Marcel

  • Glass pane in popup

    I have a button on click i will load a popup window. I want to show a glass pane and splash screen in the popup. How can I do that on click of parent screen command button ?
    <af:commandImageLink text="#{row.ProjectName}" id="cil1"
    action="dialog:callEditProject"
    useWindow="true"
    windowEmbedStyle="inlineDocument"
    windowModalityType="applicationModal"
    windowHeight="500" windowWidth="900"
    launchListener="#{EditProjectLaunchBean.launchEditProject}"/>
    I am able to do a glasspane splash screen on the same window using the example
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/27-long-running-queries-169166.pdf
    Thanks
    Suneesh

    I got the same problem. Is there any solution yet??

Maybe you are looking for

  • Text-inset cross-reference PDF bug ever fixed?

    We're using FrameMaker 8.0 and Acrobat 8.1. Has Adobe ever fixed the bug where cross-references in text insets aren't converted to valid links in PDFs? In other words, do we still need to work around that bug by using newlink / gotolink hypertext mar

  • REJECT statment to break GET event is Obsolete in ECC 6.0 - Alternative?

    Hi Developers, REJECT statment is used to break from GET event (say GET PERNR event in Logical Database) used to process for an Employee. This REJECT statement is Obsolete . Is there any alternative for this ? If so, please reply at the earliest as i

  • Button in ADOBE

    Hi Experts, I am displaying Vendor details on the form. Now i had placed a button on the my form and i need to display the Vendor city (ORTO1) when i click on this button. Please tell me how do i do this? Thanks Dany

  • What is the method of getUserName() for JDBC DataSource in JDeveloper 11g.

    Hi All, I am facing a issue about getUserName() Method. The below method   getDBTransaction().getConnectionMetadata().getUserName() working fine for JDBC URL While the  same method not working for JDBC DataSource. So What is optional method for getUs

  • Can responders to my form attach a file to the form?

    I would like to use the forms as a submission for for printing. This will necessitate attaching a document to the request. Is this possible?