Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create List label Button
- private void createListLabelButton(int mode) {
- if (mode == 0) {
- String s[] = { "C", "CE", "←", "(", ")", "7", "8", "9", "/", "√",
- "4", "5", "6", "*", "x²", "1", "2", "3", "–", "*10ⁿ", "0",
- "•", "Ans", "+", "=" };
- lbButton = s;
- String s1[] = { "", "", "", "(", ")", "7", "8", "9", "/", "√", "4",
- "5", "6", "*", "²", "1", "2", "3", "-", "*10^", "0", ".",
- "Ans", "+", "" };
- mathElement = s1;
- return;
- }
- if (mode == 1) {
- String s[] = { "C", "CE", "←", "(", ")", "!", "a*b", "log", "7",
- "8", "9", "/", "√", "ⁿ√", "nCr", "nPr", "4", "5", "6", "*",
- "x²", "xⁿ", "sin", "arsin", "1", "2", "3", "–", "*10ⁿ",
- "π", "cos", "arcos", "0", "•", "Ans", "+", "=", "e", "tan",
- "artan" };
- lbButton = s;
- String s1[] = { "", "", "", "(", ")", "!", "", "log ", "7", "8",
- "9", "/", "√", "ⁿ√", "ℂ", "ℙ", "4", "5", "6", "*", "²",
- "^", "sin ", "arcsin ", "1", "2", "3", "-", "*10^", "π",
- "cos ", "arccos ", "0", ".", "Ans", "+", "", "e", "tan ",
- "arctan " };
- mathElement = s1;
- return;
- }
- if (mode == 2) {
- String s[] = { "C", "CE", "←", "(", ")", "!", "a*b", "Mod", "7",
- "8", "9", "/", "√", "<<", ">>", "And", "4", "5", "6", "*",
- "x²", "A", "B", "Or", "1", "2", "3", "−", "*10ⁿ", "C", "D",
- "Xor", "0", "•", "Ans", "+", "=", "E", "F", "Not" };
- lbButton = s;
- String s1[] = { "", "", "", "(", ")", "!", "", "Mod", "7", "8",
- "9", "/", "√", "≪", "≫", "∧", "4", "5", "6", "*", "²", "A",
- "B", "∨", "1", "2", "3", "-", "*10^", "C", "D", "⊻", "0",
- ".", "Ans", "+", "", "E", "F", "¬" };
- mathElement = s1;
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement