Skip to content

ankitjangidx/java-awt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

import java.awt.*;

  • Frame f= new Frame("enter frame title") //created frame

frame methods
  • f.setSize(height,width) // method for set size

  • f.setLayout(new FlowLayout())

  • f.setVisible(true or false) //method for enable frame visibility

for adding compoments

f.add(component reference)

    • f.add(b) // for adding button in frame
    • f.add(l) // for adding label in frame
    • f.add(tf) // for adding textfield in frame

other component

  • Button b = new Button("ok") //created button name ok
  • Label l = new Label("name") //created label called name
  • TextField tf=new TextField(20)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages