Mouselistner is not working with jtable in the browser

Hi
I am having a problem with jTable.
I added a mouselistener to table header to sort table but when i run that applet from my netbean ide it works fine but when i run that applet in my browser it doesn't work, i have tested, its not even generate mouseclick event .Please help me guys.
I call this function after calling initComponents() method of JApplet.
public void setTableAction()
//set mouselistener to sort table on click of table header
final JTableHeader head= jTable1.getTableHeader();
head.addMouseListener(new java.awt.event.MouseAdapter()
public void mouseClicked(java.awt.event.MouseEvent evt)
Vector data= ((DefaultTableModel)jTable1.getModel ()).getDataVector();
sortTable(data, head.columnAtPoint(evt.getPoint()));
//set action map to change the default action performed for enter key pressed
InputMap imap = jTable1.getInputMap(JTable.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
KeyStroke enterKey = KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0);
KeyStroke tabKey = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0);
final Action oldAction= jTable1.getActionMap().get(imap.get(tabKey)); // get map to set enter key.
imap.put(enterKey, "enter"); // set enter key
Action newAction = new AbstractAction(){
public void actionPerformed(ActionEvent e) {
oldAction.actionPerformed(e);
JTable table= (JTable)e.getSource();
table.changeSelection(0,0,false,false);
if(table.isCellEditable(0,0))
String sTemp= (String)table.getValueAt(0,0);
if(sTemp.length()>0) {
if(bRenewItem)
retrieveRcodeDetails("",sTemp);
else
processRCodeDetails(sTemp, e);
}else
table.editCellAt(0,0);
jTable1.getActionMap().put("enter", newAction);
jTable1.setPreferredScrollableViewportSize(jTable1.getPreferredSize());
}

Hi,
I also am using the Bépo layout with an encrypted drive and encountered the same problem: the Return key does not work.
It seems to work fine if you use the fr-bepo-latin9 keymap.
# /etc/vconsole.conf
KEYMAP=fr-bepo-latin9
But I also looked at the files /usr/share/kbd/keymaps/i386/bepo/fr-bepo.map.gz and /usr/share/kbd/keymaps/i386/bepo/fr-bepo-latin9.map.gz (you can open gzipped files in vim directly). fr-bepo-latin9.map.gz defines keycode 28 (Return) but fr-bepo.map.gz does not.
I modified fr-bepo.map.gz:
# vim /usr/share/kbd/keymaps/i386/bepo/fr-bepo.map.gz # Append that line : "keycode 28 = Return".
# mkinitcpio -p linux # Rebuild the initramfs.
The Return key now works, but the Backspace (14, "Delete") and Shift (54) keys don’t work. I found that both the cf.map.gz (french canadian layout) and fr-bepo-latin9.map.gz files define those keycodes as well as other non-printing keys so I copied the following lines from fr-bepo-latin9.map.gz to fr-bepo.map.gz:
keycode 1 = Escape Escape
keycode 14 = Delete Delete
keycode 15 = Tab Tab
keycode 28 = Return
keycode 29 = Control
keycode 42 = Shift
keycode 54 = Shift
keycode 56 = Alt
keycode 58 = Caps_Lock
keycode 97 = Control
It works! Don’t forget to rebuild the initramfs after you change the keymap file.
# mkinitcpio -p linux
I will send a message to the kbd and bépo projects mailing lists and report back.

Similar Messages

  • Macbook Pro 2011 DVI HDMI out does not work with TV when the power cable is connected

    My Macbook Pro (Early 2011) DVI HDMI out does not work with TV when the power cable is connected. If get the blue screen and then can use the macbook but nothing is displayed on the TV. If i go into display I can see that there are two screens but nothing displayed on the TV. If i take the power cable out at this point the TV shows the second desktop as expected. If i then reconnect the cable, the screen flickers, as though it is being affected by the power cable, and the screen goes blank on the TV. Only if i remove the DVI cable do i get the blue screen again. If i remove the power cable and reconnect it will do it every single time, so i cannot see it being a TV issue or a minor glitch.
    I have had this working previously but at the minute it seems to not be playing ball....any thoughts
    Thanks
    Dan

    BUMP
    Any ideas?

  • My mac's keyboard is not working with my mac.the green light blinks and i cannot get onto my mac. everything on the support questions does not help because i cant go on the mac and i cant sign in

    my mac's keyboard is not working with my mac.the green light blinks and i cannot get onto my mac. everything on the support questions does not help because i cant go on the mac and i cant sign in

    If you can't sign in, then you can't troubleshoot and/or pair the keyboard until after that........ so, for that, you will need to borrow someone's USB wired keyboard in order to get signed in and to the Keyboard Bluetooth Preferences.

  • HT4972 2nd generation ipod touch is pretty much no good anymore?  It is not able to upgrade to iOS5.1 and so will not work with many of the Apps now available in the App store.  Is there any way to find out which apps will work with 2nd generat

    2nd generation ipod touch is pretty much no good anymore?  It is not able to upgrade to iOS5.1 and so will not work with many Apps in the iTunes store?  Is there a way to find out if the App will work before you download?

    Look to the app developer to provide that information when browsing the iTunes Store.
    The iPod Touch still works, so what's your problem with it? It still works with older apps, it still does what it's intended to do.
    If you aren't happy then sell it and buy a new one.

  • Why is YouTube not working with Safari all the sudden?

    At first I thought it was a problem with YouTube's site because a lot of videos were not loading up (thumbnails). Then I noticed that I could not comment on a video, nor could I "Like" a video. I can't even logout either! I am still using Safari 5.1.10.
    I loaded up Youtube on my Firefox browser and it came right up! I could leave comments, logout and back in, like a video and share it on Facebook! So there is definitely something wrong with Youtube working with the Safari browser or perhaps mine is just outdated maybe?

    Hi ..
    YouTube content requires Flash.
    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Not empty the Safari cache.
    From your Safari menu bar click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now click Develop from the menu bar. From the drop down menu click Empty Caches.
    Now try a video. If you still have problems, try troubleshooting Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • NETSCAPE 7.1 did not work with 2.0 Object Browser

    If I use Object browser I can select table, view, sequence...
    but nothing is shown. I tested on htmldb.oracle.com
    All works fine with IE, ...
    Query Builder works with Netscape

    Hi Lutz,
    Netscape 7.2 or higher is required.
    Joel

  • Why does SUMIF and SUMIFS not work with decimals as the condition?

    I'm trying to do a budget report.  The items in the budget are number 2.1, 2.2 all the way up to 2.43.  On another page I am subtracting the amounts used each month from the allotted budget for each item.  The problem that I am having is that when I put in the formula it's not subtracting right because it is ignoring the difference between 2.1 and 2.10, 2.2 and 2.20.  Here are two of the ways that I have tried but neither work
    =SUMIFS(รายการจ่ายเงิน Feb. 2013 :: จำนวน,รายการจ่ายเงิน Feb. 2013 :: หมายเลขงบ,2.1)
    =SUMIFS(รายการจ่ายเงิน Feb. 2013 :: จำนวน,รายการจ่ายเงิน Feb. 2013 :: หมายเลขงบ,"2.10")
    =SUMIF(รายการจ่ายเงิน Jan. 2013 :: หมายเลขงบ,"2.10", รายการจ่ายเงิน Jan. 2013 :: จำนวน)
    On the page with the monthlly report I have like this:
    item number        description         amount
    2.1                         food                5.50
    2.10                     electric bill          300
    on the yearly amounts page it shows the item amounts like this
    2.1                     305.50
    2.10                   305.50
    What I need it to show is like this:
    2.1                     5.50
    2.10                300.00
    Is there a way to make the formula reckonize the difference in the numbers and give the correct results?

    TH,
    First, you must make sure that your "Item Number" is NOT a number, but is formatted as Text.
    Then, add an auxiliary column in which we make certain that the  "Item Number" will never be confused with a real number.
    Finally, use the Aux column for your "Test Values" range argument in SUMIF.

  • IPhone 4 blacks out, could not work with just pressing the home button and lock screen button, only worked when I plugged it in the charger

    My iPhone 4 started to blackout out of nowhere and it wont work only until I plugged my phone into the charger. It has been going on for several times in a day, where it just randomly blacks out. Do anyone know what is the problem and how do I exactly fix this? thanks

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                                                       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Shift+m not working with skype in the backround

    Since installing the new version of skype, I am finding that I cannot press shift+m, I'm having to either close skype or hit caps lock + m to get a capital M.
    Any solutions?
    Solved!
    Go to Solution.

    In Skype go to Tools -> Options -> Advanced -> Hotkeys. Is Shift+M associated with any keyboard shortcut?

  • Require Logon Using Secure Password Authentication does not work with plaintextlogin on the server side

    Hi All ;
    We are in the middle of a migration Project but we stuck with this pop3 setting. Most of the mailboxes uses pop3 to connect Exchange 2010 with the setting spa + port 110 on the client side. We want to give same authentication options for the pop3 settings
    on 2013 side but when spa is selected the pop3 rejects the connection with the following error.
    Your e-mail server rejected your login with SPA.
    So both settings for pop3 protocol is same but the client cannot connect from 2013 server.
    Where can i enable this feature from Exchange 2013 .

    Hi,
    Please make sure that we have enabled Outlook Anywhere and 2 pop3 services in Exchange 2013.
    More details in the following article:
    Enable POP3 in Exchange 2013
    http://technet.microsoft.com/en-us/library/bb124934(v=exchg.150).aspx
    Please make sure port 110, port 587, port 25 are available.
    Please try to disable the NTLM authentication on Exchange 2013 server for testing.
    Please also try to run Outlook client under safe mode to avoid some AVs and add-ins.
    Please also try to re-create new profile to refresh the caches for testing.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • External USB HD does not work with HAL:

    External USB HD does not work with HAL:
    From the last 10 days the HAL auto-mount with ntfs-3g file system of my external hard drive  does not woks.
    But the manual mount procedure with the command mount -t ntfs-3g /dev/sdb* /mnt/XYZ works.
    I've followed the instructions in the wiki: http://wiki.archlinux.org/index.php/HAL and the system has worked up to the last kernel or HAL update.
    My fat32 usb-stick works without any problem.
    If I try to open the device with KDE it appears an error popup wit this message:
    TODO: have to rethink extra options
    Error: kio_media_mount_helper
    The log from the kernel.log is
    Nov 6 22:03:16 myhost usb 5-1: new high speed USB device using ehci_hcd and address 4
    Nov 6 22:03:16 myhost usb 5-1: configuration #1 chosen from 1 choice
    Nov 6 22:03:17 myhost Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    Nov 6 22:03:17 myhost ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    Nov 6 22:03:17 myhost Initializing USB Mass Storage driver...
    Nov 6 22:03:17 myhost scsi6 : SCSI emulation for USB Mass Storage devices
    Nov 6 22:03:17 myhost usb-storage: device found at 4
    Nov 6 22:03:17 myhost usb-storage: waiting for device to settle before scanning
    Nov 6 22:03:17 myhost usbcore: registered new interface driver usb-storage
    Nov 6 22:03:17 myhost USB Mass Storage support registered.
    Nov 6 22:03:22 myhost scsi 6:0:0:0: Direct-Access WDC WD32 00JB-00KFA0 0811 PQ: 0 ANSI: 0
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sdb: sdb1
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Attached SCSI disk
    Nov 6 22:03:22 myhost sd 6:0:0:0: Attached scsi generic sg2 type 0
    Nov 6 22:03:22 myhost usb-storage: device scan complete
    and the error.log is
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Do you have some idea ....
    Bye.

    I have done the following:
    Downloaded the patched hal version.
    used makepkg in /abs/local/trunk/ to create a pkg for pacman
    used sudo pacman -U pkgname to install it.
    used sudo nano /etc/hal/fdi/policy/preferences.fdi to create the fdi file with the following content:
    saved the file and removed my ntfs entryes from fstab and rebooted. and still there is no automount off ntfs partitions.
    have i done something wrong?
    br fjodork
    WARNING: what follows is a guide of what did work for me, I'm still in an early stage of learning linux, so please correct me if anything of what follows is wrong/dangerous/stupid. As I said, this worked for me, it's not pretty, since I was learning each step on the fly and I'm sure there are better ways to do this.
    So fjodork, you seem to have done the the necessary steps, though i couldn't get it to work until i first removed hal without dependencies
    pacman -Rd hal
    it will give you some warning about the dependencies, ignore  it since we are reinstalling hal in a few steps.
    First i tried to follow Raymano's link, obviously it showed me nothing in the browser so I thought it might be a broken link.
    So I downloaded the source tarball from here http://hal.freedesktop.org/releases/hal-0.5.10.tar.gz
    unpacked it changed the /tools/hal-storage-mount.c as per Milfadoodle's instructions.
    at first I tried to compile directly from source, the process would finish without a glitch though after reboot nothing changed, as if hal weren't
    installed, i guess there were issues with paths. anyway read on
    Then repacked the source in tarball, copied it to /var/abs/extra/system/hal and modified the PKGBUILD as follows
    makedepends=('pkgconfig' 'gperf')
    options=('!libtool')
    install=hal.install
    source=(${pkgname}-${pkgver}.tar.gz #removed url so makepkg looks in the current directory for the tarball
        hal
        hal-policy.patch
        cryptsetup_location.patch
        hal-0.5.9-hide-diagnostic.patch
        ntfs3g-valid-options.patch)
    md5sums=('6641c30a27c00485c6accac5110ff911' # replace with md5sum of your package's sourceball (run md5sum filename)
             '882f67668cb14a0a9e4a27ef22278027'
             '5ba8b610aa9763a5f42b9f7cbd7a86ad'
    then makepkg (i had to add --asroot, don't ask why
    and finally pacman -U hal-0.5.10-1-i686.pkg
    another reboot and everything worked without a glitch!:D (yeah i know i still haven't got rid of the reboot mentality )
    I have also put the policy files as per the wiki instructions.
    PS: I know this is a dirty way to getting things done but as i said, I'm just starting
    If anyone could comment/correct/explain this post I'd be more than happy, the automount issue was bothering me for about a month now (you'll say why do I need ntfs in the first place? well, I only recently switched for Linux as my primary OS, these are some relics of the M$ era

  • After upgrading to Lion internal mic does not work with Facetime

    After upgrading to Lion internal mic does not work with Facetime.  The mic is picking up sound as noted in System Prefs.  This was working just fine before the updgrade.  Facetime works OK on my iPod. 

    you have in french a tutorial to recreate your partition here
    Rebuild partition with Recovery HD lion after upgrade to 10.7.2
    i tested, it's work !
    For your wifi problem:
    Try to change your setup of wifi, look this table given by apple:
    I changed my wifi setup wep to wpa and it's work !

  • What's With Volume Logic Plug-In Not Working With iTunes V7. and Up

    Hello Folks. I recently updated to iTunes ve 7.0.2 and now my great Volume Logic Plug-in won't work. I downloaded the latest update and then read info on the Plantronics site about the problems with the plug-in with new itunes updates.
    Is anyone here figured out what's going on or a workaround. That plug-in makes such a positive difference in music sound quality, the tunes almost feel "naked" without it
    Steve

    Prior to the 1.3.2 released (beta or the now-available final), Volume Logic did not work at all with iTunes 7. According to Plantronics, Volume Logic does not work with Airtunes and the AIrport Express (it's stated right in their FAQ).

  • Simple pass not working with Chrome

    I've seen this posted numerous times (some posts going back to 2012) and I have yet to see an answer that works. I just bought a windows 7 machine with simple pass.  Simple pass simply does not work with chrome. The only time it works is when I log on to windows itself. Everything is new and up to date, and simple pass is configured correctly. 
    This is one of the reasons why I bought this machine, and it just doesn't work. Can someone, anyone, tell me how to make it work?

    It does work with IE Explorer but I have to use Chrome for work

  • HT201493 Is that right that find my friends is not working with ios7?

    Is that right, that find my Friends is not working with ios7?

    The location of the device ( iphone, ipad) will only be updated if Find My Friends is running on that device. If FMF is completely quit, that device's location will not be updated. This is a terrible change from before !

Maybe you are looking for

  • How do I find out what type of hard drive I have?

    I recieved a message from Apple that I had to have my 1TB Seagate hard drive replaced.  However, when I look in "About this Mac," it says my memory is a "4 GB 1067 MHz DDR3".  I don't know whether this "memory" is the same as my hard drive.  Does thi

  • Imported concert from MainStage 2, trouble with stereo output.

    Hi everyone, I've imported a concert from mainstage 2 in the newest 3. I don't know why but I found many trouble when setting the output of the project. I'm using a Focusrite Saffire Pro 24 DSP and when a stereo output is set, I see in mainstage the

  • C330 All in One Touchscreen PC - de, webcam problem after 8.1 update

    After upgrading to Win 8.1my microphone and webcam are not recognised or visible as installed peripherals. Reading that the preinstalled YouCam software will no longer function after upgr I have deinstalled it (may be able to recover it from a Carbon

  • Trigerring a mail to the buyer if PO is blocked

    hi Guru's, I need to trigger a mail to the Buyer when the PO is blocked. Can any one suggest the user exit for the same. Thanks Nishant

  • Installing Flash Player Adobe log in problem

    Trying to install new version of Flash Player. Can not get past NAME/ PASSWORD page. I have just spent 2 hours going to my OLD aol account, setting new password and still cannot get in.  That page has "Jane" as my NAME as an auto fill. None of the pa