Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

program sturcture

 
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Multi-post. Please respond in the Swing forum.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please respond here.
    Bookmark Topic Watch Topic
  • New Topic