Non-terminating console with JOptionPane
This short program...
import javax.swing.*;
public class Test {
public static void main(String[] args) {
JOptionPane.showMessageDialog(null, "Hello!");
...running under Windows 2000 leaves the console open after the message dialog closes. I know I can terminate the program with System.exit(0), but this doesn't seem to be the "correct" approach. Some cleanup function may be required to dispose of the latent message window, but I have not found it yet. Any idea?
Thanks!
Hey Dan, thanks for your reply! You may be correct regarding non-terminating threads being responsible for the freeze. I have modified the test program to display running threads before and after the dialog box is shown:
import javax.swing.*;
public class Test {
public static void main(String[] args)
// Show all threads before the dialog box:
Thread[] array = new Thread[20];
int count = Thread.enumerate(array);
for (int i = 0; i < count; i++) {
System.out.println("Thread " + i + ": " + array);
System.out.println();
// Create the dialog box:
JOptionPane.showMessageDialog(null, "Hello!");
// Show all threads after the dialog box:
count = Thread.enumerate(array);
for (int i = 0; i < count; i++) {
System.out.println("Thread " + i + ": " + array[i]);
System.out.println();
Result --> there is a single "main" thread before:
Thread 0: Thread[main,5,main]
...but there are FIVE MORE threads sitting there after:
Thread 0: Thread[main,5,main]
Thread 1: Thread[AWT-Shutdown,5,main]
Thread 2: Thread[AWT-Windows,6,main]
Thread 3: Thread[Image Fetcher 0,8,main]
Thread 4: Thread[Java2D Disposer,10,main]
Thread 5: Thread[AWT-EventQueue-0,6,main]
One of these is called "AWT-Shutdown" and you would thing it would do its thing and shut down AWT but that does not happen. Another is "Java2D Disposer" and it doesn't seem to dispose of what is necessary either.
Do you have any additional insight into this situation?
Similar Messages
-
Cannot switch to tty (terminal, console) with ctrl - alt - F#
Hi,
I have been stably using arch for half a year,
but never managed to switch to another tty.
I have three suspicions: one is that xmodmap somehow
interferes, as I switched capslock and ctrl, and also
alt and winkey (but that is not an issue on a fedora
install). second, that me switching into runlevel 5
in /etc/inittab somehow is responsible. and third, that
it has something to do with awesome, my window manager.
any ideas are greatly appreciated, thanks!
> uname -r
2.6.31-ARCH
> awesome --version
awesome v3.3.4 (Mercury)
• Build: Sep 9 2009 18:32:37 for x86_64 by gcc version 4.4.1 (nobody@Miranda)
• D-Bus support: ✔Hi all and thanks for the comments,
much to my surprise it was the easiest one - xmodmap causes it,
although on fedora, there is no trouble with the identical setup,
thats why i hadn't checked earlier.
after xmodmapping, alt, ctrl, and F# keys all work independently,
but not together.
So here goes my .Xmodmap (the 166/167 lines are for the
buttons lenovo introduced around the arrow keys and don't
always work as intended, so disregard).
remove Lock = Caps_Lock
remove Control = Control_L
add Lock = Control_L
add Control = Caps_Lock
keycode 166 = Prior Home Home Home Home Home Home Home
keycode 167 = Next End End End End End End End
remove mod1 = Alt_L
remove mod4 = Super_L
add mod1 = Super_L
add mod4 = Alt_L
Any ideas how to go on from here? Because often a
tty comes in quite handy.... -
Hello All
We have a server 2008 R2 HyperV server and during the last few months it started to reboot randomly.
Initially we thought its related to the issue fixed by the following hotfix so we applied it but even with the hotfix it still keeps rebooting.
http://support.microsoft.com/kb/2732595
Unlike what's mentioned in the hotfix , the faulting module is not "ntdll.dll" but "msvcrt.dll".Also came up with the following indication the reboots could be related to KB2871997 but that update is not installed
on this system.
Following are the events from system log.
Log Name: System
Source: LsaSrv
Date: 2/9/2015 11:58:12 PM
Event ID: 5000
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: HV2008-Host
Description:
The security package Kerberos generated an exception. The exception information is the data.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="LsaSrv" Guid="{199FE037-2B82-40A9-82AC-E1D46C792B99}" />
<EventID>5000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2015-02-10T04:58:12.415529200Z" />
<EventRecordID>8091130</EventRecordID>
<Correlation />
<Execution ProcessID="736" ThreadID="5888" />
<Channel>System</Channel>
<Computer>HV2008-Host</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="Package">Kerberos</Data>
<Binary>050000C00000000000000000000000001111F6FEFE070000020000000000000000000000000000008EEB1802000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</Binary>
</EventData>
</Event>
Log Name: System
Source: USER32
Date: 2/9/2015 11:58:24 PM
Event ID: 1074
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: HV2008-Host
Description:
The process wininit.exe has initiated the restart of computer HV2008-HOST on behalf of user for the following reason: No title for this reason could be found
Reason Code: 0x50006
Shutdown Type: restart
Comment: The system process 'C:\Windows\system32\lsass.exe' terminated unexpectedly with status code 255. The system will now shut down and restart.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="USER32" />
<EventID Qualifiers="32768">1074</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-02-10T04:58:24.000000000Z" />
<EventRecordID>8091132</EventRecordID>
<Channel>System</Channel>
<Computer>HV2008-Host</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data>wininit.exe</Data>
<Data>HV2008-HOST</Data>
<Data>No title for this reason could be found</Data>
<Data>0x50006</Data>
<Data>restart</Data>
<Data>The system process 'C:\Windows\system32\lsass.exe' terminated unexpectedly with status code 255. The system will now shut down and restart.</Data>
<Data>
</Data>
<Binary>06000500000000000000000000000000000000000000000000000000000000000000000000000000</Binary>
</EventData>
</Event>
Following are the events from Application logs.
Log Name: Application
Source: Application Error
Date: 2/9/2015 11:58:14 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: HV2008-Host
Description:
Faulting application name: lsass.exe, version: 6.1.7601.22653, time stamp: 0x534893ed
Faulting module name: msvcrt.dll, version: 7.0.7601.17744, time stamp: 0x4eeb033f
Exception code: 0xc0000005
Fault offset: 0x0000000000001111
Faulting process id: 0x2e0
Faulting application start time: 0x01d03c91dbe5854f
Faulting application path: C:\Windows\system32\lsass.exe
Faulting module path: C:\Windows\system32\msvcrt.dll
Report Id: 6af0ff3d-b0e1-11e4-83ca-0026b9340d61
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-02-10T04:58:14.000000000Z" />
<EventRecordID>267648</EventRecordID>
<Channel>Application</Channel>
<Computer>HV2008-Host</Computer>
<Security />
</System>
<EventData>
<Data>lsass.exe</Data>
<Data>6.1.7601.22653</Data>
<Data>534893ed</Data>
<Data>msvcrt.dll</Data>
<Data>7.0.7601.17744</Data>
<Data>4eeb033f</Data>
<Data>c0000005</Data>
<Data>0000000000001111</Data>
<Data>2e0</Data>
<Data>01d03c91dbe5854f</Data>
<Data>C:\Windows\system32\lsass.exe</Data>
<Data>C:\Windows\system32\msvcrt.dll</Data>
<Data>6af0ff3d-b0e1-11e4-83ca-0026b9340d61</Data>
</EventData>
</Event>
Log Name: Application
Source: Windows Error Reporting
Date: 2/9/2015 11:58:23 PM
Event ID: 1001
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer: HV2008-Host
Description:
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: lsass.exe
P2: 6.1.7601.22653
P3: 534893ed
P4: msvcrt.dll
P5: 7.0.7601.17744
P6: 4eeb033f
P7: c0000005
P8: 0000000000001111
P9:
P10:
Attached files:
C:\Windows\Temp\WER5001.tmp.appcompat.txt
C:\Windows\Temp\WER535C.tmp.WERInternalMetadata.xml
C:\Windows\Temp\WER53DA.tmp.hdmp
C:\Windows\Temp\WER6690.tmp.mdmp
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_lsass.exe_3c1aa5eeba75bf26fcebc4f54e714efe7b5162a2_cab_20a56871
Analysis symbol:
Rechecking for solution: 0
Report Id: 6af0ff3d-b0e1-11e4-83ca-0026b9340d61
Report Status: 0
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Windows Error Reporting" />
<EventID Qualifiers="0">1001</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-02-10T04:58:23.000000000Z" />
<EventRecordID>267650</EventRecordID>
<Channel>Application</Channel>
<Computer>HV2008-Host</Computer>
<Security />
</System>
<EventData>
<Data>
</Data>
<Data>0</Data>
<Data>APPCRASH</Data>
<Data>Not available</Data>
<Data>0</Data>
<Data>lsass.exe</Data>
<Data>6.1.7601.22653</Data>
<Data>534893ed</Data>
<Data>msvcrt.dll</Data>
<Data>7.0.7601.17744</Data>
<Data>4eeb033f</Data>
<Data>c0000005</Data>
<Data>0000000000001111</Data>
<Data>
</Data>
<Data>
</Data>
<Data>
C:\Windows\Temp\WER5001.tmp.appcompat.txt
C:\Windows\Temp\WER535C.tmp.WERInternalMetadata.xml
C:\Windows\Temp\WER53DA.tmp.hdmp
C:\Windows\Temp\WER6690.tmp.mdmp</Data>
<Data>C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_lsass.exe_3c1aa5eeba75bf26fcebc4f54e714efe7b5162a2_cab_20a56871</Data>
<Data>
</Data>
<Data>0</Data>
<Data>6af0ff3d-b0e1-11e4-83ca-0026b9340d61</Data>
<Data>0</Data>
</EventData>
</Event>
Log Name: Application
Source: Windows Error Reporting
Date: 2/9/2015 11:58:22 PM
Event ID: 1001
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer: HV2008-Host
Description:
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: lsass.exe
P2: 6.1.7601.22653
P3: 534893ed
P4: msvcrt.dll
P5: 7.0.7601.17744
P6: 4eeb033f
P7: c0000005
P8: 0000000000001111
P9:
P10:
Attached files:
C:\Windows\Temp\WER5001.tmp.appcompat.txt
C:\Windows\Temp\WER535C.tmp.WERInternalMetadata.xml
C:\Windows\Temp\WER53DA.tmp.hdmp
C:\Windows\Temp\WER6690.tmp.mdmp
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_lsass.exe_3c1aa5eeba75bf26fcebc4f54e714efe7b5162a2_cab_20a56871
Analysis symbol:
Rechecking for solution: 0
Report Id: 6af0ff3d-b0e1-11e4-83ca-0026b9340d61
Report Status: 4
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Windows Error Reporting" />
<EventID Qualifiers="0">1001</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-02-10T04:58:22.000000000Z" />
<EventRecordID>267649</EventRecordID>
<Channel>Application</Channel>
<Computer>HV2008-Host</Computer>
<Security />
</System>
<EventData>
<Data>
</Data>
<Data>0</Data>
<Data>APPCRASH</Data>
<Data>Not available</Data>
<Data>0</Data>
<Data>lsass.exe</Data>
<Data>6.1.7601.22653</Data>
<Data>534893ed</Data>
<Data>msvcrt.dll</Data>
<Data>7.0.7601.17744</Data>
<Data>4eeb033f</Data>
<Data>c0000005</Data>
<Data>0000000000001111</Data>
<Data>
</Data>
<Data>
</Data>
<Data>
C:\Windows\Temp\WER5001.tmp.appcompat.txt
C:\Windows\Temp\WER535C.tmp.WERInternalMetadata.xml
C:\Windows\Temp\WER53DA.tmp.hdmp
C:\Windows\Temp\WER6690.tmp.mdmp</Data>
<Data>C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_lsass.exe_3c1aa5eeba75bf26fcebc4f54e714efe7b5162a2_cab_20a56871</Data>
<Data>
</Data>
<Data>0</Data>
<Data>6af0ff3d-b0e1-11e4-83ca-0026b9340d61</Data>
<Data>4</Data>
</EventData>
</Event>
Would really appreciate if someone can point us to the correct direction on how to get this issue sorted.
Regards,
DhanushkaHi Sir,
Please try the following items:
1. if ther is anti-virus installed , please uninstall it temporarily
2. run " sfc /scannow "
3. keep windows up-to-date
4. if you updated some hardware driver please roll it back
5. if the issue persists , please use windows installation media to perform inplace-upgrade for the system
Also please refer to reinstall C++ runtime within the similar thread:
https://social.technet.microsoft.com/Forums/windows/en-US/bf69eeff-24c4-499f-b280-b6a3098f4f9f/problem-with-msvcrtdll-version-70760117744?forum=w7itprogeneral
Best Regards,
Elton Ji
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] . -
Import terminated unsuccessfully with error message imp-00013
I am trying to import dump file of one table in another database.
import is terminating unsuccessfully with error message imp-00013.
(only a dba can import a file exported by another dba)
None of the user has sysdba role.Wheather this is a valid solution?Immagine somebody who knows the account password finds a dump from an old release of your database. If he has IMP_FULL_DATABASE privilege, he can do whatever he wants, compromising data "safety".
Is this valid? Well... IMHO, I don't think so. At least, now the import is done, revoke the privilege.
Regards,
Yoann. -
Keyboard Layout on console with systemd (UK International)
I have a UK keyboard and I'm trying to get "dead keys" working on console with a pure systemd instalation without sucess...
The reason is that I need characters like: áãàõéò and so on...
On X it works great with the following code on "/etc/X11/xorg.conf.d/10-evdev.conf"
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "gb"
Option "XkbVariant" "intl"
EndSection
but I'm not finding a way to make it work on console with systemd, searching for documentation on google didn't help me either.
Here my "/etc/vconsole.conf" file right now:
KEYMAP=uk
FONT=lat9w-16
FONT_MAP=8859-1_to_uni@oupsemma thanks, maybe I wasn't clear cause my english sometimes fails but the issue I'm describing is console (terminal) related only (ctrl+alt+F1...6). When using a terminal like xterm / yakuake on X (KDE here) it works perfectly. Setxkbmap sets keyboard setup for X and it's working great already.
@mijenix thanks for all the details, but I think the above applies to xmodmap too (X related)
I'll try just to keep some distance from terminal (virtual console) from now on guys. I can use xterm anyway Thanks for all replies, I just can't think on any other distro community that's rocks like archlinux. -
How to adjust terminal/console frame width
Hi folks,
Archlinux 86-64 2007-08-2
I have 20" wide LCD screen. How to adjust the window frame size of terminal/console allowing typing to its end rather than after typing a few words the cursor jumps to the beginning overtyping the same line? TIA
B.R.
satimisMisfit138 wrote:I'm going to take a guess here, based on what you wrote.. I think what you are describing might be either a problem with your video card/framebuffer driver, or, you may have modified your PS1 prompt incorrectly.
Did you modify your PS1?
Hi,
Yes, PS1 is what I need. Previously I searched on wrong terms.
After commenting out "PS1='[\u@\h \W]\$ ' " I added follows;
BLUE=`tput setf 1`
GREEN=`tput setf 2`
CYAN=`tput setf 3`
RED=`tput setf 4`
MAGENTA=`tput setf 5`
YELLOW=`tput setf 6`
WHITE=`tput setf 7`
PS1='\[$GREEN\]\u@\h \[$BLUE\]\w/\[$GREEN\] \$\[$WHITE\] '
That is what I need to display on terminal/console.
However I still can't manage to have "black" fore-ground (black characters on typing). I played around on following variation without result.
BLUE=`tput setf 1`
GREEN=`tput setf 2`
CYAN=`tput setf 3`
RED=`tput setf 4`
MAGENTA=`tput setf 5`
YELLOW=`tput setf 6`
WHITE=`tput setf 7`
BLACK=`tput setf 8`
PS1='\[$GREEN\]\u@\h \[$BLUE\]\w/\[$GREEN\] \$\[$BLACK\] '
BLACK=`tput setf 1`
GREEN=`tput setf 2`
CYAN=`tput setf 3`
RED=`tput setf 4`
MAGENTA=`tput setf 5`
YELLOW=`tput setf 6`
WHITE=`tput setf 7`
PS1='\[$GREEN\]\u@\h \[$BLUE\]\w/\[$GREEN\] \$\[$BLACK\] '
Advice would be appreciated. TIA
Besides how to change the colour on "nano"? The characters are difficult to read on typing. I need black characters on white background
satimis -
Which subscription is best for a non profit organization (with limited funds) who needs CC for 1 day a week for maybe 2 or 3 months?
Hi sonnetje,
Kindly go through Creative Cloud pricing and membership plans | Adobe Creative Cloud
If you need it for 2-3 months please check of month-to-months plan as the Annual membership comes with a contact and there would be an early termination fee attached to it. which is 50% of the remaining months.
For more info check the below mentioned link.
Link : Cancel your membership or subscription | Creative Cloud
Thanks,
Atul Saini -
How do I connect to a terminal server with my mac book pro
How do I connect to a terminal server with my mac book pro
Use the Remote Desktop icon on the tray and make sure to use the Fully Qualified Domain Name (FQDN) on the 'name of server' field. If that does not work then use the IP address to connect.
-
Closing active terminal window with applescript
I made a very basic script to lock my screen, and I like how it works. Some of my co-workers would also like it but it has one problem.
When the script runs, a terminal box pops up at the end saying [process complete]. I can click through this and I don't care, they do.
I can't just killall terminal because we use terminal and that could kill our work.
We sometimes need to see output from a script and like the process complete, so don't want to reconfigure our systems to never display it.
I'm trying to find a way to use applescript or something to kill the active terminal window, or the window with the title of LockScreen or something.
Anyone have an idea?
I was hoping something like this would exist but it doesn't seem to: tell application "Terminal" to close windowHere is an easy approach. Start Applications -> Automator
Select Application
In Automator search for "Start Screen Saver". This should be under Library->Utilities
Drag "Start Screen Saver" to the right side panel.
Save the Automator app.
If the user has System Preferencs -> Security -> Require Password ... set, then one the screen saver has started running, it will require the user to enter their password before getting control back.
This Automator app can be double clicked, it will not require the terminal.
With respect to your script. If this is a shell script, AND if you wish to continue using it, then you could create an Automator app that uses "Run Shell Script" under Automator Library->Utilities. This will also NOT require the use of Terminal, however, be aware that when Automator runs a shell script it DOES NOT have the same environment as when you are running a shell script at your Terminal prompt. There are very few environment variables set, and for example the USER, HOME, current working directory, PATH, etc... may not be the same. If you have dependencies on specific environment information, you may want to write a simple automator script the using "Run Shell Script" to output various environment information into a file so you can see what you have to work with
(id -a
pwd
echo "$#"
echo "$@"
printenv
) >/tmp/automator.environment.txt -
I bought an iPhone 5 from the Apple store with a new Sprint contract in Sept. 2012. I would like to know if I port my number to T-mobile and pay off my Early Termination fee with Sprint, will my iPhone 5 will be unlocked to use with T-mobile network?
As Ethmoid says, it is still a CDMA phone as I told you earlier, and it will not work with t-mobile. Even if Sprint unlocked the phone, it would only unlock the GSM side for international use. They will not unlock the GSM side for domestic use in the US.
-
Error: there are non exicisable item with cenvat tax code
I am getting an error message there are non exicisable item with cenvat tax code while trying to add po for pick and pack from sales order. I request all of you to help me with it.
I have already checked if the item and ware house is exicisable in the check box of the master data.
Best regards,
Sandesh.SreyamshThanks mahendra and rahul,
Unfortunately my issue is not solved yet, the tax is not manually created it was created by sap during new company creation. I checked by adding other tax type in sales order but every time when I try to create sales bom it gives the above error.
@ Rahul the tax is under cenvat type and the Items has been added under exercise transaction. here is what im trying to do
I created a sales order for 4 of my items.
Then i try to create po for two of my as pick and pack items by checking Purchase orders indicator under logistics tab of sales order.
At this point i am getting the above said error.
All the items i am trying to add is exisable and tax is also of cenvat type.
Please help me out of this as im stuch very badly in this issue.
Regards,
Sandesh.Sreyamsh -
Can i use a non-apple keyboard with my imac?
can i use a non-apple keyboard with my imac?
Welcome to the Apple Support Communities
You can use the keyboard you want with your iMac. However, note that some keys, as the Command key, aren't present in non-Apple keyboards. For example, in a non-Apple keyboard, you have to press the Windows key because that's the replacement of the Command key of an Apple keyboard -
Customized KeyboardFocusManager problems with JOptionPane-Dialogs
Hi,
I have a problem I'm not able to solve: With Java 1.4.2 unter Linux, as well as all newer Java Versions (1.4, 1.5, 1.6) under Windows, dialogs created by JOptionPane.showXXXDialog do not react to keyboard events like <Tab> any more when using a customized KeyboardFocusManager. Java 1.5 and 1.6 under Linux work fine.
Here is what I did:
I have a JFrame and want some customized focus control when navigating through the Frame with <Tab>. Therefore I've implemented a class
public class EfaFrameFocusManager extends DefaultKeyboardFocusManagereand said in the main JFrame:
EfaFrameFocusManager myFocusManager = new EfaFrameFocusManager(this,FocusManager.getCurrentKeyboardFocusManager());
FocusManager.setCurrentKeyboardFocusManager(myFocusManager);The constructor of my EfaFrameFocusManager stores the JFrame (this) and the original KeyboardFocusManager (2nd arg) for later use. Within my own FocusManager, I've implemented the method
public void processKeyEvent(Component cur, KeyEvent e)which is checking whether the desired Frame (efaFrame) is currently active or not. If it is active, it's performing my customized operations which is working well. If it is not active (e.g. because a dialog created with JOptionPane.showConfirmDialog() is open), it should perform default actions. So I said within processKeyEvent:
if (!efaFrame.isActive()) { // efaFrame is the previous "this" arg
fm.processKeyEvent(cur,e); // fm is the previously stored CurrentKeyboardFocusManager
return;
}Instead of invoking processKeyEvent on the original KeyboardFocusManager fm, I also tried super.processKeyEvent(cur,e);, but without any change in behavior.
As I said before, this is working well under Java 1.5 and 1.6 with Linux.
However, it is not working unter Windows (any Java version I tried, including 1.4, 1.5 and 1.6) and also not unter Linux with Java 1.4. With these combinations, dialogs created by JOptionPane.showXXXDialog(...) do not respond to the <Tab> key. I do see that my own FocusManagers processKeyEvent method is invoked, and I also see that it invokes the one of the original FocusManager, but the Dialog doesn't react.
What am I doing wrong?
Nick.I have a JFrame and want some customized focus control when navigating
through the Frame with <Tab>. sounds like you should be doing this via a FocusTraversalPolicy
http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html#customFocusTraversal -
I have tried to install office for mac and an iWork trial and each time I go to install after downloading my "terminal" opens with the
heading
bash-80X24 and
in the box reads Joel$-office installer.mpkg joel$ .
nothing further happensThis is thread from Apple discussions.
Look for the suggestion from Shootist007 towards the end of the 2nd page.
It is just may be useful.
https://discussions.apple.com/thread/3709115?start=15&tstart=0 -
Hi,
I am trying to deploy an EJB module have 4-5 EJB's on weblogic 8.1 through JBuilder.
I am getting following error during deployment.
Exception:weblogic.management.ApplicationException: prepare failed for Sample.jar
Module: Sample.jar Error: Exception preparing module: EJBModule(Sample.jar,status=NEW)
Unable to deploy EJB: SampleBean from Sample.jar:
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Cannot export non
clusterable object with jndiName ]
at weblogic.utils.Debug.assertion(Debug.java:57)
at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:272)
at weblogic.ejb20.internal.BaseEJBHome.setup(BaseEJBHome.java:95)
at weblogic.ejb20.internal.StatelessEJBHome.setup(StatelessEJBHome.java:67)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:979)
at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:983)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1283)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Any clue?, what its talking about?
Thanks
NareshHi,
I am trying to deploy an EJB module have 4-5 EJB's on weblogic 8.1 through JBuilder.
I am getting following error during deployment.
Exception:weblogic.management.ApplicationException: prepare failed for Sample.jar
Module: Sample.jar Error: Exception preparing module: EJBModule(Sample.jar,status=NEW)
Unable to deploy EJB: SampleBean from Sample.jar:
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Cannot export non
clusterable object with jndiName ]
at weblogic.utils.Debug.assertion(Debug.java:57)
at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:272)
at weblogic.ejb20.internal.BaseEJBHome.setup(BaseEJBHome.java:95)
at weblogic.ejb20.internal.StatelessEJBHome.setup(StatelessEJBHome.java:67)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:979)
at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:983)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1283)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Any clue?, what its talking about?
Thanks
Naresh
Maybe you are looking for
-
How to display the values stored in the database in the combobox on load?
I am develping one application where in I wanted to display the values in the combobox which I am taking from the database and in the same form passing that value in same form after selecting it,My program is running fine for the first time but next
-
ALV Grid- GET_SELECTED_ROWS returns empty table in edit mode
Hi all, I saw similar threads on this forum, but didn't find the answer. Do you know if that is possible to force grid to return selected rows when is in edit mode? When I switch to display mode everything works just fine. regards, Marcin
-
Hi GURU , I want to add one Tab Strip in Transaction code VC01N .Can anyone please tell me the how can I add this tab .
-
To call Adobe Form thru WD4A as an print option
Hi All, I have created one Adobe Forms I am successfully called it thru a normal ABAP program. Now I want to call it thru WD4A as an print form How shuld i proceed What would be the Driver program needed Thanks & Regards PK
-
I used auto update to download and install the new 4.51 VIA 4in1 drivers and had nothing but issues running them. The system would do a reboot every 30 minutes or so ....I went back to the 4.49 and it all works fine...anyone else have any issues????