import javax.swing.*; import java.awt.*; public class AboutPopup extends JFrame { public AboutPopup() { super("About"); String message = "\n"; message+="This image of Earth’s city lights was created with data "; message+="from the Defense Meteorological Satellite Program "; message+="(DMSP) Operational Linescan System (OLS). "; message+="Originally designed to view clouds by moonlight, "; message+="the OLS is also used to map the locations of permanent "; message+="lights on the Earth’s surface.\n\n"; message+="The image has been modified by Ashley Mills to only include "; message+="the UK, the original image and further description can be "; message+="found at:\n\n"; message+="http://visibleearth.nasa.gov/cgi-bin/viewrecord?5826\n\n"; message+="This is also where the description was taken from."; setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); setSize(new Dimension(315,294)); JTextPane messagePane = new JTextPane(); messagePane.setBackground(Color.BLACK); messagePane.setForeground(Color.GRAY); messagePane.setEditable(false); messagePane.setText(message); getContentPane().add(messagePane); setResizable(false); setVisible(true); } }