How to invoke an event when i select one of the items in my JComboBox
Can any one help me for doing this,i have a combobox in a panel,when i select one item in the combobox some text fields below the combobox need to be disabled,that disabled components vary with the item selected,i try to do this by using event listener but some how i could not get invoke the event,pl some one help me for this,any help would be appreciated.
Regards.
The block:
ivjJComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
ivjJComboBox1_mouseClicked(e);
usually should be included in your constructor or init method.
The method:
void ivjJComboBox1_mouseClicked(MouseEvent e){
String s = (String)ivjJComboBox1.getSelectedItem();
System.out.println(s);
should be outside your constructor or init method.
So it should be:
public class yourClassName extends xxxxx implements xxxxx
public yourClassName (...) {
ivjJComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
ivjJComboBox1_mouseClicked(e);
void ivjJComboBox1_mouseClicked(MouseEvent e){
String s = (String)ivjJComboBox1.getSelectedItem();
System.out.println(s);
Similar Messages
-
Firefox closes when I select one of the sites in my favourites menu.
This seems to happen randomly, when I re-start Firefox and select the same site it loads fine. Firefox and all plug ins are up to date.
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration or the JIT compiler is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
*http://kb.mozillazine.org/Safe_Mode
You can remove all stored data from a specific domain via "Forget About This Site" in the right-click context menu of an history entry (Show All History or History sidebar).
Using "Forget About This Site" <u>will remove everything</u> like bookmarks, cookies, passwords, cache, history, and exceptions from that domain, so be cautious and if you have a password or other data from that domain that you do not want to lose then make a note of those passwords and bookmarks.<br />
You can't recover from that "forget" unless you have a backup of the affected files.
It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again. -
When I make my selection it can then proceed to use Firefox. However the next time I open Firefox I get the same problem.
I'm using Windows 7. I have used Firefox for many years with Windows XP and never had this problem. Is there a solution?See [[Firefox is stuck in Safe Mode]]
"Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
Delete the files extensions.* (extensions.rdf, extensions.cache, extensions.ini, extensions.sqlite) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry. New files will be created when required.
See "Corrupt extension files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the "Find Updates" button (in Firefox 4: right-click the extension -> "Find Updates") to do a compatibility check. -
How do i split events when Split Events Before Selected Clips is not even highlighted
iMovie question - how do i split events when Split Events Before Selected Clips is not even highlighted? I just puchased this new iMac yesterday and i am still trying to figure things out!
You should start by having a read of the online manuals and correct forums.
This forum is for iOS (iPads and iPhones).
There are plenty of great resources on the Apple website,
but try to search for iMovie Mac. -
When is select Bookmarks from the Menu Bar, at the very bottom are a bunch of bookmarks. How can I move these in groups to a folder or folders?
The easiest way to move bookmarks around is in the Bookmarks Organizer, which at some point was renamed the Library. To open it, you can choose Bookmarks > Show All Bookmarks or press Ctrl+Shift+b.
(Please note that the sort order of the Library dialog doesn't actually carry over to the menu. To sort the menu alphabetically, it's easiest to open the Bookmarks Sidebar, right-click the words Bookmarks Menu and choose Sort by Name.) -
How to disbale a group of checkboxes when i select one check box WEBDYNPRO
Hi Friends,
Can any body help me how to disbale a group of checkboxes when i select one check box WEBDYNPRO Abap
Also can any body tell me how to handle chain endchain type of scenario in WEBDYNPRO Abap
Thank you..
SaiHi
In the context tab , create 2 context attributes ca_attr1 and ca_attr2 of type WDY_BOOLEAN under a context node cn_node
now in ur Layout , bind the ENABLE property of CheckBoxGroup UI Element with this attribute ca_attr1
bind the ENABLE property of CheckBox UI Element with this attribute ca_attr2
create a action for ur Checkbox , for the OnToggle property of ur checkbox
in OnactionToggle , check if ca_attr2 is 'X' , set ca_attr2 to ' ' ( for disable)
this can be done by code wizard , press control +f7 and use read/set context attributes , use get_attribute and set_attribute methods
// if ca_attr2 is 'X'
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
DATA ls_cn_node TYPE wd_this->element_cn_node .
DATA lv_attr LIKE ls_city-ca_attr2.
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
* get element via lead selection
lo_el_cn_node = lo_nd_cn_node->get_element( ).
* get single attribute
lo_el_cn_node->get_attribute(
EXPORTING
name = `CA_ATTR2`
IMPORTING
value = lv_attr ).
// if lv_attr2 is 'X' , use set_attribute method for ca_attr1
IF lv_Attr EQ 'X' .
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
DATA ls_cn_node TYPE wd_this->element_cn_node .
DATA lv_attr LIKE ls_city-ca_attr.
* navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
* get element via lead selection
lo_el_cn_node = lo_nd_cn_node->get_element( ).
* set single attribute
lo_el_cn_node->set_attribute(
EXPORTING
name = `CA_ATTR1`
value = ' ').
ENDIF.
regards,
amit -
How an INDEX of a Table got selected when a SELECT query hits the Database
Hi All,
How an Index got selected when a SELECT query hits the Database Table.
My SELECT query is as ahown below.
SELECT ebeln ebelp matnr FROM ekpo
APPENDING TABLE i_ebeln
FOR ALL ENTRIES IN i_mara_01
WHERE werks = p_werks AND
matnr = i_mara_01-matnr AND
bstyp EQ 'F' AND
loekz IN (' ' , 'S') AND
elikz = ' ' AND
ebeln IN s_ebeln AND
pstyp IN ('0' , '3') AND
knttp = ' ' AND
ko_prctr IN r_prctr AND
retpo = ''.
The fields in the INDEX of the Table EKPO should be in the same sequence as in the WHERE clasuse?
Regards,
VijiHi,
You minimize the size of the result set by using the WHERE and HAVING clauses. To increase the efficiency of these clauses, you should formulate them to fit with the database table indexes.
Database Indexes
Indexes speed up data selection from the database. They consist of selected fields of a table, of which a copy is then made in sorted order. If you specify the index fields correctly in a condition in the WHERE or HAVING clause, the system only searches part of the index (index range scan).
The primary index is always created automatically in the R/3 System. It consists of the primary key fields of the database table. This means that for each combination of fields in the index, there is a maximum of one line in the table. This kind of index is also known as UNIQUE. If you cannot use the primary index to determine the result set because, for example, none of the primary index fields occur in the WHERE or HAVING clause, the system searches through the entire table (full table scan). For this case, you can create secondary indexes, which can restrict the number of table entries searched to form the result set.
reference : help.sap.com
thanx. -
How do I stop my cursor from selecting things on the page? It shows up like I want to type something and when I press the down key it goes through all the words like its a word document.
== This happened ==
Every time Firefox opened
== June 27, 2010You have '''caret browsing''' enabled - that preference appears as set in your Troubleshooting Information.
http://kb.mozillazine.org/Accessibility.browsewithcaret
Hit the '''F7''' key to disable '''''caret browsing'''''. -
I have duplicate Notes on my iphone 4 (upgraded to iOS 5.1.1) I have followed your instructions to remove the duplicates. How do I get "select Detete Notes" to appear on my Mac? I have connected my phone to my Mac and selected it in iTunes. I clicked the Info pane and deselected the option to Sync Notes. THEN WHAT should I do? How do I get the prompt "Select Delete Notes to remove the duplicates from the device. (I do want to sync them using the over-the-air feature.)
I would try the following:
First sync your phone with iTunes to create a new backup (just in case). When done, disconnect your phone from your computer.
Next be sure that all of your Notes are on your mac (Don't proceed any further if they aren't). If so, turn off iCloud syncing for Notes on your phone go to Settings>iCloud and turning Notes to Off. When prompted choose to delete the notes from your phone.
Next, without connecting your phone to your computer, open iTunes and go to iTunes>Preferences, on the Devices tab check "Prevent...from syncing automatically".
Now connect your phone to your computer, click on the name of your phone when it appears in iTunes on the left sidebar.
Go to the Info tab and under Other check Sync Notes, then further down under Advanced: Replace information on this iPhone, check Notes.
Click Apply at the bottom right to sync your phone. This should sync the Notes from your mac to your phone and you should no longer have duplicate Notes.
Next, on the Info tab uncheck Sync Notes and click Apply, when prompted select to keep the Notes on your phone (haven't tested this step but I believe you will be given the option to keep them on your phone).
Now disconnect your phone from your computer and check the Notes on your phone to confirm that they are still there and that you don't have any duplicates.
Next turn on iCloud syncing on your phone again by going to Settings>iCloud and turning Notes to On.
On your computer, without connecting your phone, go back to iTunes>Preferences>Devices and uncheck "Prevent…from syncing automatically" to re-enable automatic syncing.
That should do it. -
How to avoid data repetation when using select statements with innerjoin
how to avoid data repetation when using select statements with innerjoin.
thanks in advance,
satheeshyou can use a query like this...
SELECT DISTINCT
frg~prc_group1 "Product Group 1
frg~prc_group2 "Product Group 2
frg~prc_group3 "Product Group 3
frg~prc_group4 "Product Group 4
frg~prc_group5 "Product Group 5
prc~product_id "Product ID
txt~short_text "Product Description
UP TO 10 ROWS
INTO TABLE l_i_data
FROM
Joining CRMM_PR_SALESG and
COMM_PR_FRG_ROD
crmm_pr_salesg AS frg
INNER JOIN comm_pr_frg_rod AS prd
ON frgfrg_guid = prdfragment_guid
Joining COMM_PRODUCT and
COMM_PR_FRG_ROD
INNER JOIN comm_product AS prc
ON prdproduct_guid = prcproduct_guid
Joining COMM_PRSHTEXT and
COMM_PR_FRG_ROD
INNER JOIN comm_prshtext AS txt
ON prdproduct_guid = txtproduct_guid
WHERE frg~prc_group1 IN r_zprc_group1
AND frg~prc_group2 IN r_zprc_group2
AND frg~prc_group3 IN r_zprc_group3
AND frg~prc_group4 IN r_zprc_group4
AND frg~prc_group5 IN r_zprc_group5.
reward it it helps
Edited by: Apan Kumar Motilal on Jun 24, 2008 1:57 PM -
How to keep the selection as the old when I select one and click the submit
maybe it is a HTML problem,but I still ask for help here!
When I select one option in the form's element-select and submit it ,I want to keep the JSP page as old, but I can't .I also use cookie and bean.The problem is still being.store the parameter names and their corresponding values in a variable, say Hashtable. After you do the submit, you can retrieve the values from the hashtable.
example:
if you have these parameter names:
"name", "age"
then you can do:
Hashtable h = new Hashtable();
h.put("name", request.getParameter("name"));
h.put("age", request.getParameter("age"));Have this hashtable available in your response jsp so you can retrive the old data. -
when i select apple tv, the "mirror on" tab option doesn't appear below it. Ho can I resolve this? thanks.
Nathan, can you explain the issue in a little detail. What device etc and ios would help.
-
Is there a way to place markers in a multicam clip, and then have those same markers carry over when you select part of the clip for a project (or various projects)?
Thanks. Beforehand, I was double clicking on the multicam clip and forced to make a marker on either the Cam A or B. I realize now that I can do it in the Event Browser. THANK YOU.
Considering I may create >20 markers per clips for around 10 different interviews, I wish there was a way to bring the Event Brower to the bottom half of the FCPX windows, to resemble the screen orientation when I'm working in an actual project (one could do this in iMovie), and this way the markers could be listed to the left without having all the other event clips around it. Is that clear? Is that possible? -
How to use X-Fi Effects without selecting SB as the default sound device?
How to use X-Fi Effects without selecting SB as the default sound device?Hello everyone,
That's my situation.
I have Sound Blaster X-Fi Go sound card and I am using SRS HD Audio Lab. SRS HD Audio Lab was selected as the default audio device and X-Fi effects (X-Fi CMSS-3d, Equalizer etc.) was working without any problem in Windows Xp. I have Windows 7 now and when i select SRS HD Audio Lab as the default device, Creative effects are not working, i must select "SB X-Fi Go!" to get them working but i can't use SRS HD Audio Lab in that case. SRS is also using SB X-Fi Go sound card as the output and volume adjustment on console launcher is working but something is disabling the effects. Any solutions to enable effects ?
Thanks.If the kernel modules for your sound card and webcam both support the index parameter (use modinfo to find out) then adding
options <name_of_preferred_card's_kernel_module> index=0
options <name_of_second_card's_kernel_module> index=1
to /etc/modprobe.d/modprobe.conf (or another modprobe conf file of your choice) should solve the problem. -
I have one itunes account with two phones assigned to it, sons and daughters, (5s). When i phone one of the numbers both phones have started to ring, only when connected to wifi at home. The problem does not occur when not connected to wifi. How do i resolve this please? texting is fine it is only when ringing one of the numbers.
<http://support.apple.com/kb/HT6337>
"To turn off iPhone Cellular Calls on a device, go to Settings > FaceTime and turn off iPhone Cellular Calls."
Maybe you are looking for
-
this is the complete error I get. I just installed firefox so that I can use this feature and now it is useless. Error Summary HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the pa
-
Problem with HP LaserJet 4L and Leopard
4L will not print with Leopard except under following circumstances: If I unplug the 4L, then replug and reset via Print & Fax preference, then, it will print 1 page and stop. Will not print any more until I go through the unplug,replug,reset procedu
-
Is there any way to request songs that are not in itunes store?
I would really like to purchase the song "Puttin' it Down" by Beck, but it is not on iTunes store!
-
Putting 8 mm tapes on my computer? Can I?
We have an old camcorder that we play our 8 mm tapes on. I was wondering if it is possible to hook up that camcorder to our mac and download the footage like I can with my DV tapes? There must be a way, but I am not sure where to begin. There is no f
-
Can anyone tell me the field name, table name for the following scenario?
Hi All, Can anyone tell me the field name and the respective table name for the following scenario's? 1. A report to list all the materials to which Invoice is done and delivery is pending. 2. A report for Order tracking. 3. A report, which gives PO(