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. prosper

    Why cvs client on suse10 can block ping?

    I have installed CVS from SUSE 10 DVD including CVS client and CVS server into SUSE Linux Enterprise 10(SUSE 10). I am sure that service of CVS server on this SUSE 10 is configured to be off. I would use the cvs client on SUSE 10 to connect to the repository maintained by CVSNT running on...
  2. prosper

    Handling three different JFrame forms using threads.

    You may look into the following web pages for the explanation: http://www.devarticles.com/c/a/Java/Multithreading-in-Java/5/ http://cnapagoda.blogspot.com/2010/01/thread-join-method.html
  3. prosper

    Download file from MySql database

    My code may not work, you may try to look at the following link: http://www.roseindia.net/jdbc/display-blob-example.shtml
  4. prosper

    Download file from MySql database

    InputStream x=File.getBinaryStream(); int size=x.available(); ServletOutputStream Fileout = response.getOutputStream(); FileInputStream f = new FileInputStream(""); int nextByte = f.read(); while ( nextByte != -1 ) { out.write(nextByte); nextByte = f.read(); } replaced by FileInputStream...
  5. prosper

    Create a tree from a resultset

    You may try to build a binary tree with Java http://www.roseindia.net/java/java-get-example/java-binary-tree-code.shtml
  6. prosper

    Why Static? Redeaux

    import java.awt.*; import javax.swing.*; public class MyJFrame extends JFrame{ static JTextArea jTextAreaObj = null; public MyJFrame() { getContentPane().setLayout(new BorderLayout()); jTextAreaObj = new JTextArea("JTextArea")...
  7. prosper

    Why does it think this is a static context?

    You need to have an object reference to call the method of that object except the method of of that object is defined as static. The following is the second solution. public class FileToConsole { public static void fileToConsole(String cFile) { try { BufferedReader...
  8. prosper

    Why does it think this is a static context?

    Try to call fileToConsole(cInputFile) like this: public class FileTest { public FileTest(String[] args) { String cInputFile = "test.txt"; FileToConsole fileToConsoleObj = new FileToConsole(); fileToConsoleObj.fileToConsole(cInputFile); } } fileToConsoleObj is an...
  9. prosper

    Frustrated Newbie. Cannot read file in Applet

    http://faq.javaranch.com/java/HowCanAnAppletReadFilesOnTheLocalFileSystem
  10. prosper

    how to make a method using three digits chopping

    You need to have basic knowledge in Java Programming to write such method. For chopping the digits, you may use the substring method in Java.lang.String class. http://www.cs.geneseo.edu/~baldwin/reference/java-strings.html For calculating the sum of 1+1/4+1/9+...+1/100, you may use...
  11. prosper

    Basic class and object sharing question

    You can put access modifier on printNames method too
  12. prosper

    Basic class and object sharing question

    You need to study more in basic knowledge in Java. class Test2 { public static void main (String arguments[]){ Test1 a = new Test1(); a.printNames(); } } As you have not used an access modifier in the first line of your code class Test2 { ,your Test2 class can be accessed by...
  13. prosper

    JPanel with screwy dimensions and coordinates

    I suggest that you post some source code that can be compiled and run.
  14. prosper

    Swapping content of 2 vars

    It is amazing that you can swap without using a temporary variable. But It seems to me that swapping those variables is faster than doing those calcuation. I wonder if there will be loss in precision when doing those calcuation.
  15. prosper

    Only part of text in JTextField is visible

    you may try this method when you want to scroll to first part. yourJTextField.setScrollOffset(0);
  16. prosper

    xml to java

    http://ramakrsna.wordpress.com/2008/03/31/generating-java-beans-src-files-from-xml/
  17. prosper

    Baffling tomcat issue

    Please try to remove the compiled classes of jsp and jsp files in /usr/local/tomcat/jakarta-tomcat-5/work/Catalina/localhost/your_context/org/apache/jsp/*
  18. prosper

    Oracle encryption -> Java decryption

    Congratulations. The best thing is that you can solve the problem without help. new byte[] {0,0,0,0,0,0,0,0} is the initialization of a byte array.
  19. prosper

    http get stream command

    Do your Internet Explorer or your browser need to have login name and password for your proxy server to connect to Internet? Please make sure if there is any firewall or proxy server to connect to Internet.
  20. prosper

    set up java

    I suggested you get familiar with the Operating System that you are using. It seems you are not familiar with path in OS. http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html Do you use Windows, linux or Unix?

Part and Inventory Search

Back
Top