You probably don't want to state this in your posts. Even if it is urgent to you, realize that it is not urgent to us. Many here take offense to this as it implies to them that a) the poster thinks that his post is more important than everyone else's, and b) that the poster wants to put pressure on the volunteers who come here to help on their own free time. Just a friendly word of advice.
I have a deadline to meet and urgent this Saturday
Likely this is a Swing Java issue and probably has little to do with NetBeans unless you are talking about NetBeans-generated code.
I need your help with connectors
How to call a J-frame from a main frame in java when a button is clicked in Netbeans
Are "frames" JFrames?
I have two frames (A) and [b]
You will have to add an ActionListener to the JButton, and in this ActionListener create a FrameB object, call its constructor, call pack(); on this object (if not done in the constructor), and call setVisible(true) on this object. For more details, see the Sun Swing tutorials.
Frame (A) is the main and the other [b] is a sub-frame
in the main frame (A) theres a button to click it should open the sub-frame (frame [b] what should i do to achieve this in NetBeans ?
Check out the Sun tutorials on Menus.
and the Second problem encountered is how to create a Menu-Bar in NetBean i Know how to use the panel but where does the coding fit?