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
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
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 ==...
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...
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){...
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
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
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...
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
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.