You need to add "jf.add(jl)" or call "jf.getContentPane().add(jl)" (these two actually do the same). However, the call to setBounds will still be ignored. That's because the direct parent of L, jl, still has a LayoutManager that will reposition L.
In the above codings, how can i use dispose() method? I want that, if the user is AUTHORIZED, a new window named 'menuoptions' opens.. and previous window("login") is removed automatically.. i have removed the dispose method with comment in the coding provided above
In the above codings, how can i use dispose() method? I want that, if the user is AUTHORIZED, a new window named 'menuoptions' opens.. and previous window("login") is removed automatically.. i have removed the dispose method with comment in the coding provided above