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
i have a ipod touch and want to update from ios 4.3.5 to ios 6.0.1(the newest). how do i do that without losing the progress in my games that i downloaded from appstore? Pls Help!Backing up saves your settings and other stuff on core apps but it  doe [More]
Many and perhaps most who upgraded to Belle did so because the phone prompted them to perform updates. It is considered to be the responsible thing to do. As with PC's; don't skip updates, it may harm your computer or data. There was never any warnin [More]
Initially syncing was Ok with limited volumes of music and apps. As I have added more music/files/movies/apps syncing became problematical and now does not work at all. I am manually syncing selected items via direct link (not wi-fi) and am only usin [More]
Hi. I want to use a method for getting a screen size in user's pc registry. But, it is so difficult that it's usage. Please, tell me how to use it, if you know how to get a screen size. what is root, key, value? CALL method CL_GUI_FRONTEND_SERVICES=> [More]
Hi, I don't see a few applications when i launch java based OEM from my Administration Client (Oracle 10g). For example i don't see logminor viewer in it but from the web, i have searched that i can use "oemapp.bat lmviewer" command to do this. [More]
Hi, i am getting an error message "DataSource xxxx must be activated", when i try to trigger an infpackage in the BI Quality system. But when i display the Datasource, it is active.You can do this way. Right click on the source system assignment [More]
Hi , I am working on SAP CRM 2007 Ecommerce. I want to log into the webshop. Please help me with the procedure for creation of users to log into the webshop. Regards, SumitHi Sumit, I think it should be the same one for shopadmin/admin/xcm/init.do, X [More]
Hi, Is it possible for a project to exist in more than one folder? I have a large number of projects that I need to process in lots of different blue folders, and would like to work out a way that I can have each project in its proper blue folder and [More]
Hi I am from SAP-BI Background. Can anyone please tell link to BO Documents list.i am new to BO. Thanks NileshHi try this link: https://wiki.sdn.sap.com/wiki/display/BOBJ/ForSAPBIConsultantslookingtostartwithBO Regards, StratosRead other 2 answers [More]
I've added a flash video at www.davidlyell.biz/demoreel.html and am happy with it, but I would like the controls to move around the video placed beneath the actual video. I've been searching the web for a good html flash code generator, without succe [More]