how do i code this java program?

using java dialog boxes, I wish to design a frame whose layout mimics the Firefox print dialog. None of the components actually have to do anything. Ijust want to use it as an exercise in laying out components.

Comments

  • You will have to use JDialog instead of JOptionPane.showXxxxDialog(). IIWY, I would first do this in a JFrame. JFrame is a BorderLayout that contains a JPanel at BorderLayout.SOUTH with two JButtons. the JButtons reside on their own JPanel that you setBoxLayout(). In the center of JFrame's Borderlayout is a JTabbedPane. Each tab in the JTabbedPane has its own setLayout to do the widgets.

    Once you get that far, it is not that hard to make the JFrame a JDialog.

    good luck

Sign In or Register to comment.