Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setItemFiltered(int item, String toChange){
- /*Take CurriculumSubject and getItem for each index and then setItem
- * for each index with a particular font.
- */
- Font font = new Font("Sans", Font.ITALIC, 14);
- textfields[item].setText(toChange);
- textfields[item].setFont(font);
- textfields[item].setForeground(Color.LIGHT_GRAY);
- textfields[item].setEditable(false);
- buttons[item].setEnabled(false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement