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 bkrike 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: *

  • Users: lesneskp
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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?
  10. 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...
  11. 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