×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Eyad Hrame
Added: Mar 29, 2021 12:02 PM
Views: 4093
Tags: no tags
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. /**
  8.  *
  9.  * @author User
  10.  */
  11. public class totalisraelfile {
  12.  
  13.     /**
  14.      * @param args the command line arguments
  15.      */
  16.     public static void main(String args[]) {
  17.         // TODO code application logic here
  18.        
  19.        
  20.        
  21.        
  22. <root>
  23.    
  24.    
  25.     /*
  26.  * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
  27.  * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  28.  *
  29.  *
  30.  *
  31.  *
  32.  *
  33.  *
  34.  *
  35.  *
  36.  *
  37.  *
  38.  *
  39.  *
  40.  *
  41.  *
  42.  *
  43.  *
  44.  *
  45.  *
  46.  *
  47.  *
  48.  */
  49.  
  50. package com.sun.tools.javac;
  51.  
  52. import java.io.PrintWriter;
  53.  
  54. /**
  55.  * A legacy programmatic interface for the Java Programming Language
  56.  * compiler, javac.
  57.  * See the <a href="{@docRoot}/jdk.compiler/module-summary.html">{@code jdk.compiler}</a>
  58.  * module for details on replacement APIs.
  59.  */
  60. public class Main {
  61.     /**
  62.      * Do not call.
  63.      */
  64.     @Deprecated(since="16", forRemoval=true)
  65.     public Main(){}
  66.  
  67.     /** Main entry point for the launcher.
  68.      *  Note: This method calls System.exit.
  69.      *  @param args command line arguments
  70.      *  @throws Exception only if an uncaught internal exception occurs;
  71.      *      just retained for historical compatibility
  72.      */
  73.     public static void main(String[] args) throws Exception {
  74.         System.exit(compile(args));
  75.     }
  76.  
  77.     /** Programmatic interface to the Java Programming Language
  78.      * compiler, javac.
  79.      *
  80.      * @param args The command line arguments that would normally be
  81.      * passed to the javac program as described in the man page.
  82.      * @return an integer equivalent to the exit value from invoking
  83.      * javac, see the man page for details.
  84.      */
  85.     public static int compile(String[] args) {
  86.         com.sun.tools.javac.main.Main compiler =
  87.             new com.sun.tools.javac.main.Main("javac");
  88.         return compiler.compile(args).exitCode;
  89.     }
  90.  
  91.  
  92.  
  93.     /** Programmatic interface to the Java Programming Language
  94.      * compiler, javac.
  95.      *
  96.      * @param args The command line arguments that would normally be
  97.      * passed to the javac program as described in the man page.
  98.      * @param out PrintWriter to which the compiler's diagnostic
  99.      * output is directed.
  100.      * @return an integer equivalent to the exit value from invoking
  101.      * javac, see the man page for details.
  102.      */
  103.     public static int compile(String[] args, PrintWriter out) {
  104.         com.sun.tools.javac.main.Main compiler =
  105.             new com.sun.tools.javac.main.Main("javac", out);
  106.         return compiler.compile(args).exitCode;
  107.     }
  108. }
  109.  
  110.    
  111.    
  112.    
  113.     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  114.     xmlns:tools="http://schemas.android.com/tools"
  115.     android:layout_width="match_parent"
  116.     android:layout_height="match_parent"
  117.     android:paddingBottom="@dimen/activity_vertical_margin"
  118.     android:paddingLeft="@dimen/activity_horizontal_margin"
  119.     android:paddingRight="@dimen/activity_horizontal_margin"
  120.     android:paddingTop="@dimen/activity_vertical_margin"
  121.     tools:context="com.javacodegeeks.android.loginapp.MainActivity" >
  122.  
  123.      <TextView
  124.           android:id="@+id/textView1"
  125.           android:layout_width="wrap_content"
  126.           android:layout_height="wrap_content"
  127.           android:layout_alignParentTop="true"
  128.           android:layout_centerHorizontal="true"
  129.           android:layout_marginTop="20dp"
  130.           android:text="Authentication Required"
  131.           android:textAppearance="?android:attr/textAppearanceLarge" />
  132.      
  133.       <TextView
  134.           android:id="@+id/textView2"
  135.           android:layout_width="wrap_content"
  136.           android:layout_height="wrap_content"
  137.           android:layout_alignParentLeft="true"
  138.           android:layout_below="@+id/textView1"
  139.           android:layout_marginTop="75dp"
  140.           android:layout_marginLeft="10dp"
  141.           android:text="Username:"
  142.           android:textAppearance="?android:attr/textAppearanceMedium" />
  143.        
  144.       <EditText
  145.           android:id="@+id/usernameET"
  146.           android:layout_width="wrap_content"
  147.           android:layout_height="wrap_content"
  148.           android:layout_alignBottom="@+id/textView2"
  149.           android:layout_marginLeft="35dp"
  150.           android:layout_toRightOf="@+id/textView2"
  151.           android:hint="supermode75" >
  152.           <requestFocus />
  153.       </EditText>
  154.        
  155.       <TextView
  156.           android:id="@+id/textView3"
  157.           android:layout_width="wrap_content"
  158.           android:layout_height="wrap_content"
  159.           android:layout_alignLeft="@+id/textView2"
  160.           android:layout_below="@+id/textView2"
  161.           android:layout_marginTop="40dp"
  162.           android:text="Password:"
  163.           android:textAppearance="?android:attr/textAppearanceMedium" />
  164.        
  165.       <EditText
  166.           android:id="@+id/passwordET"
  167.           android:layout_width="wrap_content"
  168.           android:layout_height="wrap_content"
  169.           android:layout_alignBottom="@+id/textView3"
  170.           android:layout_alignLeft="@+id/usernameET"
  171.           android:layout_alignRight="@+id/usernameET"
  172.           android:hint="testpass"
  173.           android:inputType="textPassword" />
  174.        
  175.        <TextView
  176.           android:id="@+id/attemptsLeftTV"
  177.           android:layout_width="wrap_content"
  178.           android:layout_height="wrap_content"
  179.           android:layout_alignLeft="@+id/textView3"
  180.           android:layout_below="@+id/textView3"
  181.           android:layout_marginLeft="30dp"
  182.           android:layout_marginTop="48dp"
  183.           android:text="Attempts Left:"
  184.           android:visibility="invisible"
  185.           android:textAppearance="?android:attr/textAppearanceMedium" />
  186.        
  187.        <Button
  188.           android:id="@+id/loginBtn"
  189.           android:layout_width="wrap_content"
  190.           android:layout_height="wrap_content"
  191.           android:layout_below="@+id/passwordET"
  192.           android:layout_centerHorizontal="true"
  193.           android:layout_marginTop="94dp"
  194.           android:onClick="authenticateLogin"
  195.           android:text="Login" />
  196.        
  197.        <TextView
  198.           android:id="@+id/numberOfRemainingLoginAttemptsTV"
  199.           android:layout_width="wrap_content"
  200.           android:layout_height="wrap_content"
  201.           android:layout_alignRight="@+id/textView1"
  202.           android:layout_alignTop="@+id/attemptsLeftTV"
  203.           android:visibility="invisible" />
  204.        
  205.        <TextView
  206.           android:id="@+id/loginLockedTV"
  207.           android:layout_width="wrap_content"
  208.           android:layout_height="wrap_content"
  209.           android:layout_below="@+id/loginBtn"
  210.           android:layout_marginTop="35dp"
  211.           android:layout_centerHorizontal="true"
  212.           android:textAppearance="?android:attr/textAppearanceMedium"
  213.           android:visibility="invisible" />
  214.  
  215. </RelativeLayout>
  216.    
  217.    
  218.    
  219.    
  220.    
  221.    
  222.    
  223.    
  224.    
  225.    
  226.    
  227.    
  228.     <?xml version="1.0" encoding="utf-8"?>
  229. <menu xmlns:android="http://schemas.android.com/apk/res/android">
  230.     <item android:id="@[+][package:]id/resource_name"
  231.           android:title="string"
  232.           android:titleCondensed="string"
  233.           android:icon="@[package:]drawable/drawable_resource_name"
  234.           android:onClick="method name"
  235.           android:showAsAction=["ifRoom" | "never" | "withText" | "always" | "collapseActionView"]
  236.           android:actionLayout="@[package:]layout/layout_resource_name"
  237.           android:actionViewClass="class name"
  238.           android:actionProviderClass="class name"
  239.           android:alphabeticShortcut="string"
  240.           android:alphabeticModifiers=["META" | "CTRL" | "ALT" | "SHIFT" | "SYM" | "FUNCTION"]
  241.           android:numericShortcut="string"
  242.           android:numericModifiers=["META" | "CTRL" | "ALT" | "SHIFT" | "SYM" | "FUNCTION"]
  243.           android:checkable=["true" | "false"]
  244.           android:visible=["true" | "false"]
  245.           android:enabled=["true" | "false"]
  246.           android:menuCategory=["container" | "system" | "secondary" | "alternative"]
  247.           android:orderInCategory="integer" />
  248.     <group android:id="@[+][package:]id/resource name"
  249.            android:checkableBehavior=["none" | "all" | "single"]
  250.            android:visible=["true" | "false"]
  251.            android:enabled=["true" | "false"]
  252.            android:menuCategory=["container" | "system" | "secondary" | "alternative"]
  253.            android:orderInCategory="integer" >
  254.         <item />
  255.     </group>
  256.     <item >
  257.         <menu>
  258.           <item />
  259.         </menu>
  260.     </item>
  261. </menu>
  262.    
  263. </root>
  264.  
  265.     }
  266. }
  267.