Sitemap

Amicuk Programming Answers

Problems with JPopupMenu

-0001-11-30   Views:0

Advertisement

Hi : I have a problems with a JPopupMenu. I have a JTable in a modal JDialog with some rows and I want to make some action with some rows so I make JPopupMenu visible with right click (no problem) but, when it reachs the JDialog border, it appears cu

Hi :
I have a problems with a JPopupMenu.
I have a JTable in a modal JDialog with some rows and I want to make some action with some rows so I make JPopupMenu visible with right click (no problem) but, when it reachs the JDialog border, it appears cut because it can't paint out of JDialog limits.
What can I do to watch the entire JPopupMenu ? It's urgent.
Thanks.
Miquel

The replay answer
Advertisement
This is because the Popupmenu is a lightweight component (which can't display beyond the borders of the window), try myPopup.setLightWeightPopupEnabled(false); that makes all popups in your app heavyweight.

Go to See the other 2 answers

Flickerring Problem With JPopUpMenu

Category:DefaultRelease time:2015-10-11Views:130

Hello Friends, In my application made in Java i show a JPopUpmenu on a JINternalFrame in a DekstopPane which is further kept in JFrame. The contents of the PopUpMenu may vary as according to the various places where the mouse is clicked. Sometimes wh[More]

Problems with JPopupMenu

Category:DefaultRelease time:-0001-11-30Views:130

Hi : I have a problems with a JPopupMenu. I have a JTable in a modal JDialog with some rows and I want to make some action with some rows so I make JPopupMenu visible with right click (no problem) but, when it reachs the JDialog border, it appears cu[More]

Probleme on JPopupMenu with JDialog

Category:DefaultRelease time:-0001-11-30Views:130

I use JPopupMenu with JDialog. To display the popup, I use a mousePressed in a panel of the dialog: public void mousePressed(MouseEvent e) { if( e.getClickCount()==1 && e.getModifiers()==MouseEvent.BUTTON3_MASK && ga!=null ) {      mpopup.[More]

Problem with JPopupMenu and JTree

Category:DefaultRelease time:2015-10-11Views:130

Hi, Is there any way to have different JPopupMenu for every node. When I right click on the treenode there is popup menu have a "*JCheckBoxMenuItem*". By default the value of that checkbox is false. Now when i try to right click on a particular[More]

Focus problem when JPopupMenu is shown

Category:DefaultRelease time:2015-10-11Views:130

I have compiled and ran the following 'JPopupTest.java' in JDK 1.4.1 on Windows. Kindly conduct the two tests as given below First Test : ============ The class shows an editable JComboBox and a JButton when visible. Now click the down-arrow button o[More]

There is a Problem in JPopupMenu,

Category:DefaultRelease time:-0001-11-30Views:130

If iam using the JPopupMenu which has JTable added inside in it. after showing that JPopupMenu,i could not able to select JCombobox through mouse , which is also placed in my frame. If anyone know about this, please let me know it will help me out in[More]

Very Urgent - Problem in showing JPopupMenu using 1.4 plugin

Category:DefaultRelease time:-0001-11-30Views:130

Hello , I have a very different problem with JPopupMenu. I have developed a new PopupMenu extending the MetalComboPopup used by the MetalComboBoxUI. I have registered with the JPopupMenu for the callback methods popupMenuWillBecomeVisible && Invis[More]

FocusListener and other listener problem

Category:DefaultRelease time:-0001-11-30Views:130

I don't know why i can't catch Deactivated and LostFocus and other relevant event. I try to make a simplepanel as Popup because Jpopupmenu have some problem. please take a look. regards thanks import java.awt.BorderLayout; import java.awt.event.Actio[More]

JPopupMenu showing only last JMenuItem

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I have a strange problem with JPopupMenu - only 1 JMenuItem (last one) is shown in the menu although there are 2 of them there. Menu is created by following sequence: JPopupMenu popup = new JPopupMenu; JMenuItem item1 = new JMenuItem(); item.s[More]

Problem with  JTree and JPopupMenu

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm using a JPopupMenu with a JPanel in it. In the panel I want to have a JTree. I can build the tree without problems but when I try to "go down" in the tree it vanishes. This happens only the first time that I access a node. When I initial[More]

Problem with InputVerifier and JPopupMenu

Category:DefaultRelease time:2015-10-11Views:130

Hello, I have a problem related to the usage of InputVerifier and JPopupMenu. Consider the following scenario: - A frame composed of two components: a JTextField and a JComboBox - An InputVerifier that was set in the JComboBox (and in its associated[More]

Hot
Hello. I can't download my Keynote project from iCloud. What do i need to do? Help, please!Welcome to the Apple Community. What exactly happens when you try. Are you aware anything you upload from a mac has to be opened first on an iOS device before [More]
Hello I was walking in a rain and i think my very old ipod touch 1st gen got wet and stopped working, however after few days it's working fine, except for wifi, when i go in to setting I'm unable to access wifi button, it's grey and it say NO Wi-Fi, [More]
Hi all I have got a concert about how to set the guest system(Oracle Linux5) to use widescreen? appreciate whatever you can help! Thanks,You're looking for the VirtualBox forums. https://forums.virtualbox.org/ This forum is for discussion of Oracle V [More]
Hi, For some time now I have problems with jpgs on some Internet sites. They don't show up properly. But only on this MAC, every other computer is ok. Here is a screencap of what I see: http://www.renderosity.com/mod/forumpro/showthread.php?thread_id [More]
My PDF Export has been terminated due to invalid former credit card. How I can continue by means of pay by new credit card?.you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password' You might then need to [More]
I'm fairly new to ActionScript 3.0 so forgive me if this question is easy, but I'm having issues with my portfolio slideshow. I have a few thumbnails and when you click on one the image slides in from the right. That part is fine. What I really want [More]
Why doesn't calls to my iPhone ring through to my Mac?The following have the requirements and settings and some troubleshooting information: Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support Get help using Continuity wit [More]
It oracle 10g database version 10.2.0.4 I took the cold backup of the database using rman ( Database name TEST) 1.RMAN> startup mount; 2.RMAN> backup database include current controlfile; 3.RMAN> alter database open; I aim to create the new datab [More]
I want to upload my video to YouTube, but it appears a warning called "no interface". How can I upload videos directly to YouTube?See the FAQ entry How can I get the best quality video on YouTube? and see if that helps. Cheers, Neale Insanity is [More]
Can I just voice my frustration at the fact that some of these softsynths don't respond to cc 11 the way ES2 does, as in, hard wired to expression, control of amplitude. Why can't they all be hard wired like that? I get so frustrated with third party [More]