/** * Creates lightweight container for the popup. * * @param owner the owner for this popup container. This parameter is not used in this method. It was there mainly * because the corresponding {@link #createHeavyweightPopupContainer(java.awt.Component)} has this * parameter. * @return a ResizablePanel */ @SuppressWarnings({"UnusedDeclaration"}) protected ResizablePanel createLightweightPopupContainer(Component owner) { ResizablePanel panel = new ResizablePanel() { @Override protected Resizable createResizable() { return new Resizable(this) { @Override public void resizing(int resizeCorner, int newX, int newY, int newW, int newH) { setBounds(newX, newY, newW, newH); } }; } }; panel.setVisible(false); panel.setOpaque(false); panel.setLayout(new BorderLayout()); panel.add(this); return panel; }