Package com.alee.extended.window

Examples of com.alee.extended.window.WebPopOver.show()


                popOver.setMargin ( 10 );
                popOver.setLayout ( new VerticalFlowLayout () );
                popOver.add ( new WebLabel ( "1. This is simple detached pop-over dialog" ) );
                popOver.add ( new WebLabel ( "2. You can move pop-over by dragging it" ) );
                popOver.add ( new WebLabel ( "3. Pop-over will get closed if loses focus" ) );
                popOver.show ( owner );
            }
        } );
        return new GroupPanel ( showDialog );
    }
}
View Full Code Here


                popOver.setCloseOnFocusLoss ( true );
                popOver.setMargin ( 10 );
                popOver.setLayout ( new VerticalFlowLayout () );
                popOver.add ( new WebLabel ( "1. Simple pop-over dialog attached to button" ) );
                popOver.add ( new WebLabel ( "2. You can move pop-over by dragging it" ) );
                popOver.show ( ( WebButton ) e.getSource () );
            }
        } );
        return new GroupPanel ( showDialog );
    }
}
View Full Code Here

                popOver.add ( new GroupPanel ( GroupingType.fillMiddle, 4, icon, titleLabel, closeButton ).setMargin ( 0, 0, 10, 0 ) );
                popOver.add ( new WebLabel ( "1. This is a custom detached pop-over dialog" ) );
                popOver.add ( new WebLabel ( "2. You can move pop-over by dragging it" ) );
                popOver.add ( new WebLabel ( "3. Pop-over will get closed if loses focus" ) );
                popOver.add ( new WebLabel ( "4. Custom title added using standard components" ) );
                popOver.show ( owner );
            }
        } );
        return new GroupPanel ( showDialog );
    }
}
View Full Code Here

                    public void actionPerformed ( final ActionEvent e )
                    {
                        popOver.dispose ();
                    }
                } ), SingleAlignPanel.RIGHT ).setMargin ( 10, 0, 0, 0 ) );
                popOver.show ( ( WebButton ) e.getSource () );
            }
        } );
        return new GroupPanel ( showDialog );
    }
}
View Full Code Here

                                    typeChooser.add ( scrollPane );

                                    final Rectangle wb =
                                            source.getUI ().modelToView ( source, ( content.getBegin () + content.getEnd () ) / 2 );
                                    typeChooser.show ( source, wb.x, wb.y, wb.width, wb.height, PopOverDirection.down );

                                    return new HyperlinkEvent ( this, HyperlinkEvent.EventType.EXITED, null );
                                }
                                catch ( final BadLocationException e )
                                {
View Full Code Here

                                    } );
                                    colorChooser.add ( colorChooserPanel );

                                    final Rectangle wb =
                                            source.getUI ().modelToView ( source, ( content.getBegin () + content.getEnd () ) / 2 );
                                    colorChooser.show ( source, wb.x, wb.y, wb.width, wb.height, PopOverDirection.down );

                                    return new HyperlinkEvent ( this, HyperlinkEvent.EventType.EXITED, null );
                                }
                                catch ( final BadLocationException e )
                                {
View Full Code Here

                                    } );
                                    transparencyChooser.add ( slider );

                                    final Rectangle wb =
                                            source.getUI ().modelToView ( source, ( content.getBegin () + content.getEnd () ) / 2 );
                                    transparencyChooser.show ( source, wb.x, wb.y, wb.width, wb.height, PopOverDirection.down );

                                    return new HyperlinkEvent ( this, HyperlinkEvent.EventType.EXITED, null );
                                }
                                catch ( final BadLocationException e )
                                {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.