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 SkipVought 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. BZJavaInst

    System shutdown

    Java, is a programming language that runs on many platforms and not just windows. If Sun created a method just for shutting down windows, that would go against the portablity advantages of the language. Sun would have to create a shutdown method that basically shuts down the JVM and the...
  2. BZJavaInst

    This may be a stupid question, but....

    No, you can do that with what they call JAR files. A Jar file is a Java Archive file. Kind of like a Zip file with all your classes and files within it. There is a Jar utility that comes with the JDK to create them. If you create a JAR file and a manifest file for it, then you can do this...
  3. BZJavaInst

    String Help Needed

    What you are trying to do can not be done with Strings because their data physically can not be changed in Java. If you want to change the data at specific subscripts, you must use class StringBuffer. You can however do the following with Strings: String myString = null; myString = myString...
  4. BZJavaInst

    Closing a window

    You want to look at the dispose() method. If using a Frame or JFrame it releases the window resource in memory. Also, It is not really a child, you are just creating another instance of the object. You should have the other Frame in memory running if you did not dispose() it. When you close...
  5. BZJavaInst

    Java VM

    Sorry, I mistyped it. try: http://javastudy.virtualave.net Regards, Brian
  6. BZJavaInst

    Java VM

    java.exe is the sdk command you execute to run a Java Application. It can be found in the c:\jdk1.3\bin folder. You will also find there the javac.exe which is used to compile your java programs. Java programs have the .java extension. After they are compiled they have the .class extension...
  7. BZJavaInst

    showMessageDialog

    Have you tried the escape sequence character for return key? That is put \n in your string. Brian
  8. BZJavaInst

    centering applications

    Here is a little piece of code which works great for me. //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = this.getSize(); if (frameSize.height > screenSize.height) // make sure frame fits frameSize.height = screenSize.height...
  9. BZJavaInst

    Java Development Software System Requirements

    Good point LeonTang, I find myself preferring to write the GUI myself and the Layout Managers. When using the IDE's a lot of code is added by the IDE. If I am in a hurry, I do the visual programming with the components and them modyify the code to do what I want it to do. My students think I...
  10. BZJavaInst

    Java Password box

    Yes, I know LeonTang, I mentioned that above and it is a swing GUI class. I use it all the time and I prefer it. I don't know what Hiren is using AWT or SWING GUI? They should never be mixed. One or the other. Also, you will need a Plug in from SUN if you are using Swings in Applets. The...
  11. BZJavaInst

    Callable statement question -- what am I missing?

    Make sure you use the same field order as what is in your select. I beleive they have to match. I had some code which calls store procedures on a SQL server and I had to make sure the order matched the Select. Brian
  12. BZJavaInst

    about methods...

    If you use a full IDE with your Java programming, such as JBuilder, it comes with the API methods embedded in a tree form. You can expand on packages, classes, etc. to see the original code used by Sun with their developement. You can not change the code, but you can view it and read their...
  13. BZJavaInst

    How to extend number of bold signs in TextArea

    Try adding the scroll bars and you should be able to continue adding letters and scroll to see them. Brian
  14. BZJavaInst

    java applet to show message

    Yes, there are countless ways to displays messages in Java Applets. 1. Put a label on your applet and use the setText() to change a message for the label caption. 2. Use the showStatus() to put a string on the status bar of your applet. 3. Use JDialog (swings) or Dialog (awt) to interface...
  15. BZJavaInst

    Java Password box

    NO, the sample code I gave you is in pure Java and not VB. Visual Basic is a totally different programming language. A completely different animal. Here is sample code on how to call a second html form from your Java applet. You should look up these classes and methods to become familar with...
  16. BZJavaInst

    Java Development Software System Requirements

    This are all very good points on these Java IDEs. I have used JBuilder and Visual Age. I prefer JBuilder because it has a great debugger with break points etc. It does take a while to load when starting, but then it works great. Visual Age is more complicated. IBM uses a repository project...
  17. BZJavaInst

    about methods...

    The SUN documentation API has 2 levels to get to the methods. 1. Click on a package and then the class within that package. 2. Click on a class(left frame in the browser), this is a complete list of all the classes. Once you have selected a class or Interface, you will see all the methods...
  18. BZJavaInst

    Java Password box

    Here is some example code I used: Label lblPassword; TextField txtPassword; lblPassword = new Label("Password:", Label.CENTER); lblPassword.setFont(new Font("Serif", Font.BOLD, 18)); lblPassword.setForeground(Color.black); txtPassword = new...
  19. BZJavaInst

    How to extend number of bold signs in TextArea

    What do you mean by extend the number of signs. Be more specific and I will see if I can answer your question. Brian
  20. BZJavaInst

    New file and open file code.

    Off the top of my head, here is some code for menus. I'll leave the Event handling to you. If you are using the swing package (GUI), then use JMenuBar, JMenu, and JMenuItem. private MenuBar myMenuBar; private Menu menuFile; private MenuItem itemAbout; private MenuItem...

Part and Inventory Search

Back
Top