@@ -111,36 +111,36 @@ public ContactLog(String studentName, LocalDate date, JLineGraph graph) {
111111 JScrollPane scroll = new JScrollPane (view );
112112 scroll .getAccessibleContext ().setAccessibleName ("Contact Log data entry scroll pane" );
113113 GridBagConstraints gbc = new GridBagConstraints (); gbc .insets =new Insets (2 ,2 ,2 ,2 ); gbc .fill = GridBagConstraints .HORIZONTAL ; gbc .anchor = GridBagConstraints .NORTHWEST ;
114- JLabel title = new JLabel ("Contact Log" ); title .setFont (title .getFont ().deriveFont (Font .BOLD ,16 )); title .setHorizontalAlignment (JLabel .LEFT ); gbc .gridx =0 ; gbc .gridy =0 ; gbc .gridwidth =2 ; p .add (title , gbc );
114+ JLabel title = new JLabel ("Contact Log" ); title .setFont (title .getFont ().deriveFont (Font .BOLD ,28f )); title .setHorizontalAlignment (JLabel .LEFT ); gbc .gridx =0 ; gbc .gridy =0 ; gbc .gridwidth =2 ; p .add (title , gbc );
115115
116116 // Structured contact fields (placed above notes)
117117 int row = 1 ;
118118 gbc .gridwidth = 1 ;
119119 int globalLabel = com .studentgui .uicomp .PhaseScoreField .getGlobalLabelWidth ();
120- gbc .gridx = 0 ; gbc .gridy = row ; JLabel guardianLabel = new JLabel ("Guardian Name:" ); guardianLabel .setPreferredSize (new java .awt .Dimension (globalLabel , guardianLabel .getPreferredSize ().height )); p .add (guardianLabel , gbc );
120+ gbc .gridx = 0 ; gbc .gridy = row ; JLabel guardianLabel = new JLabel ("Guardian Name:" ); guardianLabel .setFont ( new Font ( Font . SANS_SERIF , Font . PLAIN , 24 )); guardianLabel . setPreferredSize (new java .awt .Dimension (globalLabel , guardianLabel .getPreferredSize ().height )); p .add (guardianLabel , gbc );
121121 guardianField = new JTextField (24 ); guardianField .setName ("contactlog_guardian" ); gbc .gridx = 1 ; p .add (guardianField , gbc );
122122 row ++;
123- gbc .gridx = 0 ; gbc .gridy = row ; JLabel methodLabel = new JLabel ("Contact Method:" ); methodLabel .setPreferredSize (new java .awt .Dimension (globalLabel , methodLabel .getPreferredSize ().height )); p .add (methodLabel , gbc );
123+ gbc .gridx = 0 ; gbc .gridy = row ; JLabel methodLabel = new JLabel ("Contact Method:" ); methodLabel .setFont ( new Font ( Font . SANS_SERIF , Font . PLAIN , 24 )); methodLabel . setPreferredSize (new java .awt .Dimension (globalLabel , methodLabel .getPreferredSize ().height )); p .add (methodLabel , gbc );
124124 contactMethodCombo = new JComboBox <>(new String []{"Phone" ,"Email" ,"In Person" ,"Other" }); contactMethodCombo .setName ("contactlog_method" ); gbc .gridx = 1 ; p .add (contactMethodCombo , gbc );
125125 row ++;
126- gbc .gridx = 0 ; gbc .gridy = row ; JLabel phoneLabel = new JLabel ("Phone Number:" ); phoneLabel .setPreferredSize (new java .awt .Dimension (globalLabel , phoneLabel .getPreferredSize ().height )); p .add (phoneLabel , gbc );
126+ gbc .gridx = 0 ; gbc .gridy = row ; JLabel phoneLabel = new JLabel ("Phone Number:" ); phoneLabel .setFont ( new Font ( Font . SANS_SERIF , Font . PLAIN , 24 )); phoneLabel . setPreferredSize (new java .awt .Dimension (globalLabel , phoneLabel .getPreferredSize ().height )); p .add (phoneLabel , gbc );
127127 phoneField = new JTextField (18 ); phoneField .setName ("contactlog_phone" ); gbc .gridx = 1 ; p .add (phoneField , gbc );
128128 row ++;
129- gbc .gridx = 0 ; gbc .gridy = row ; JLabel emailLabel = new JLabel ("Email Address:" ); emailLabel .setPreferredSize (new java .awt .Dimension (globalLabel , emailLabel .getPreferredSize ().height )); p .add (emailLabel , gbc );
129+ gbc .gridx = 0 ; gbc .gridy = row ; JLabel emailLabel = new JLabel ("Email Address:" ); emailLabel .setFont ( new Font ( Font . SANS_SERIF , Font . PLAIN , 24 )); emailLabel . setPreferredSize (new java .awt .Dimension (globalLabel , emailLabel .getPreferredSize ().height )); p .add (emailLabel , gbc );
130130 emailField = new JTextField (24 ); emailField .setName ("contactlog_email" ); gbc .gridx = 1 ; p .add (emailField , gbc );
131131 row ++;
132- gbc .gridx = 0 ; gbc .gridy = row ; JLabel responseLabel = new JLabel ("Contact Response:" ); responseLabel .setPreferredSize (new java .awt .Dimension (globalLabel , responseLabel .getPreferredSize ().height )); p .add (responseLabel , gbc );
132+ gbc .gridx = 0 ; gbc .gridy = row ; JLabel responseLabel = new JLabel ("Contact Response:" ); responseLabel .setFont ( new Font ( Font . SANS_SERIF , Font . PLAIN , 24 )); responseLabel . setPreferredSize (new java .awt .Dimension (globalLabel , responseLabel .getPreferredSize ().height )); p .add (responseLabel , gbc );
133133 contactResponseField = new JTextField (24 ); contactResponseField .setName ("contactlog_response" ); gbc .gridx = 1 ; p .add (contactResponseField , gbc );
134134 row ++;
135- gbc .gridx = 0 ; gbc .gridy = row ; JLabel generalLabel = new JLabel ("Contact General:" ); generalLabel .setPreferredSize (new java .awt .Dimension (globalLabel , generalLabel .getPreferredSize ().height )); p .add (generalLabel , gbc );
135+ gbc .gridx = 0 ; gbc .gridy = row ; JLabel generalLabel = new JLabel ("Contact General:" ); generalLabel .setFont ( new Font ( Font . SANS_SERIF , Font . PLAIN , 24 )); generalLabel . setPreferredSize (new java .awt .Dimension (globalLabel , generalLabel .getPreferredSize ().height )); p .add (generalLabel , gbc );
136136 contactGeneralField = new JTextField (24 ); contactGeneralField .setName ("contactlog_general" ); gbc .gridx = 1 ; p .add (contactGeneralField , gbc );
137137 row ++;
138- gbc .gridx = 0 ; gbc .gridy = row ; JLabel specificLabel = new JLabel ("Contact Specific:" ); specificLabel .setPreferredSize (new java .awt .Dimension (globalLabel , specificLabel .getPreferredSize ().height )); p .add (specificLabel , gbc );
138+ gbc .gridx = 0 ; gbc .gridy = row ; JLabel specificLabel = new JLabel ("Contact Specific:" ); specificLabel .setFont ( new Font ( Font . SANS_SERIF , Font . PLAIN , 24 )); specificLabel . setPreferredSize (new java .awt .Dimension (globalLabel , specificLabel .getPreferredSize ().height )); p .add (specificLabel , gbc );
139139 contactSpecificField = new JTextField (24 ); contactSpecificField .setName ("contactlog_specific" ); gbc .gridx = 1 ; p .add (contactSpecificField , gbc );
140140 row ++;
141141
142142 // Notes label + text area with accessibility
143- gbc .gridx = 0 ; gbc .gridy = row ; gbc .gridwidth = 2 ; JLabel notesLabel = new JLabel ("Notes:" ); notesLabel .setPreferredSize (new java .awt .Dimension (globalLabel , notesLabel .getPreferredSize ().height )); p .add (notesLabel , gbc );
143+ gbc .gridx = 0 ; gbc .gridy = row ; gbc .gridwidth = 2 ; JLabel notesLabel = new JLabel ("Notes:" ); notesLabel .setFont ( new Font ( Font . SANS_SERIF , Font . PLAIN , 24 )); notesLabel . setPreferredSize (new java .awt .Dimension (globalLabel , notesLabel .getPreferredSize ().height )); p .add (notesLabel , gbc );
144144 row ++;
145145
146146 gbc .gridx = 0 ; gbc .gridy = row ; gbc .gridwidth = 2 ; notesArea = new JTextArea (8 ,40 ); notesArea .setLineWrap (true ); notesArea .setWrapStyleWord (true ); notesArea .setToolTipText ("Enter contact notes for the student" ); notesArea .getAccessibleContext ().setAccessibleName ("Contact notes" ); JScrollPane notesScroll = new JScrollPane (notesArea ); notesScroll .setHorizontalScrollBarPolicy (JScrollPane .HORIZONTAL_SCROLLBAR_NEVER ); p .add (notesScroll , gbc );
0 commit comments