See More

Êþº¾ 4g chatLogGUI java/lang/Object frmChatlogFrame Ljavax/swing/JFrame; frmChatlog Ljavax/swing/JPanel; txtChat Ljavax/swing/JTextArea; txtIncident txtBanned btnGenerate Ljavax/swing/JButton; main ([Ljava/lang/String;)V Code chatLogGUI$1 ()V java/awt/EventQueue invokeLater (Ljava/lang/Runnable;)V LineNumberTable LocalVariableTable args [Ljava/lang/String; $ % initialize this LchatLogGUI; ) javax/swing/JFrame ( , . javax/swing/JPanel - 1 3 Chat Log ( 5 6 7 setTitle (Ljava/lang/String;)V ( 9 : ; setBounds (IIII)V - 9 > javax/swing/JLabel @ !WELCOME TO THE CHATLOG CENSORSHIP = B 7 = 9 E java/awt/Font G Tahoma D I J (Ljava/lang/String;II)V = L M N setFont (Ljava/awt/Font;)V P R Q javax/swing/Box S T createHorizontalStrut (I)Ljava/awt/Component; V 9 W java/awt/Component P Y Z T createVerticalStrut \ BANNED USERS: ^ javax/swing/JButton ` EXIT ] B c chatLogGUI$2 b e f (LchatLogGUI;)V ] h i j addActionListener "(Ljava/awt/event/ActionListener;)V ] 9 - m n o setLayout (Ljava/awt/LayoutManager;)V - q r s add *(Ljava/awt/Component;)Ljava/awt/Component; u GENERATE LOGS: w INCIDENTS: y javax/swing/JTextArea x | ~ €  javax/swing/BorderFactory  ‚ createEmptyBorder !(IIII)Ljavax/swing/border/Border; x „ … † setBorder (Ljavax/swing/border/Border;)V x 9 ‰ javax/swing/JScrollPane ˆ ‹ Œ (Ljava/awt/Component;)V ˆ 9 ˆ   ‘ setVisible (Z)V “ • — GENERATE ™ › chatLogGUI$3 š e ž RESET   chatLogGUI$4 Ÿ e ( q (  ( ¥ ¦ § setDefaultCloseOperation (I)V lblWelcomeToThe Ljavax/swing/JLabel; horizontalStrut Ljava/awt/Component; verticalStrut lblUserCensoredChat btnExit horizontalStrut_1 lblNewLabel lblNewLabelIncident chatPane Ljavax/swing/JScrollPane; bannedPane incidentPane btnReset pane chatLog -([LUser;Ljava/util/Random;Ljava/util/Stack;)V Signature A([LUser;Ljava/util/Random;Ljava/util/Stack;)V ½ ¿ Á À User  chatStart Ä Æ Å java/util/Random Ç È nextInt (I)I ¿ Ê Ë generateMessage ¿ Í Î check ¿ Ð Ñ separate ¿ Ó Ô Õ censor (Ljava/util/Stack;)V × Ù Ø java/lang/System Ú Û out Ljava/io/PrintStream; Ý java/lang/StringBuilder ¿ ß à á nameCheck ()Ljava/lang/String; ã å ä java/lang/String æ ç valueOf &(Ljava/lang/Object;)Ljava/lang/String; Ü B ê : Ü ì í î append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ¿ ð ñ á censoredChat Ü ó ô á toString ö ø ÷ java/io/PrintStream ù 7 println û ¿ ý þ clear x 7 setText Users [LUser; rand Ljava/util/Random; incidents Ljava/util/Stack; result Ljava/lang/String; i I u LocalVariableTypeTable %Ljava/util/Stack; StackMapTable displayIncidents %(Ljava/util/Stack;Ljava/util/Stack;)V M(Ljava/util/Stack;Ljava/util/Stack;)V java/util/Stack pop ()Ljava/lang/Object; push &(Ljava/lang/Object;)Ljava/lang/Object; isEmpty ()Z" This is the result: incidentsOrder displayStatus ([LUser;)V' ---------------------------) %-9s%-10s%-7s À, Status. Offenses ö012 printf <(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream; ö4 ù ¿67 á banCheck ¿9:; counterCheck ()I =?> java/lang/Integer æ@ (I)Ljava/lang/Integer;B If a user reaches 3D offenses. They areF banned. One offense isH removed at the start ofJ each chat.L java/util/Formatter K O --------------------------- Ü R %-9s%-10s%-7s KTUV format <(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter; ÜX íY -(Ljava/lang/Object;)Ljava/lang/StringBuilder;[ œ--------------------------- If a user reaches 3 offenses. They are banned. One offense is removed at the start of each chat. ---------------------------- Ljava/util/Formatter; access$0 ()Ljavax/swing/JPanel; access$1 ()Ljavax/swing/JTextArea; access$2 access$3 SourceFile chatLogGUI.java InnerClasses ! 9 » Y· ¸ ± ) 4 ! ; *· "*· #± = > ? &