User Profile

Collapse

Profile Sidebar

Collapse
madhoriya22
madhoriya22
Last Activity: Sep 14 '11, 09:26 AM
Joined: Jul 9 '07
Location: India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • madhoriya22
    started a topic Problem with SwingUtilities.invokeLater
    in Java

    Problem with SwingUtilities.invokeLater

    Hi,
    I have one thread, inside which I am calling a method.
    Code:
    new Thread(new Runnable() {
           public void run() {                    
                InvoiceVO returnedInvoiceVO = finalizeHandler.postAndPrint();
                :
                :
    }
    Inside that method I am calling another thread to show a message to user if some exception occurs.
    Code:
    protected InvoiceVO
    ...
    See more | Go to post

  • madhoriya22
    replied to How to reset JTable header
    in Java
    Hi,
    I tried your suggestions, it solved the problem but when I added the new data using addColumn() method. ... it added two new columns in the Jtable but I want to replace the existing columns with the new columns and I am not able to find the way to do it ... Please suggest ?

    thanks and regards,
    Amit.
    See more | Go to post

    Leave a comment:


  • madhoriya22
    started a topic How to reset JTable header
    in Java

    How to reset JTable header

    Hi,
    I am setting the JTable header using setModel() method. Before that I am setting method setAutoCreateCo lumnsFromModel( boolean) to false. After this I want to change the column header names for localization. But method setAutoCreateCo lumnsFromModel( boolean) is not allowing to change the column headers, If I change it to true then it changes the layout of the table.

    Please suggest any way to change the column header names without...
    See more | Go to post

  • madhoriya22
    replied to Swing application screen becoming gray
    in Java
    Hi,
    Here is the code snippet of my class.
    This is how I am enabling the button at one place
    Code:
    if (reviewMessagesController.getModel() != null) {
    				SwingUtilities.invokeLater(new Runnable() {
    					public void run() {
    						if (customerVO == null) {
    							InvoiceController.this.fldCustomer.requestFocus();
    						} else if (customerVO != null && customerVO.isAuthorizedBuyersOnly()
    ...
    See more | Go to post

    Leave a comment:


  • madhoriya22
    replied to Swing application screen becoming gray
    in Java
    Hi,
    Thanks ! But this problem is not occuring everytime. It occurs seldom only. My application is vast retail application. Can this be a memory issue or something else apart from coding problem ?...
    See more | Go to post

    Leave a comment:


  • madhoriya22
    started a topic Swing application screen becoming gray
    in Java

    Swing application screen becoming gray

    Hi,
    I am having this problem in my swing application. On the screen there is a button catalog, sometimes(not every time) when i press that button the next screen comes is gray and it don't display any data. What can be the possible reason for it ?
    See more | Go to post

  • madhoriya22
    started a topic Classpath issue :
    in Java

    Classpath issue :

    Hi,
    I am setting class path for the Axis webservices framework.This is how I have set the paths :
    Code:
    AXIS_HOME : C:\axis
    AXIS_LIB : %AXIS_HOME%\lib
    AXISCLASSPATH : %AXIS_LIB%\axis.jar;%AXIS_LIB%\axis-ant.jar;%AXIS_LIB%\axis-schema.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\wsdl4j-1.5.1.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;%AXIS_LIB%\activation.jar;
    ...
    See more | Go to post

  • madhoriya22
    replied to No Collection Found Exception in struts
    in Java
    Hi,
    Thanks for ur help. I have solved the problem. Actually I was doing some validations for my submit page. Which were not required for this operation and I had set
    Code:
     validate = true
    in struts-config file mappings. Which were not allowing the control to go to Action class....
    See more | Go to post

    Leave a comment:


  • madhoriya22
    started a topic No Collection Found Exception in struts
    in Java

    No Collection Found Exception in struts

    Hi,
    I am getting No Collection Found Exception .. while iterating through ArrayList in jsp page. What am I doing is :
    I am clicking a link
    Code:
    <html:link href="./viewAll.do">2. View All Information</a></html:link>
    and the request is suppose to go to the corresponding Action class. But control is not going to action class. I have checked all the mappings. Here is the mapping :
    Code:
     <action
    ...
    See more | Go to post

  • Hi,
    Thanks ... Its done now....
    See more | Go to post

    Leave a comment:


  • Exception creating bean of class hello.HelloForm: {1}

    Hi,
    I am getting this exception while deploying my struts application. How can I solve this problem. Here is the stack trace of the exception :

    org.apache.jasp er.JasperExcept ion: Exception in JSP: /index.jsp:14

    11: <html:image src="duke.wavin g.gif"></html:image>
    12: <h3>Hello, My name is Duke. What is your's ?</h3>
    13:
    14: <html:form...
    See more | Go to post

  • madhoriya22
    replied to trying to update an Access Database
    in Java
    Hi,
    Try to print you query ... and see what values of beta and company are replacing in your query....
    See more | Go to post

    Leave a comment:


  • madhoriya22
    replied to what is serialVersionID in java ???
    in Java
    Hi,
    Have a look at this
    http://www.thescripts.com/forum/thread703298.html...
    See more | Go to post

    Leave a comment:


  • madhoriya22
    replied to Displaying db retrieved values in JSP
    in Java
    Hi,
    Object here could be ur collection object, it could be string .. etc. U should store those(which u hav stored in separate variables) values in Collection. Then it will be easy for you to pass those values to jsp. Have tried something ?...
    See more | Go to post

    Leave a comment:


  • madhoriya22
    replied to Displaying db retrieved values in JSP
    in Java
    Hi,
    You can use any Collection( such as Vector or ArrayList) to store the values retreived from database. Then use
    Code:
     
    request.setAttribute(String attributeName, Object object)
    to forward those values to to ur jsp page....
    See more | Go to post

    Leave a comment:


  • madhoriya22
    replied to Java Matrix
    in Java
    Hi,
    Check your code ... Error is in this if condition
    Code:
    if (this.getnumOfRows()==B.getnumOfRows()){//[b]luk here[/b]
    				&&(this.getnumOfCols()==B.getnumOfCols()){
    ...
    See more | Go to post

    Leave a comment:


  • madhoriya22
    replied to Stuck with Switch
    in Java
    Hi,
    Can tell us what are you trying to do with ur program ? And how come during compilation it is asking for input?
    Always use code tags instead of making the text bold....
    See more | Go to post

    Leave a comment:


  • madhoriya22
    replied to Need Help W/ Writing a Program
    in Java
    Hi,
    Can u explain me what is this ..
    Code:
    Taxable income = 0.0, Tax payable = 0.0;
    If these are variables u r declaring .. then this way of declaring variables is completely wrong. You can't provide spaces while declaring variables. Even you hav not provided the type of variables....
    See more | Go to post

    Leave a comment:


  • madhoriya22
    replied to Need Arraylist Help
    in Java
    Hi,
    What errors you are getting? Please specify them....
    See more | Go to post

    Leave a comment:


  • Hi,
    Plz dont double post ur question....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...