Hi sujitopics,
And so if you create an instanc of B_Frame as
B_Frame bfr = new B_Frame();
and then call the methods as
bfr.hide();
bfr.dispose();
then your program would compile without complaining.
Hope this helps.
Regards,
Rajarajan
Hi cpope,
I don't think the jar files has to be located in the places that you've mentioned. Let them stay free, whereever they like. Just add that location to your classpath and everything would work fine.
Hope this helps.
Regards,
Rajarajan
Hi poland,
I tried executing the programs, and they worked fine. First I packaged them into a single package, using the package statement. Then, in the project properties, I chose the class to be run as Edu1. When I run the program, it asked for name in the message area. When I typed in my...
Hi sheila11,
Check out the highlighted part of the code in your original copy.
public class TestAutoShop {
public static void main(String[] args) {
AutoShop m = new AutoShop();
m.displayHoursOfOperation();
System.exit(0);
}
}
You'd have possibly commited a spelling error...
Hi jeremytaffy,
It appears to me that you haven't put my code snippet into your main method. If you do so it should work. BTW, I can help you further, if you post that part of your code here.
Regards,
Rajarajan
Hi frag,
You can use the following code snippet to invoke IE from your application.
Runtime rt = Runtime.getRuntime();
rt.exec("C:\\Program Files\\Internet Explorer\\iexplore");
Hope this helps.
Regards,
Rajarajan
Hi jeremytaffy,
As RjB has explained, you'll have to call setImage() on an instance of Frame of JFrame. This means that, in your main() method, instantiate the class that you've inherited from Frame or JFrame. For example if you have a class called HelloWorldGUI extends JFrame, then...
Hi Oliv63,
Let some DB expert answer your question.
If you don't get one, you can try this out.
You can store all your files in a specific directory, and store just the name and location of the file in the DB. This way you can achieve what you want, bypassing all the limitations of the...
Hi Matt,
The Sun Java Tutorial at
http://java.sun.com/docs/books/tutorial/rmi/index.html
and the rmi shortcourse at
http://developer.java.sun.com/developer/onlineTraining/rmi/
might be of some help to you.
Regards,
Rajarajan
Hi Matt,
Add the following lines to a new file and name it as myPolicy.file
grant {
permission java.security.AllPermission;
};
Then in the command line, while executing the app add
-Djava.security.policy=myPolicy.file.
Hope you'll succeed.
Regards,
Rajarajan
Hi Raven123,
You can create a class as follows
class Cards {
private String value;
private Cards(String value) {
this.value = value;
}
public String getValue() {
return value;
}
public static final Cards CLUB = new...
Hi jeanpierre,
The following two pages on the sun site, gives a very brief description of the two technologies that you've asked about.
http://www.sun.com/products-n-solutions/software/oe-platforms/java2se.html
http://www.sun.com/products-n-solutions/software/oe-platforms/java2ee.html
Hope...
Hi jeremytaffy,
I believe you use swing. You can use the
setIconImage(Image image)
method of the java.awt.Frame class, to achieve what you want.
The following is the code snippet I used.
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image image1 =...
Hi bos,
My understanding of your problem, is that, you wish to create a gui, from where you can invoke korn shell script.
If this is what you want, then kudos, it's possible.
Regards,
Rajarajan
Hi jdubowy,
I would recommend "Pure JSP" by James Goodwill (ISBN:0672319020). It will guide you through the prerequisites and the installation procedures as well.
Sun's JSP page at http://java.sun.com/products/jsp/ is worth visiting.
Regards,
Rajarajan
Hi JJOHNS,
You can save the java file in any folder of your choice. Just add that path to the classpath, and run the program, and it would work fine.
Regards,
Rajarajan
Hi,
There are two ways of doing this.
1) In the command prompt give the command,
SET CLASSPATH=%CLASSPATH%;C:\zipfiles\mail.jar
or
2) While executing your application, you can run it as
java -cp .;c:\zipfiles\mail.jar;..... MailApp
In the ....., fill in all the required jar files.
(Here, I've...
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.