File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes Resizable JPopupMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "Resizable JPopupMenu" Watch "Resizable JPopupMenu" New topic
Author

Resizable JPopupMenu

Mahesh Kedari
Ranch Hand

Joined: Nov 28, 2009
Posts: 91
Hi all,
Need some help for creating a resizable JPopupMenu.
Just like any JFrame user should be able to drag JPopupMenu for resizing.


Regards,
Mahesh Kedari - Fidus Technologies Ltd.
Michael Dunn
Rancher

Joined: Jun 09, 2003
Posts: 3619
might be easier to popup a small JDialog, with border only (no titlebar),
then add the same/similar functionality as that of a JPopupMenu
Mahesh Kedari
Ranch Hand

Joined: Nov 28, 2009
Posts: 91
Hi Michael,
Thanks alot for this solution. I've used this at one place but now i need to add a JPopup for hint of JTextField.
Problem with JDialog is, it opens new window on taskbar which i dont want. Is there any way to make the parent component of JPopup menu, resizable runtime?
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 1644
On Windows a JDialog does not show up on the task bar. Maybe its different for other OS.

You can try using a JWindow instead of a JDialog.
 
 
subject: Resizable JPopupMenu
 
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture