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
Boa tarde a todos. Estamos em fase de testes do projeto de implementação do XML 3.10. Eu tive algumas notas no meu ambiente de teste integrado com rejeição 204 (duplicidade de nota). Eu preciso realizar a consulta de status para essas notas, porém no [More]
Hello, I have the following Query from SAP Business One set as DataSource: SELECT  T1.SlpName as 'Vendor', convert(varchar(12), T0.[U_ER_PROV])as 'City', T0.[CardCode] as 'Client Code', T3.CardName as 'Client Name', T0.DocDate as 'Date', T2.ItemCode, [More]
Hello, I have successfully installed Windows 7 64 bit on my iMac 27" Late 2009 model using Boot Camp and my magic trackpad is not functioning the way it should be. The trackpad works however does not recognise secondary click. There is no option to a [More]
How to prevent duplicate of orginal mail (with original sender's name, address) being "attached" when forwarded?Maybe I am mis-understanding what you are seeing. When I forward a message, the receiver will see the original mail (unless I edit it [More]
Hi All :-) Just a short Question. We´re using OWB 10.1.0.4.0 and Workflow 2.6.x. Now i try to use the E-Meil Activity in a Workflow. Everything works fine, Mails delivered correct. So far so good... Now i want to fetch the evantually appearing Errors [More]
Hi OIM gurus, Let's say a user logged in and requested a resource and it was assigned and provisioned to him/her. A request id is created in OIM. Now, what permission is needed for another user (an admin) to view this request with this request id? I [More]
Hi!  I'm running 8.0.12 on the latest Mac OS and I'm running into an issue where the remote screen has a black line at the bottom and is being cropped at the top.  This happens only if I select the remote computer in the "My Desktop" list and pr [More]
Some of the files synce,m but others -- on the SAME album!! - do not.  I also don't know how to use a copy and paste, becasue this doesn't work either. When I try to drag and drop all I get is ia red crossed cicle.The red circle means that the files [More]
I had an issue while transferring file from source to target..i am able successfully transfer the file to target and later i should move the file to another folder using IO operations. it failed at invoke.following are the error <remoteFault xmlns=&quo [More]
I have multiple tables joined to a single master table and subtotaling works fine. However, when I join to a newly created table the totaling does not work - it just display sum: with no value. The join itself works as I am able to get data from both [More]