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 strongm 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. srikandula

    How do I make an .exe file from my java programs?

    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...
  2. srikandula

    How to run .bat file in JAVA

    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...
  3. srikandula

    How Can I execute shell command using a java gui?

    Thats great way of explaining things with patience meadandale.Even a fresher can get the topic easily. well good job done srinu
  4. srikandula

    java and resultset

    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...
  5. srikandula

    How to set child Dialog always appears when active parent Frame

    Set the dialog as modal in the constructor or in the setModal(true) method. srinu
  6. srikandula

    java and resultset

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

    Java Frame - MODAL

    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...
  8. srikandula

    Parsing the input into seperate variable!

    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...
  9. srikandula

    Error using jeditorpane ...............StackOverFlowError

    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...
  10. srikandula

    How to create display lines on label of JButton

    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...
  11. srikandula

    how to print text file

    Thank you zeoliang even this page is help ful to me. srinivas kandula
  12. srikandula

    JButton in swing,,,how to set it immovalble?

    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);
  13. srikandula

    how to print text file

    PrinterJob job = new PrinterJob.getPrinterJob(); try{ job.setPrintable(new prn); job.setCopies(2); job.print(); }catch(Exception ie){ } //the inner class class prn implements Printable{ public int print(Graphics g,PageFormat page, int...
  14. srikandula

    jni

    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...
  15. srikandula

    making lcass files to exes

    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.
  16. srikandula

    How to hide or disable a button?

    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.
  17. srikandula

    JavaHelp and modal JDialogs

    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.
  18. srikandula

    Hey small regarding swings

    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...
  19. srikandula

    What are exceptions?

    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...
  20. srikandula

    Using +-*/ etc. in char

    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

Part and Inventory Search

Back
Top