Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. if(onTime.isSelected()){
  2.  
  3. String time1= onTimeTextfiled.getText();
  4. LocalTime localTime = LocalTime.parse(time1, DateTimeFormatter.ofPattern("HH:mm:ss"));
  5.  
  6. LocalTime loc = LocalTime.now();
  7. if(localTime.compareTo(loc)==0){
  8. frame2.setSize(600,800);
  9. frame2.setVisible(true);
  10.  
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement