[IMG]http://vedium.net/java.jpg[/IMG]

I have an array in a.java, den b.java is suppose to collect data and put inside the array in a.java. den I need c.java to read from the array to see wad b.java has entered.

If i use "a ent = new a;" I would get a blank array again...so how do i read from c.java to see what b.java has put in a.java's array?

Thanks in advance

Member Avatar for iamthwee

[IMG]http://vedium.net/java.jpg[/IMG]

I have an array in a.java, den b.java is suppose to collect data and put inside the array in a.java. den I need c.java to read from the array to see wad b.java has entered.

If i use "a ent = new a;" I would get a blank array again...so how do i read from c.java to see what b.java has put in a.java's array?

Thanks in advance

Why on earth wud u want to do all that 4? Do it all within one class and create methods if needs b.

Why on earth wud u want to do all that 4? Do it all within one class and create methods if needs b.

each file itself is a JInternalFrame....

a = b? That's the only way I know of sharing references.

What about using events? There is more code, but it would be effective. Especially in a gui application.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.