Click here to Skip to main content
15,881,816 members
Please Sign up or sign in to vote.
1.40/5 (3 votes)
See more:
package calendar;

Java
import java.awt.event.KeyEvent;
import java.util.HashSet;
import javax.swing.AbstractButton;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

public class Calendar {

    public static void main(String[] args) {
        //Construtor de JFrame
        JFrame frame = new JFrame();
        frame.setSize(300, 300);
        frame.setTitle("Calendário");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
        JButton b1 = new JButton("MODIFICAR");
        JPanel painel = new JPanel();
        
        frame.add(painel);
        painel.add(b1);

    }

}
Posted
Updated 9-Jun-15 10:05am
v2
Comments
[no name] 9-Jun-15 14:05pm    
Just dumping your unformatted code here is not a question or a description of any kind of a problem. Use the setbounds method.
Afzaal Ahmad Zeeshan 9-Jun-15 14:56pm    
Do you know how to add margins and bounds, or add floating positions?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900