<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=Button%2F%EC%A7%84%EC%98%81</id>
	<title>Button/진영 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=Button%2F%EC%A7%84%EC%98%81"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=Button/%EC%A7%84%EC%98%81&amp;action=history"/>
	<updated>2026-05-14T23:51:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=Button/%EC%A7%84%EC%98%81&amp;diff=29412&amp;oldid=prev</id>
		<title>imported&gt;Unknown at 05:22, 7 February 2021</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=Button/%EC%A7%84%EC%98%81&amp;diff=29412&amp;oldid=prev"/>
		<updated>2021-02-07T05:22:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;이렇게 해도 되는 건지 원... -_-;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
 // ButtonTest.java&lt;br /&gt;
 &lt;br /&gt;
 import java.awt.*;&lt;br /&gt;
 import java.awt.event.*;&lt;br /&gt;
 import javax.swing.*;&lt;br /&gt;
 &lt;br /&gt;
 class ButtonPanel extends JPanel&lt;br /&gt;
 implements ActionListener&lt;br /&gt;
 {&lt;br /&gt;
 	public ButtonPanel()&lt;br /&gt;
 	{&lt;br /&gt;
 		yellowButton = new JButton(&amp;quot;Yellow&amp;quot;);&lt;br /&gt;
 		blueButton = new JButton(&amp;quot;Blue&amp;quot;);&lt;br /&gt;
 		redButton = new JButton(&amp;quot;Red&amp;quot;);&lt;br /&gt;
 		&lt;br /&gt;
 		add(yellowButton);&lt;br /&gt;
 		add(blueButton);&lt;br /&gt;
 		add(redButton);&lt;br /&gt;
 		&lt;br /&gt;
 		yellowButton.addActionListener(this);&lt;br /&gt;
 		blueButton.addActionListener(this);&lt;br /&gt;
 		redButton.addActionListener(this);&lt;br /&gt;
 	}&lt;br /&gt;
 	&lt;br /&gt;
 	public void actionPerformed(ActionEvent evt)&lt;br /&gt;
 	{&lt;br /&gt;
 		Object source = evt.getSource();&lt;br /&gt;
 		Color color = getBackground();&lt;br /&gt;
 		if(source == yellowButton)&lt;br /&gt;
 			color = Color.yellow;&lt;br /&gt;
 		else if(source == blueButton)&lt;br /&gt;
 			color = Color.blue;&lt;br /&gt;
 		else if(source == redButton)&lt;br /&gt;
 			color = Color.red;&lt;br /&gt;
 		setBackground(color);&lt;br /&gt;
 		repaint();&lt;br /&gt;
 	}&lt;br /&gt;
 	&lt;br /&gt;
 	private JButton yellowButton;&lt;br /&gt;
 	private JButton blueButton;&lt;br /&gt;
 	private JButton redButton;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 class ButtonFrame extends JFrame&lt;br /&gt;
 {&lt;br /&gt;
 	public ButtonFrame()&lt;br /&gt;
 	{&lt;br /&gt;
 		setTitle(&amp;quot;ButtonTest&amp;quot;);&lt;br /&gt;
 		setSize(300, 200);&lt;br /&gt;
 		addWindowListener(new WindowAdapter()&lt;br /&gt;
 		{&lt;br /&gt;
 			public void windowClosing(WindowEvent e)&lt;br /&gt;
 			{&lt;br /&gt;
 				System.exit(0);&lt;br /&gt;
 			}&lt;br /&gt;
 		} );&lt;br /&gt;
 		&lt;br /&gt;
 		Container contentPane = getContentPane();&lt;br /&gt;
 		contentPane.add(new ButtonPanel());&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 public class ButtonTest&lt;br /&gt;
 {&lt;br /&gt;
 	public static void main(String[] args)&lt;br /&gt;
 	{&lt;br /&gt;
 		JFrame frame = new ButtonFrame();&lt;br /&gt;
 		frame.show();&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From. 申 君...&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
[[JavaStudyInVacation/진행상황]]&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>