/* File :HelpPanel.java
* Project: Math Tools in Java
* Purpose: Show how to use Normalized T score calculation
* Author : Wachara R.
* First Released: Fri 23 May 2008
* Last Updated : Sun 25 Oct 2009
*/
package tscoreApp;
import javax.swing.*;
import java.awt.*;
public class HelpPanel extends JPanel {
JTabbedPane userGuidePane = new JTabbedPane(JTabbedPane.BOTTOM);
UserGuidePanel tab1;
UserGuidePanel tab2;
UserGuidePanel tab3;
String str1 =
"\n There are 2 ways to input your data: \n\n 1. Typing your scores in text area \n\t"+
"- Both Integer or real numbers are OK.\n\t" +
"- Separate each score with space.\n\t- Don't use Comma or any alphabets.\n\t"+
"- You can type scores in a line as long as you want\n\t"+
" or press for a new line. \n\t- A star ( * ) at the beginning of the line means\n\t "+
" this line is ignored (It's a comment). \n\t"+
"- You can type scores in any editor (eg. NotePad)\n\t" +
" then copy(Ctr+c) and paste (Ctr+ v) into this text area.\n\n" +
" 2. Reading data from textfile ( suitable for hundreds of data)\n\t"+
"- Create your data with any editor (NotePad, Editplus etc.)\n\t"+
" following the rule as mention in 1.\n\t"+
"- Save your data as textfile. \n\t"+
"- Click 'Read file' button for opening your textfile\n\t"+
" your data will be read into text area.\n\n"+
"WARNING:\n"+
"\t**The maximum number of data is 5000.** ";
String str2 =
"\n\t- When data appear in text area, clicking on 'Calculate' button\n"+
" will launch the program crunching the numbers. Sorted scores, frequency\n"+
" T score and grade being displayed in the table in no time\n\n"+
"\t- Selecting data in table (by draging mouse in table area), \n"+
" You can copy (Ctr+c) and paste (Ctr+v) them into word processing \n"+
" or spread sheet application.\n\n"+
"\t- To change the range of grade assesment, selecting any\n "+
"specific range as shown in combo box . The new grades will be \n" +
"calculated automatically.";
String str3 =
"\n\n\t- Just clicking on 'Print result' button, the output result will be\n"+
"sent to the printer\n\n"+
" WARNING ..\n\n"+
"\tThe paper size setting is limited to A4 ( 11\" x 8.5\" ) \n";
String Tstr1 = "\n à¸à¸¹à¹à¹à¸à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¸à¹à¸à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸à¹ 2 วิà¸à¸µ: \n\n 1. à¸à¸´à¸¡à¸à¹à¸à¸°à¹à¸à¸à¸¥à¸à¹à¸à¹à¸à¸à¹à¸à¸ text area \n\t"+
"- à¸à¸°à¹à¸à¸à¸à¸°à¹à¸à¹à¸à¸à¸³à¸à¸§à¸à¹à¸à¹à¸¡à¸«à¸£à¸·à¸à¸à¸³à¸à¸§à¸à¸à¸µà¹à¸¡à¸µà¸à¸¨à¸à¸´à¸¢à¸¡à¸à¹à¹à¸à¹.\n\t" +
"- à¹à¸¢à¸à¸à¸°à¹à¸à¸à¹à¸à¹à¸¥à¸°à¸à¸°à¹à¸à¸à¸à¹à¸§à¸¢ 'à¸à¹à¸à¸à¸§à¹à¸²à¸'.\n\t- หà¹à¸²à¸¡à¹à¸à¹à¹à¸à¸£à¸·à¹à¸à¸à¸«à¸¡à¸²à¸¢à¸à¸¸à¸¥à¸ าภหรืภà¸à¸±à¸§à¸à¸±à¸à¸à¸£à¸°à¹à¸ à¹.\n\t"+
"- à¸à¸£à¸£à¸à¸±à¸à¸«à¸à¸¶à¹à¸ ๠à¸à¸°à¸à¸´à¸¡à¸à¹à¸à¸°à¹à¸à¸à¸à¸µà¹à¸à¹à¸²à¸à¹à¹à¸à¹à¸à¸²à¸¡à¹à¸à¹à¸à¸°à¸à¹à¸à¸à¸à¸²à¸£ \n\t"+
" à¸à¹à¸à¸à¸à¸²à¸£à¸à¸¶à¹à¸à¸à¸£à¸£à¸à¸±à¸à¹à¸«à¸¡à¹à¹à¸«à¹à¸à¸à¸à¸¸à¹à¸¡ 'enter'. \n\t- à¸à¹à¸à¸à¸à¸²à¸£à¹à¸à¸µà¸¢à¸ comment à¹à¸«à¹à¸ªà¹ * à¸à¸µà¹à¸«à¸à¹à¸²à¸à¸£à¸£à¸à¸±à¸à¸à¸±à¹à¸\n\t "+
" à¸à¸£à¸£à¸à¸±à¸à¸à¸±à¹à¸à¸à¸°à¹à¸¡à¹à¸à¸¹à¸à¸à¸³à¹à¸à¸à¸£à¸°à¸¡à¸§à¸¥à¸à¸¥. \n\t"+
"- à¹à¸£à¸²à¸à¸²à¸à¹à¸à¹à¹à¸à¸£à¹à¸à¸£à¸¡ editor à¹à¸à¹à¸ NotePad à¸à¸´à¸¡à¸à¹à¸à¸°à¹à¸à¸à¹à¸à¸£à¸µà¸¢à¸¡à¹à¸§à¹à¸à¹à¸à¸\n\t" +
" à¸à¸²à¸à¸à¸±à¹à¸ copy(Ctr+c) à¹à¸¥à¹à¸§ paste (Ctr+ v) มาà¹à¸ªà¹à¹à¸ text area.\n\n" +
" 2. à¸à¹à¸²à¸à¸à¹à¸²à¸à¸°à¹à¸à¸à¸à¸²à¸ text file (à¹à¸«à¸¡à¸²à¸°à¸ªà¸³à¸«à¸£à¸±à¸à¸à¸£à¸à¸µà¸à¸µà¹à¸¡à¸µà¸à¹à¸à¸¡à¸¹à¸¥à¹à¸à¹à¸à¸à¸³à¸à¸§à¸à¸¡à¸²à¸)\n\t"+
"- à¸à¸´à¸¡à¸à¹à¸à¸°à¹à¸à¸à¸¥à¸à¹à¸à¹à¸à¸£à¹à¸à¸£à¸¡ editor à¹à¸ ๠(NotePad, Editplus ฯลฯ)\n\t"+
" à¸à¸à¹à¸à¸à¸à¹à¸à¸²à¸£à¸à¸´à¸¡à¹à¸à¸°à¹à¸à¸à¹à¸«à¸¡à¸·à¸à¸à¸à¸±à¸à¸à¸µà¹à¸à¸¥à¹à¸²à¸§à¹à¸§à¹à¹à¸à¸à¹à¸ 1.\n\t"+
"- à¸à¸±à¸à¸à¸¶à¸à¸à¹à¸à¸¡à¸¹à¸¥ à¹à¸à¹à¸à¹à¸§à¹à¹à¸à¹à¸ text file. \n\t"+
"- à¸à¸¥à¸´à¸à¸à¸¸à¹à¸¡ 'Read file' à¹à¸à¸·à¹à¸à¸à¹à¸²à¸à¸à¸°à¹à¸à¸à¸à¸²à¸à¹à¸à¹à¸¡à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸±à¹à¸\n\t"+
" à¸à¸°à¹à¸à¸à¸à¸µà¹à¸à¸¹à¸à¹à¸à¹à¸à¹à¸§à¹à¹à¸à¹à¸à¹à¸¡à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸°à¸à¸¹à¸à¸à¸³à¸¡à¸²à¹à¸ªà¸à¸à¹à¸ text area.\n\n"+
"à¸à¸³à¹à¸à¸·à¸à¸:\n"+
"\t**à¸à¸³à¸à¸§à¸à¸à¹à¸à¸¡à¸¹à¸¥à¸«à¸£à¸·à¸à¸à¸°à¹à¸à¸à¸à¹à¸à¸à¹à¸¡à¹à¹à¸à¸´à¸ 5000 à¸à¹à¸²** ";
String Tstr2 = "\n\t- à¹à¸¡à¸·à¹à¸à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸¹à¸à¹à¸ªà¸à¸à¹à¸ text area , à¹à¸«à¹à¸à¸¥à¸´à¸à¸à¸µà¹à¸à¸¸à¹à¸¡'Calculate'\n"+
" à¹à¸à¸£à¹à¸à¸£à¸¡à¸à¸°à¸à¸³à¸à¸²à¸£à¸à¸£à¸°à¸¡à¸§à¸¥à¸à¸¥ à¹à¸à¸¢à¸à¸°à¹à¸£à¸µà¸¢à¸à¸¥à¸³à¸à¸±à¸à¸à¹à¸à¸¡à¸¹à¸¥ หาà¸à¸§à¸²à¸¡à¸à¸µà¹\n"+
" à¸à¸³à¸à¸§à¸ T Score à¹à¸¥à¸°à¸à¸³à¸«à¸à¸à¸£à¸°à¸à¸±à¸à¸à¸°à¹à¸à¸ à¹à¸ªà¸à¸à¹à¸«à¹à¹à¸«à¹à¸à¹à¸à¸à¸²à¸£à¸²à¸à¸à¸±à¹à¸§à¸à¸¶à¸à¹à¸\n\n"+
"\t- สามารà¸à¹à¸¥à¸·à¸à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸à¸à¸²à¸£à¸²à¸ (à¹à¸à¸¢à¸¥à¸²à¸à¹à¸¡à¸²à¸ªà¹à¸£à¸°à¸à¸²à¸¢à¹à¸à¸à¸£à¸´à¹à¸§à¸à¸à¸²à¸£à¸²à¸), \n"+
" à¸à¸²à¸à¸à¸±à¹à¸ copy (Ctr+c) à¹à¸¥à¸° paste (Ctr+v) à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸à¹à¸à¹à¹à¸à¹à¸à¸£à¹à¸à¸£à¸¡ word processing \n"+
" หรืà¸à¹à¸à¸£à¹à¸à¸£à¸¡à¸à¸²à¸£à¸²à¸à¸à¸³à¸à¸§à¸.\n\n"+
"\t- à¸à¹à¸à¸à¸à¸²à¸£à¹à¸à¸¥à¸µà¹à¸¢à¸à¸à¹à¸§à¸à¸à¸à¸à¸£à¸°à¸à¸±à¸à¸à¸°à¹à¸à¸, à¹à¸«à¹à¸à¸¥à¸´à¸à¹à¸¥à¸·à¸à¸à¸à¹à¸§à¸à¸£à¸°à¸à¸±à¸à¸à¸°à¹à¸à¸\n "+
"à¸à¸µà¹à¸à¹à¸à¸à¸à¸²à¸£à¸à¸µà¹ 'à¸à¸¥à¹à¸à¸à¸à¸±à¸§à¹à¸¥à¸·à¸à¸à¹à¸à¸£à¸' à¸à¹à¸²à¸à¸¥à¹à¸²à¸à¸à¸à¸ text area à¹à¸à¸£à¹à¸à¸£à¸¡à¸à¸°à¸à¸±à¸à¹à¸à¸£à¸ \n " + "à¹à¸«à¹à¹à¸«à¸¡à¹à¸à¸µà¸à¸à¸£à¸±à¹à¸à¹à¸à¸¢à¸à¸±à¸à¹à¸à¸¡à¸±à¸à¸´ ";
String Tstr3 = "\n\n\t- à¸à¹à¸à¸à¸à¸²à¸£à¸à¸´à¸¡à¸à¹à¸à¸¥à¸¥à¸±à¸à¸à¹à¹à¸«à¹à¸à¸¥à¸´à¸à¸à¸¸à¹à¸¡ 'Print result' à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸à¸à¸²à¸£à¸²à¸\n"+
"à¸à¸°à¸à¸¹à¸à¸ªà¹à¸à¹à¸à¸à¸´à¸¡à¸à¹à¸à¸µà¹à¹à¸à¸£à¸·à¹à¸à¸à¸à¸´à¸¡à¸à¹\n\n"+
" à¸à¸³à¹à¸à¸·à¸à¸ ..\n\n"+
"\t**à¹à¸à¹à¸à¸³à¸«à¸à¸à¸à¸£à¸°à¸à¸²à¸©à¹à¸à¹à¸à¸à¹à¸²à¸¡à¸²à¸à¸£à¸à¸²à¸à¹à¸§à¹à¸à¸µà¹à¸à¸à¸²à¸ A4 ( 11\" x 8.5\" )** \n";
public HelpPanel()
{
tab1=new UserGuidePanel(userGuidePane,str1, Tstr1);
tab2=new UserGuidePanel(userGuidePane,str2,Tstr2);
tab3=new UserGuidePanel(userGuidePane,str3,Tstr3);
setBorder(BorderFactory.createRaisedBevelBorder());
userGuidePane.setForeground(Color.black);
userGuidePane.addTab("Step1 Input Data. ", tab1);
userGuidePane.addTab("Step2 Calculating ", tab2);
userGuidePane.addTab("Step3 How to print? ", tab3);
this.add(userGuidePane);
}
}