Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi...

i am new to java...
now i need to design 1 frame with 2 vertical frames,
in the first frame i should put 1 label followed by drop down list..next again a label with text box
where user can enter text.
in the 2nd frame i should import files from a folder and select...there should be one start button also.
the moment i click on the button selected files should be copied into another folder which can be located in the same or different drivers.
plz guide me....
Posted

1 solution

Well i can't give you a full advice on how to work with your files, but as for the 2 vertical frame, i would rather use one frame. I would create a panel in it. To this panel i would give a GridLayout(1,2) (1 row, 2 columns ) and then add two more panels ( internal panels if your prefer ).

Something like this:

Java
public yourClass extends JFrame{


    JFrame myFrame=new JFrame();
    JPanel panelInFrame=new JPanel(new GridLayout(1,2));
    JPanel internalLeftPanel=new JPanel();
    Jpanel internalRightPanel=new JPanel();

    public void initializeWindow(){

            /**
             * initialize your window( setSize, setVisible etc.)
             * then...
            */

    window.add(panelInFrame);

    addInternalPanels();

        }

    void addInternalPanels(){

       panelInFrame.add(internalLeftPane);
       panelInFrame.add(internalRightPane);

       //here you could manipulate your labels, buttons etc.

    }


    public static void main(String[] args){

       yourClass program=new yourClass();
       program.initializeWindow();

    }


 }



I hope you understand.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900