public Overlay(){ setLayout( null ); setOpaque( false ); Workarounds.getDefault().markAsGlassPane( this ); }
/** * Creates a new GlassPane. */ public GlassPane(){ addMouseListener( this ); addMouseMotionListener( this ); addMouseWheelListener( this ); setOpaque( false ); setFocusable( false ); Workarounds.getDefault().markAsGlassPane( this ); }