The message is actually caused by redirection from an https page to an http page. It is fairly common and typically not a big deal. It is, however VERY annoying. I am currently searching for a way to eliminate this and would LOVE to hear if anyone knows how (besides keeping an entire client...
NO! I spoke too soon. Registering a keyboard action (not listener, sorry) traps ESC so I can do something else and keep the dialog open, but if I try to manually dispose the dialog in the event handler, the old behavior comes back -- the event is propagated, despite numerous calls to consume()...
This is the solution.... ask the dialog for its rootPane and set its keyboard listener:
http://forum.java.sun.com/thread.jsp?forum=57&thread=240668&start=0&range=15#1124844
Hello all,
My application catches ESCAPE keypresses and closes the current internal frame in such a situation.
Dialogs (as popped up from JOptionPane) are problematic in that I have not been able to catch the ESCAPE event in the dialog, and it ends up propagating to the internal frame...
Thanks. I'd rather not rely on finding points and whatnot, especially anything having to do with the mouse, since the keyboard might have been used instead. Not to mention that the table _should_ be able to give me this information. Many people have suggested that those methods do in fact...
Hmmm, thanks - I misunderstood the meaning of that method. That must be why it didn't seem to have the effect I wanted (when the user clicks into the cell, its contents all get selected/highlighted). I accomplished that in the end by overriding/catching the focus event on the text field I have...
Hi all,
I have created a simple class that extends DefaultCellEditor (see below), but it appears that shouldSelectCell() is not working - the cell's contents do not get selected.
Advice much appreciated!!
class PaymentCellEditor extends javax.swing.DefaultCellEditor {
public...
Hello,
I imagine it's my renderer(??), but not sure why -- when I call JTable.getSelectedRow() (or for that matter, getSelectedColumn()), if a full row isn't selected, it will always return -1. But I need the row to be returned correctly even when just a cell is selected. Below is a clip of...
Advice grately appreciated:
I can't for the life of me figure out why this doesn't work. From the command line, this works:
copy /B test.txt \\Hq2oakps2\p4103hp5k
And consulting this thread:
http://jguru.com/forums/view.jsp?EID=476993
I wrote this code:
Process printJobProcess = null...
Hello,
Using awt.print.PrinterJob.pageDialog() from a JInternalFrame is problematic in two ways:
1. When pressing ESC to close the pageDialog, the keypress is not consumed by it, and is caught by my application, which thinks that it needs to close the window that was currently open (when the...
I would like to be able to send a file to a WIndows printer in PCL format from my Java app (I've already constructed and verified the PCL in Unix), but am at a loss... anyone have experience with this?
I have been able to send the PCL file via FTP, or by opening a Socket to the printer, but...
I have been able to send a PCL file via FTP, or by opening a Socket to the printer, but would prefer to be able to use PrinterDialog, although I can't see how that would be possible...?
I cannot seem to get my HP9000dn to give me 9 lines per inch. The two most relevant commands (I'm working in PCL) I've tried are:
Setting the line spacing to 9 lines per inch:
Ec&l9D 027 038 108 057 068
This is ignored by the printer (9 is invalid?).
Setting the vertical motion index...
I cannot seem to get my HP9000dn to give me 9 lines per inch. The two most relevant commands I've tried are:
Setting the line spacing to 9 lines per inch:
Ec&l9D 027 038 108 057 068
This is ignored by the printer (9 is invalid?).
Setting the vertical motion index to 5
Ec&l5C 027...
I would like to be able to send a file to a WIndows printer in PCL format from my Java app (I've already constructed and verified the PCL in Unix), but am at a loss... anyone have experience with this?
Hello,
Using awt.print.PrinterJob.pageDialog() from a JInternalFrame is problematic in two ways:
1. When pressing ESC to close the pageDialog, the keypress is not consumed by it, and is caught by my application, which thinks that it needs to close the window that was currently open (when the...
Hello,
After a long day of trying everything I could (including trying out the 4DOS command shell), I am at a loss. I would simply like to do the following to my MS-DOS command prompt in Windows 98:
- increase the buffer size so I can look back at lines that have scrolled off the screen...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.