Ask Experts Questions for FREE Help !
Ask
    JavaWannabee's Avatar
    JavaWannabee Posts: 1, Reputation: 1
    New Member
     
    #1

    May 7, 2015, 06:37 AM
    The following is my code. I am trying to utilise the borderlayout but its not working
    package force;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;

    public class Appd extends App {

    private JPanel panel;

    protected void createGUI(){
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    Container window=getContentPane();
    window.setLayout(new BorderLayout());
    window.add(panel=new JPanel(),BorderLayout.CENTER);
    panel.setPreferredSize(new Dimension(300,400));
    panel.add(new Button("Okay"));
    }
    }
    CravenMorhead's Avatar
    CravenMorhead Posts: 4,532, Reputation: 1065
    Adult Sexuality Expert
     
    #2

    May 7, 2015, 07:01 AM
    Hi,

    I am a talented programmer but my languages are limited to c/c++/perl/SQL. What I did learn in university wasn't specific programming languages but how to learn different languages. I learned how to learn. One of the key skills is figuring out how to find out information on different classes and tenchniques. Google is your friend. [THIS] page should be helpful.

    Good luck!

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Non working radio button for code input [ 2 Answers ]

I have a 2003 honda civic... my battery went dead from kids leaving the inside lights on all night.. im the original owner and I do have the code but the # 1 button doesn't work to put the code back in... does anyone know how to fix this problem... I miss my music.

Need Perl Code for working in directory [ 1 Answers ]

Hi All, I need a perl script for the following : +++++++++++++++++++++++++++++++++++++++++++++ Write a script which takes a directory name and provides a series of statistics about that directory. It should say: •How many files it contains •How many of the files are readable and writable...

How to utilise your potential at the bank as a staff. [ 1 Answers ]

What potentials can you exhibit as a bank staff to help the growth of the bank?


View more questions Search