Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lesneskp

    SSL certificate?

    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...
  2. lesneskp

    Trapping ESC from a dialog

    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()...
  3. lesneskp

    Trapping ESC from a dialog

    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
  4. lesneskp

    Trapping ESC from a dialog

    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...
  5. lesneskp

    JTable.getSelectedRow() returning -1 when cell is selected

    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...
  6. lesneskp

    shouldSelectCell() in DefaultCellEditor not working?

    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...
  7. lesneskp

    shouldSelectCell() in DefaultCellEditor not working?

    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...
  8. lesneskp

    JTable.getSelectedRow() returning -1 when cell is selected

    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...
  9. lesneskp

    IOException: CreateProcess: cmd.exe /c copy /B...

    Exactly. That was indeed the problem. Thanks all!
  10. lesneskp

    IOException: CreateProcess: cmd.exe /c copy /B...

    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...
  11. lesneskp

    All I want is 9 lines per inch

    THANKS! Perfect!
  12. lesneskp

    PrinterJob.pageDialog not being nice

    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...
  13. lesneskp

    Possible to send PCL from Java to Windows printer?

    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...
  14. lesneskp

    Possible to send PCL from Java to Windows printer?

    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...?
  15. lesneskp

    All I want is 9 lines per inch

    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...
  16. lesneskp

    All I want is 9 lines per inch

    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...
  17. lesneskp

    Possible to send PCL from Java to Windows printer?

    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?
  18. lesneskp

    PrinterJob.pageDialog not being nice

    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...
  19. lesneskp

    MS-DOS prompt configuration - HOW?

    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...

Part and Inventory Search

Back
Top