Hello tixmix,
I too thought that of making the .exe in begining to run the java programs.But then i realized if i am to write and .exe files why should i go for java ? A WORA(write once run anywhere) concept.Then i would have fixed to same old "c" to do all this.
But then i slowly...
I have created a program to run the batch file.The problem is when the batch file has commands like "dir" etc its working fine.But when i have command like "cd.." its not running properly.
Say I use
c:\jdk1.3\bin\javaexamples\java batchRunner.class
where batchRunner.class...
Hi low,
We have a method to get th column count it is as follows:
//ResultSetMetaData is an interface which have the info
//the tabe name , no columns ,column names etc
ResultSetMetaData resMetaData = res.getMetaData();
//Now use resMetaData for your work as,say column count
int...
Return a array of objects or Simply a vector from the method someclass2.method2(),where the first part of the array contains the number of columns in the result set and the second element array of the contains the Resultset.Now type cast both into there respectives and use it.
Sorry suji!
You can't make Frame a modal.
For this you have to use one of the frame as Dialog.
The first frame calls the second dialog(which you thought out to be a frame) and sets a property as modal to it.It modal property can be passed as a parameter in the constructor orelse as method using...
Mr/mrs cait,
You can use the following program for your purpose,its simple and hope you understand it save the below as Seperator.java and run
If you still have any problem let me know it.
**********************************
import java.io.*;
import java.util.*;
public class Seperator...
Hello friends,
I am working in a project and got a problem using JEditorPane.
I have set the JEditorPane conetentType as text/html
and editable as false.
Now i am reading a html page in the form of string using jeditorPane1.read(ByteArrayInputStream,Object);
(the html string i have converted...
Can any one help me in this.
I have created a JButton and wanted to the text to be displayed as follows on its label.
--------------------
| Close |
| Exit |
--------------------
That is i want to indicate both close and exit labels for...
Yes ,
Mr qb828, zaoling is right the basic and important part of it is to enable the button.
//business logic...........
top.setEnabled(true);
bottom.setEnabled(false);
//business logic...........
top.setEnabled(false);
bottom.setEnabled(true);
I need to pass a user defined object from my c program to java program via jni. It allows me to return java objects like String, or array of String to the calling function in java. But if the object to be returned is a user defined object then it gives an error message saying it can't convert...
how can we make class files to exe files so that i can just run by the name of the programm .
note:- where i am running class files don't have jdk installed.
hello
you can disable button as
but1.setEnable(false);
and remove the visiblity is
but1.setVisible(false);
these part of code should be in the other button actionlistenre when on its click we have to disable or remove the button.
To call the Javahelp look at the different constructors and call the constructor which have Jdialog as parent .
i guess you get the problem solved i suppose.
I have one class Parent in swings , it created two child classes say Child1 and Child2 which are also swing applications
Parent
/ / Child1 Child2
Now my problem is what i type in child2 should be heard in child1 and vice versa, the parent...
So you want to know what the exceptions are actually ?
i laughed when i have gone throw the question for a moment.
Exception means in simple :-
Doing what you should not do .But still you do that unknowningly.
Let me be more clear.
Say you are doing operation a= b/c ( ie storing b divided...
no we can't used this char '+' for operation to perform this for addition but if still you want to add then
switch(operator){
case '+':
return a+b;
break;
case '*':
return a*b;
break;
...
default:
break;
}
thus u can add but not directly
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.