aspose file tools*
The moose likes Java in General and the fly likes program sturcture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

program sturcture

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
hello world,
I am programming a jtabbedpane. i am thinking to have sperate classes for every tab.
public class frame display
{
public static void main(String arg[])
{
JFrame obj = new app(); // do the necessary things
}
}
class app extends JFrame
{
// add a JTabbedPane to the contentpane.
// create objects of each tab class
// add them to the JTabbedPane
}
class billingJPane extends JPanel
{
}
class searchJPane extends JPanel
{
}

what i want to know is is this a good structure. if not do some suggetions.
thanks
another question.. can i access a variable of searchJPane class for this syntax.
obj.variablename
thanks


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Multi-post. Please respond in the Swing forum.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Please respond here.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: program sturcture