<commit_before>package org.javafling.pokerenlighter.gui;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import org.javafling.pokerenlighter.main.PokerEnlighter;

/**
 *
 * @author <NAME>
 */
public class AboutDialog extends JDialog
{
	public AboutDialog (JFrame parent)
	{
		super (parent, "About", true);
		
		setResizable (false);
		setDefaultCloseOperation (DISPOSE_ON_CLOSE);
		
		JPanel content = new JPanel (new BorderLayout ());

		content.add (createTitlePanel (), BorderLayout.NORTH);
		
		JTabbedPane tabPane = new JTabbedPane ();
		tabPane.setTabLayoutPolicy (JTabbedPane.WRAP_TAB_LAYOUT);
		
		tabPane.insertTab ("Information", null, createInformationPanel (), "General Information", 0);
		tabPane.insertTab ("Thanks to", null, createThanksPanel (), "List of thank you notes", 1);
		tabPane.insertTab ("Copyright", null, createCopyrightPanel (), "Copyright Information", 2);
		
		content.add (tabPane, BorderLayout.CENTER);

		content.add (createButtonPanel (), BorderLayout.SOUTH);

		setContentPane (content);
		pack ();
	}
	
	private JPanel createTitlePanel ()
	{
		JPanel panel = new JPanel (new BorderLayout ());
		
		JPanel titlePanel = new JPanel (new FlowLayout (FlowLayout.CENTER));
		
		JLabel icon = new JLabel (new ImageIcon (getClass ().getResource ("images/ace_spades_icon.jpg")));
		titlePanel.add (icon);
		
		JLabel title = new JLabel ("Poker Enlighter");
		title.setFont (new Font ("Verdana", Font.BOLD, 20));
		titlePanel.add (title);
		
		JPanel webPanel = new JPanel (new FlowLayout (FlowLayout.LEFT));
		webPanel.add (new JLabel ("Visit Website:"));
		LinkLabel webpage = new LinkLabel ("http://pokerenlighter.javafling.org/",
											"http://pokerenlighter.javafling.org/");
		webPanel.add (webpage);
		
		panel.add (titlePanel, BorderLayout.CENTER);
		panel.add (webPanel, BorderLayout.SOUTH);

		return panel;
	}
	
	private JPanel createInformationPanel ()
	{
		JPanel panel = new JPanel (new GridLayout (4, 2));
		
		panel.add (new JLabel ("Version:"));
		
		JTextField versionField = new JTextField (PokerEnlighter.FULL_VERSION);
		versionField.setEditable (false);
		panel.add (versionField);
		
		panel.add (new JLabel ("Minimum JVM version:"));
		
		JTextField minimumField = new JTextField ("Java " +
												PokerEnlighter.MAJOR_VERSION +
												" Update " +
												PokerEnlighter.MINOR_VERSION);
		minimumField.setEditable (false);
		panel.add (minimumField);
		
		panel.add (new JLabel ("Compiled with: "));
		
		JTextField compilerField = new JTextField (PokerEnlighter.COMPILED_WITH);
		compilerField.setEditable (false);
		panel.add (compilerField);
		
		panel.add (new JLabel ("Build Date: "));
		
		JTextField buildDateField = new JTextField (PokerEnlighter.BUILD_DATE);
		buildDateField.setEditable (false);
		panel.add (buildDateField);
		
		return panel;
	}
	
	private JPanel createThanksPanel ()<commit_msg>A small wording change in the About dialog<commit_after>package org.javafling.pokerenlighter.gui;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import org.javafling.pokerenlighter.main.PokerEnlighter;

/**
 *
 * @author <NAME>
 */
public class AboutDialog extends JDialog
{
	public AboutDialog (JFrame parent)
	{
		super (parent, "About", true);
		
		setResizable (false);
		setDefaultCloseOperation (DISPOSE_ON_CLOSE);
		
		JPanel content = new JPanel (new BorderLayout ());

		content.add (createTitlePanel (), BorderLayout.NORTH);
		
		JTabbedPane tabPane = new JTabbedPane ();
		tabPane.setTabLayoutPolicy (JTabbedPane.WRAP_TAB_LAYOUT);
		
		tabPane.insertTab ("Information", null, createInformationPanel (), "General Information", 0);
		tabPane.insertTab ("Thanks to", null, createThanksPanel (), "List of thank you notes", 1);
		tabPane.insertTab ("Copyright", null, createCopyrightPanel (), "Copyright Information", 2);
		
		content.add (tabPane, BorderLayout.CENTER);

		content.add (createButtonPanel (), BorderLayout.SOUTH);

		setContentPane (content);
		pack ();
	}
	
	private JPanel createTitlePanel ()
	{
		JPanel panel = new JPanel (new BorderLayout ());
		
		JPanel titlePanel = new JPanel (new FlowLayout (FlowLayout.CENTER));
		
		JLabel icon = new JLabel (new ImageIcon (getClass ().getResource ("images/ace_spades_icon.jpg")));
		titlePanel.add (icon);
		
		JLabel title = new JLabel ("Poker Enlighter");
		title.setFont (new Font ("Verdana", Font.BOLD, 20));
		titlePanel.add (title);
		
		JPanel webPanel = new JPanel (new FlowLayout (FlowLayout.LEFT));
		webPanel.add (new JLabel ("Visit Website:"));
		LinkLabel webpage = new LinkLabel ("http://pokerenlighter.javafling.org/",
											"http://pokerenlighter.javafling.org/");
		webPanel.add (webpage);
		
		panel.add (titlePanel, BorderLayout.CENTER);
		panel.add (webPanel, BorderLayout.SOUTH);

		return panel;
	}
	
	private JPanel createInformationPanel ()
	{
		JPanel panel = new JPanel (new GridLayout (4, 2));
		
		panel.add (new JLabel ("Version:"));
		
		JTextField versionField = new JTextField (PokerEnlighter.FULL_VERSION);
		versionField.setEditable (false);
		panel.add (versionField);
		
		panel.add (new JLabel ("Minimum JVM version:"));
		
		JTextField minimumField = new JTextField ("Java " +
												PokerEnlighter.MAJOR_VERSION +
												" Update " +
												PokerEnlighter.MINOR_VERSION);
		minimumField.setEditable (false);
		panel.add (minimumField);
		
		panel.add (new JLabel ("Developed using: "));
		
		JTextField compilerField = new JTextField (PokerEnlighter.COMPILED_WITH);
		compilerField.setEditable (false);
		panel.add (compilerField);
		
		panel.add (new JLabel ("Build Date: "));
		
		JTextField buildDateField = new JTextField (PokerEnlighter.BUILD_DATE);
		buildDateField.setEditable (false);
		panel.add (buildDateField);
		
		return panel;
	}
	
	private JPanel createThanksPanel ()
{'fraction_non_alphanumeric': 0.12219409282700422, 'fraction_numerical': 0.002362869198312236, 'mean_word_length': 4.25354609929078, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1786601', 'n_tokens_mistral': 2170, 'n_tokens_neox': 1817, 'n_words': 455}