<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Amimating_a_line</id>
		<title>Amimating a line - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Amimating_a_line"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Amimating_a_line&amp;action=history"/>
		<updated>2026-05-06T15:49:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=Amimating_a_line&amp;diff=1440&amp;oldid=prev</id>
		<title>George2 at 14:25, 17 November 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Amimating_a_line&amp;diff=1440&amp;oldid=prev"/>
				<updated>2014-11-17T14:25:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:25, 17 November 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/ins&gt;source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>George2</name></author>	</entry>

	<entry>
		<id>https://wiki.twig.es/index.php?title=Amimating_a_line&amp;diff=1406&amp;oldid=prev</id>
		<title>George2: Created page with &quot;&lt;source lang=&quot;java&quot;&gt;  import java.awt.event.*; import java.awt.*; import javax.swing.*;   public class Line{   public static void main(String[] args){   java.awt.EventQueue.in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Amimating_a_line&amp;diff=1406&amp;oldid=prev"/>
				<updated>2014-11-14T13:24:11Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;  import java.awt.event.*; import java.awt.*; import javax.swing.*;   public class Line{   public static void main(String[] args){   java.awt.EventQueue.in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import java.awt.event.*;&lt;br /&gt;
import java.awt.*;&lt;br /&gt;
import javax.swing.*; &lt;br /&gt;
&lt;br /&gt;
public class Line{&lt;br /&gt;
&lt;br /&gt;
 public static void main(String[] args){&lt;br /&gt;
  java.awt.EventQueue.invokeLater(new Runnable() {&lt;br /&gt;
    public void run() {&lt;br /&gt;
      JFrame frame = new JFrame();&lt;br /&gt;
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;
      frame.add(new DrawLine(150,300,350,300));&lt;br /&gt;
      frame.setSize(500,500);&lt;br /&gt;
      frame.setVisible(true);  &lt;br /&gt;
    }&lt;br /&gt;
  });  &lt;br /&gt;
 } &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class DrawLine extends JPanel implements ActionListener{&lt;br /&gt;
&lt;br /&gt;
  int x1;&lt;br /&gt;
  int y1;&lt;br /&gt;
  int x2;&lt;br /&gt;
  int y2;&lt;br /&gt;
  int midx;&lt;br /&gt;
  int midy;&lt;br /&gt;
&lt;br /&gt;
  Timer time = new Timer(10, (ActionListener) this);&lt;br /&gt;
&lt;br /&gt;
  public DrawLine(int x1, int y1, int x2, int y2){&lt;br /&gt;
    this.x1 = x1;&lt;br /&gt;
    this.y1 = y1;&lt;br /&gt;
    this.x2 = x2;&lt;br /&gt;
    this.y2 = y2;&lt;br /&gt;
    midx = (x1+x2)/2;&lt;br /&gt;
    midy = (y1+y2)/2;&lt;br /&gt;
    time.start();&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  public void animateLine(Graphics2D g){&lt;br /&gt;
    g.drawLine(x1,y1,midx,midy);&lt;br /&gt;
    g.drawLine(x2,y2,midx,midy);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  public void actionPerformed(ActionEvent arg0) {&lt;br /&gt;
    if(midy&amp;gt;123){&lt;br /&gt;
      midy--;&lt;br /&gt;
      repaint();&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  public void paintComponent(Graphics newG){&lt;br /&gt;
    super.paintComponent(newG);&lt;br /&gt;
    Graphics2D g2d = (Graphics2D)newG;&lt;br /&gt;
    animateLine(g2d);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>