QuestionQuestion

The idea will be do make a java window having 4 to 6 buttons, each containing the name of a well-known cartographer. Three of the buttons should have Mercator, Albers, and Lambert. When a user clicks on a button a message window should appear with some information about the cartographer, e.g. two projections for which he is well known.

Pictures of famous cartographers seem to be available on the web, so some of your popups should show a picture. Your text might include a website where more information can be obtained about a given cartographer and his projections.

If we wanted a plethora of info, we would use a JDialog window, so do not get carried away.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

public class Optioneg2 extends JFrame {

    static JPanel mypanel = new JPanel();
    static JButton button1 = new JButton("warning");
    ActionListener lis;

    // array of button
    static JButton[] buttons = new JButton[6];
    // array of button names
    static String[] buttonNames = {
       "Mercator", "Albers", "Lambert",
       "Blaeu", "Muhammad", "Ortelius"
    };

    // array of path tot the image files
    static String[] fileNames = {
       "Mercator.jpg", "Albers.jpg", "Lambert.jpg",
       "Blaeu.jpg", "Muhammad.jpg", "Ortelius.jpg"
    };

    // array of full name of cartographers
    static String[] cartographerNames = {
       "Gerardus Mercator", "Louis Albert Guislain Bacler d'Albe",
       "Johann Heinrich Lambert", "Willem Blaeu",
       "Muhammad al-Idrisi", "Abraham Ortelius"...

By purchasing this solution you'll be able to access the following files:
Solution.zip.

$15.00
for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Computer Science - Other Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats