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

    swing is not working for me ...

    Can you post your code? So we can see what do you do in this class...
  2. Grentis

    swing is not working for me ...

    Hi, what do you do for start the program? you have to compile the class before and then execute it with the java command...
  3. Grentis

    Jar file problems

    Hi, try to set your manifest file in the package as the following one: Manifest-Version: 1.0 Main-Class: pack1.pack2.Main Class-Path: ./classes12.jar where pack1.pack2.Main is the name of the class with the main. Than you can click on your jar and the application should start. Grentis
  4. Grentis

    Print PDF

    Hi, someone can help me to print a pdf file without open external tools? I try setting my print as DocFlavor myFormat = DocFlavor.INPUT_STREAM.PDF; but it doesn't work Thanks Grentis
  5. Grentis

    JTable keypress

    You have to create a class that extends JTable and then you have to rewrite the method processKeyBinding ... protected boolean processKeyBinding(KeyStroke ks, KeyEvent e,int condition, boolean pressed) { selRow = getSelectedRow(); selCol = getSelectedColumn(); if (ks ==...
  6. Grentis

    JTable keypress

    Thanks to all... I resolved it :-P Grentis
  7. Grentis

    JTable keypress

    Thanks for the suggestions. My problem is that I want customize my JTable navigation... I want (when I click RETURN key) the same navigation that I have if I press the TAB key. In fact with TAB I have cell(0,0) -> cell(0,1) -> cell (0,2) -> cell(1,0) -> cell(1,1) -> cell(1,2) ... With RETURN I...
  8. Grentis

    JTable keypress

    This is the code that I wrote void table_keyPressed(KeyEvent e) { if(e.getKeyCode()==10){ if(this.table.getCellEditor()!=null) this.table.getCellEditor().stopCellEditing(); if(this.table.getSelectedColumn()==2){...
  9. Grentis

    JTable keypress

    Hi, I want that when a user click RETURN a particular cell will be selected. I try to set a keypress event but he doesn't work. How can I do what I want? Thanks Grentis
  10. Grentis

    JButton in JTableHeader

    Yes, but the button in the Header don't change its style... it doesn't appear as someone click on it... Grentis
  11. Grentis

    JButton in JTableHeader

    Hello, how can I put a JButton in my JTableHeader? I don't know how show the button pression/release... Someone can help me or tell me a link about this? Tanks Grentis
  12. Grentis

    Updating a database

    I think that you can take a boolean response from the statement and not a resultSet. boolean res = state1.execute(query1); if(!res){ String query2 = "INSERT INTO ......"; state1.execute(query2); } so you can control the result of the first query. If it's fail you execute the...
  13. Grentis

    readLine with socket

    Hi, I use a socket to connect with a server mail. The problem is that I can send messages to it but I can't read the response. My DataInputStream wait infinitely a response and so the program can't continue... I use i.readLine() to read the response. How can I resolve this problem? Thanks grentis

Part and Inventory Search

Back
Top