How to use functions and variables from different java class?
<p>I have to design a PDF document.
Initially my job was to design only 1st page(named "Form.java")
So I created methods with parameters defining the font, no. of cols &amp; rows,...</p>

<pre><code>Function A(String staticdata, Font font, int colspan, int rowspan, int border)
</code></pre>

<p>It worked fine.. 
Now I have to design 2 additional pages using similar format and same methods.</p>

<p>So I created new java class(separate .java file) in which I put all the methods &amp; declared all the variables..</p>

<p>Then I imported that .java file to the Form.java. But it gives me error that it cannot find function A(String staticdata, Font font, int colspan, int rowspan, int border)...
It also gives error to all variables in the methods...</p>

<p>How can i solve this.. I donot want to write the same methods for every page in the same project...
All files are in the same package and all classes are public...</p>
