Sunday, March 27, 2011

Reptile Birthday Games

TUDOR CHURCH MUSIC. VOLUME TWO

Jabbawockeez Mask In Brisbane

TUDOR CHURCH MUSIC. VOLUME ONE

Friday, March 25, 2011

Humiliation Initiation

THE RIVALRY TAURINE

rivalry is as old as bullfighters bullfighting itself. Of these perhaps the best known was that kept Belmonte (I) and Joselito (D) last century. (Click on any image to enlarge.)

THE RIVALRY NOBLE TAURINE


rivalry bullfighters bullfighting is inherent in it. We can find many examples, from its origins with the famous rivalry between Pedro Romero and Pepe Hillo, or back and Paquiro Cúchares. But maybe the most famous and legendary of all that remained was the Joselito and Belmonte at the beginning of last century, or the equally popular with Ordonez and Luis Miguel Dominguin that Hemingway himself narrated in his book "Bloody Summer." These are just a few examples among many, in which almost always prevailed respect and mutual admiration between the rivals, although like everything has always been exceptions and a bullfighter has lost the papers.

Another great rivalry in the arena took place between Dominguín (left) and Ordonez (white shirt), a rivalry which the American writer Ernest Hemingway (with Ordoñez) embodied in his book "Summer Blood. " (LIFE magazine).

In the world of guerracivilmaquia and history, these rivalries are also produced and this week we have witnessed an unfortunate attack by María Teresa Fernández Talaya to the person and work of our friend Juan Antonio González Prisons "University ". Do not want to get into the controversy, and I hope that clarifies his accusations Fernández Talaya or rectify data publicly, but if he wanted to defend from these lines the figure of that great right that is "University" has given ample proof, along its already extensive experience, professionalism, honesty, rigor, seriousness and good work. But the most paradoxical is the fact that he has accused Fernandez Talaya "research zero" besides being "unscientific and dishonest." Last year

María Teresa Fernández Talaya published a book in British publishing Amberley's title "Mother of the Manzanares Argüelles", which I like to do today and always constructive criticism from the respect that characterizes our publication. Let me begin by talking about the editorial Amberley with a line based on "rescue and spread the local photographic memory or a certain historical time" as listed on their website web. To advertise in this editorial the author must have very well "between 150 and 240 images can be published" publishing "does not entail any cost to the author, who receive, on the other hand, pay an annual percentage sales the book. " In these premium editions of photography on the text, no doubt a nod to attract the general public, and because of its format we can not wait to be carried out extensive historical studies.

The book published last year by Maria Teresa Fernandez at the publisher Talaya Amberley.

María Teresa Fernández Talaya
also published a few years ago a very interesting work on the Royal Estate of Florida, a great deal of documentation in which it invested much time working. Yet to comment on the book presents a series of mistakes no doubt due to an inexplicable lack of research, especially in the case of a historian of his prestige, as well as the texts are scarce, ambiguous and insufficient. In our humble opinion the book was made hastily trying to incorporate a number of photographs, most of them from the Red Archive of the Ministry of Culture and Santos Yubero Fund of the Community Regional Archives Madrid. The Red File was digitized years ago and was freely available online with pictures as they were and with an acceptable resolution, until not long ago decided to water spots on the photographs, probably due to the abuses being carried out with the photographic, and thus prevent its publication and indiscriminate use.

The first chapter is dedicated to the Royal Site of Florida, where in 8 pages and 11 images shipped the item, all photos displayed on his previous work of the Royal Place. The second chapter is dedicated to the creation of the district of Madrid, although it could be dedicated exclusively to the creation of the headquarters of the Mountain because of its 24 pages 20 are dedicated to the barracks and solar, and 42 of the 45 photographs are also dedicated to him, especially the coup of July 1936, all 24 images Red File and Fund Yubero Santos (20 and 4), surprisingly discussed building an article in Time History in 1981 by Carlos Sampelayo and can be found on the Internet by "click here" and buecando number 80-81. Carlos Sampelayo was a journalist at the time of the military uprising and witnessed the events of those days in July. Later in exile published an interesting book title "Those who did not return" which left a very significant sentence, which over the years in view of what they publish some authors has gained momentum: "It was the worst thing that won the war, but we won the History ". His testimony, of huge interest in Time of History is just one among many of those events and surprises that is the only reference (very easy to get by the way) used by the author to accompany some loose paragraphs, 24 pages of pictures devoted to this episode. With the large number of references and bibliography are referred to this moment in history, we are surprised that given the importance it attaches to this event Specifically, both the number of pages as images, use only the testimony of an Internet journal or magazine.


One of the photographs with captions wrong, in this case indicates that it is Benito Gutierrez Street when in fact it is a corner Altamirano Alvarez de Mendizabal, namely the farm where it is located the popular Bar Casa Paco. (Red File AGA).

The next chapter (third) is dedicated to the destruction in the civil war, and found a good number of pictures all from the generous funding of Red on File destruction in the neighborhood, with some errors in the location of them, surprisingly photographs are annotated with texts concerning the life and work of those who gave their names to the streets, Alvarez de Mendizabal, Ferraz, Quintana, etc. In many cases texts remind us of Peter repid. Neither seems to shine this chapter for a thorough investigation.


Another photo located in Arguelles was actually taken in Oropesa, Toledo, Segovia Albero and such as can be seen on the back of it. (Red File AGA).

The fourth chapter called "survivors" is one of the most surprising of all photos displayed on it, only one or two (if we consider Alberto Aguilera as belonging to the neighborhood) are Argüelles. The author suggests that the area was inhabited during the war and that people "trying to survive and share what little they had," something no one has been worried a bit so that was the war, and more in this neighborhood would ever hold, the Argüelles district was evacuated from November 36 until the end of the war, and there were no children or women, only soldiers. This chapter is illustrated with photos of Tetuan and other locations, but the fireworks is a picture of a child offering a jug to a militia, which the author interprets to be "on guard at one of the barracks," but that if he had bothered to turn the picture could have shown that taken in Oropesa Marina D'Or not, but in Toledo. In the last chapter image the caption says "many families left the capital" when in fact they are citizens who fled the advancing troops of the Army of Africa precisely targeted to Madrid. The fifth chapter is entitled "The war is over" and I've decided to stop here, though it is true that it could and many more examples to go more into detail, but I think that is enough for what I set out below.


photo which states that "many families abandonarosn the capital" when in fact the photo is taken in Villaverde by Atienza and she sees that a group of pciviles are directed toward the capital fleeing the advance of Franco's army. (Red File AGA).

bullfighting rivalry served in almost every opportunity to get magnify the show, the presence of two geniuses such as Joselito and Belmonte (who were also friends) in the bullfighting scene from the beginning of last century, as well as his desire to surpass themselves in fair competition, resulted in what is known as the "Golden Age of Bullfighting" by the beauty and the momentum attained bullfighting during those years. In our case we are also in the presence of two great figures, both Juan Antonio González and María Teresa Fernández Prisons Talaya have given ample proof of his talent, although it is very difficult to always maintain the same level in all work, as has happened to Fernández Talaya with the book we have discussed in this review.


photo according to the author that "the people (of district Argüelles) had managed to survive, sharing what little they had," when in fact the area was evacuated at the start of the fighting. On the back of the photo reads: "Some of the humble home of Tetuan de las Victorias destroyed by bombs AVIATION fascist." (Red File AGA).

History is the heritage of all, and the data provided by historians and researchers also should be, without subtracting any merit to those who through their work and effort of bringing to light. The interpretations of these data are made and subsequently enter the territory of subjectivity and beyond everyone, but what I see as wrong is the appropriation of such data, as it is not right, as well as unethical, the use of this data without citing the source and in case the person who announced in due course. For example, if someone is researching a bundle that provides information on a historical episode, it's okay to be recognized merit and effort, but this does not grant any property rights or exclusive right over the contents, so this may be quoted or used by other historians and researchers for their work, quoting the source and the discoverer of it. With guerracivilmaquia, this is true, and very specifically with the issue of archaeological heritage, something similar happens, sometimes it seems that some researchers have certain areas closed to consider your property and you have some exclusivity, when in fact heritage of all and any "interference" is regarded as an affront and an act of intrusion. From this formulation we opt for greater collaboration among historians and researchers, forgetting rivalries in fair competition, recognizing individual merit and deserved their "trophies" for the sole purpose to promote general knowledge of history, who did not forget, belongs to each and every one of us.

That said, we want to finish this review hoping that the water back on track and recover the normal relationship between colleagues. It would be desirable or Talaya Fernández clearly indicate what are the causes of Prisons accused of "unscientific and dishonest" for which the accused may challenge, or to acknowledge the mistakes that have been committed (that knowing González Prisons I'm sure they will have no objection to doing so if necessary). But if more of these statements made clear, Fernandez Talaya should publicly correct his words. Be to the benefit of history.


Florentino Areneros.

Sunday, March 20, 2011

Fair And Lovely Multivitamin Cream

Send Message to Another

Send a Message to Another Applet

will see that we can send messages between applets that are loaded on the same page, so we can separate various functions in different Applets and to send information, objects and even components Applet to another.

In this case the first applet invokes a method on the second applet by passing as parameter a String, this String is added to the JComboBox the second applet. Images








Code
Applet 1


Master Class


Classes package;


java.awt.FlowLayout import, import
java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


import javax.swing .*;


public class Main extends JApplet {
JTextField txt;
JButton b;


public void init () {
setLayout (new FlowLayout ());
txt = new JTextField ("", 15);
b = new JButton ("Send Message");
b.addActionListener (new ActionListener () {


@ Override
public void actionPerformed (ActionEvent e) {
Principal2 applet2 =(Principal2)getAppletContext().getApplet("applet2");
   if ( applet2 != null ) {
       applet2.AgregarDato( txt.getText() );
   }
}
    
    });
    add(txt);
add (b);}

}


Class Principal2


Applet2



package classes;


import java.awt.FlowLayout;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextArea;


public class Principal2 extends java.applet.Applet {


JComboBox combo;


public void init() {
setLayout(new FlowLayout());
combo=new JComboBox();
add(new JLabel("Datos: "));
add(combo);
}


public void AgregarDato( String m ) {
combo.addItem (m);
combo.updateUI ();
repaint ();
}}


The first applet which does is create a text field, where typing the message and a button which when clicked will send the typed message. Gets the instance of the applet called applet2, this name is specified to be posted on the page in the html tag. It then calls the method of the Applet AgregarDato 2 to add a fact to JComboBox.

The second applet, the only thing it does is create a JComboBox which show the data sent by the first applet.

Applet 1



Applet 2

Cube Field The Game Wide Screen

Applet Manage your Blogger blogs

Manage your blogs Blogger

Today we will see another application using GOOGLE API, this time the Blogger API. You will see your posts, post an entry, delete an entry, make a comment, etc.

You can view all posts you manage and blog entries by.

Images






Code


Master Class



Classes package;


import javax.swing.JFrame;


public class Main {


public static void main (String [] args) {
FrameConexion FrameConexion fc = new ();
fc.setVisible (true);
fc.setBounds (0 , 0, 300, 120);
fc.setLocationRelativeTo (null);
fc.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
}}



Class FrameConexion



Classes package;


import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


import javax.swing.*;


import com.google.gdata.client.blogger.BloggerService;
import com.google.gdata.util.AuthenticationException;


public class FrameConexion extends JFrame {

JTextField txtusuario;
JPasswordField txtclave;

public FrameConexion(){

ImageIcon imgframe=new ImageIcon(this.getClass().getResource("../Imagenes/blogger.png"));
setIconImage(imgframe.getImage());
JPanel pdatos=new JPanel();
pdatos.setLayout(new GridLayout(2,2,1,1));
pdatos.add(new JLabel("Usuario:"));
txtusuario = new JTextField (20);
pdatos.add (txtusuario)
pdatos.add (new JLabel ("Contraseña :"));
txtclave = new JPasswordField (20 )
pdatos.add (txtclave)

pbotones = new JPanel JPanel ();
btnconectar = new JButton JButton ("Connect");
btnconectar.addActionListener (new ActionListener () {


@ Override
public void actionPerformed (ActionEvent arg0) {
BloggerService BloggerService service = new ("Customer Blogger - Java Zone");
try {
servicio.setUserCredentials (txtusuario.getText (), new String (txtclave.getPassword ()));
FrameBlogs fb = new FrameBlogs (service, txtusuario.getText ());
fb.setVisible (true);
fb.setBounds (0, 0, 550, 400);
fb.setLocationRelativeTo (null);
fb.setDefaultCloseOperation (EXIT_ON_CLOSE)
FrameConexion.this.setVisible (false);
} catch (AuthenticationException e) {
/ / TODO Auto-generated catch block
e.printStackTrace ();

}}
});
pbotones.add (btnconectar) ;
add (pdata);
add (pbotones, BorderLayout.SOUTH);
}}




Class FrameBlogs



package classes;


import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java. net.MalformedURLException;
import java.net.URL;


import javax.swing .*; javax.swing.event.ListSelectionEvent
import, import
javax.swing.event.ListSelectionListener;


com.google.gdata.client.blogger import. BloggerService;
import com.google.gdata.data.Entry; com.google.gdata.data.Feed
import, import
com.google.gdata.data.ParseSource;
import com. google.gdata.util.ServiceException;


FrameBlogs public class extends JFrame {

BloggerService service;
nombreBlogs String []
idblogs String []
JSplitPane panelSeparador;
listaBlogs JList;
panelPorBlog JPanel [];
JButton btncrear, btneliminar, btncomentar, btnactualizar;
String user;
Entry [] entries;
int option;

public FrameBlogs (s BloggerService , String usu) {

servicio = s;
User = usu;
= new ImageIcon imgframe ImageIcon (this.getClass (). GetResource ("../ Imagenes / blogger.png "));
setIconImage (imgframe.getImage ());
panelSeparador = new JSplitPane ();

obtenerBlogs ();

pblogs JPanel = new JPanel ();
listaBlogs = new JList(nombreBlogs);
listaBlogs.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
listaBlogs.addListSelectionListener(new ListSelectionListener(){


@Override
public void valueChanged(ListSelectionEvent e) {
opcion=listaBlogs.getSelectedIndex();
if(listaBlogs.getSelectedIndex()==0){
try {
crearPanelPorBlog(0);
} catch (IOException e1) {
/ / TODO Auto-generated catch block
e1.printStackTrace ();
} catch (ServiceException e1) {
/ / TODO Auto-generated catch block
e1.printStackTrace ();
}
panelSeparador.setRightComponent (new JScrollPane (panelPorBlog [0]));
} else {


Try {
crearPanelPorBlog (1);
} catch (IOException e1) {
/ / TODO Auto-generated catch block
e1.printStackTrace ();
} catch (ServiceException e1) {
/ / TODO Auto-generated catch block
e1.printStackTrace ();
}
panelSeparador.setRightComponent ( new JScrollPane (panelPorBlog [1]));
}
}

});
pblogs.add (listaBlogs);

panelSeparador.setLeftComponent ( pblogs);
panelSeparador.setRightComponent (new JPanel ());

add (panelSeparador);

JPanel = new JPanel pacciones () ;
ImageIcon imgcrear = new ImageIcon (this.getClass (). GetResource ("../ Images / postear.png "));
btncrear = new JButton (" Post ", imgcrear)
btncrear.addActionListener (new ActionListener () {


@ Override
public void actionPerformed (ActionEvent e) {
FramePublicar FramePublicar fp = new (service, user, idblogs [
listaBlogs.getSelectedIndex ()]);}
});
= new ImageIcon imgeliminar ImageIcon (this.getClass (). GetResource ("../ Imagenes / borrar.png "));
btneliminar = new JButton (" Delete ", imgeliminar);
btneliminar.addActionListener (new ActionListener () {


@ Override
public void actionPerformed (ActionEvent e) {
FrameEliminar fe = new FrameEliminar (entries);
}
});
imgcomentar = new ImageIcon ImageIcon (this.getClass (). GetResource ("../ Images / comentar.png "));
btncomentar = new JButton (" Comment "imgcomentar)
btncomentar.addActionListener (new ActionListener () {


@ Override
public void actionPerformed (ActionEvent e) {
FrameComentario fc = new FrameComentario (service, tickets, idblogs [
listaBlogs.getSelectedIndex ()]);}
});
ImageIcon imgactualizar=new ImageIcon(this.getClass().getResource("../Imagenes/actualizar.png"));
btnactualizar=new JButton("Actualizar",imgactualizar);
btnactualizar.addActionListener(new ActionListener(){


@Override
public void actionPerformed(ActionEvent e) {
try {
crearPanelPorBlog(opcion);
} catch (IOException e1) {
/ / TODO Auto-generated catch block
e1.printStackTrace ();
} catch (ServiceException e1) {
/ / TODO Auto-generated
catch block e1.printStackTrace ();
}
panelSeparador.setRightComponent (new JScrollPane (panelPorBlog [1]));

}} )

pacciones.add(btncrear);
pacciones.add(btneliminar);
pacciones.add(btncomentar);
pacciones.add(btnactualizar);

add(pacciones,BorderLayout.SOUTH);
}

public void obtenerBlogs(){
URL feedUrl;
try {
feedUrl = new URL("http://www.blogger.com/feeds/default/blogs");
Feed feed = servicio.getFeed(feedUrl, Feed.class);
nombreBlogs=new String[feed.getEntries().size()];
idblogs=new String[feed.getEntries().size()];
for (int i = 0; i  <  feed.getEntries().size(); i++) {
     Entry entry = feed.getEntries().get(i);
     nombreBlogs[i]=entry.getTitle().getPlainText();
}

if (feed.getEntries (). Size ()> 0) {
for (int j = 0, j \u0026lt; feed . GetEntries (). size (); j + +) {
feed.getEntries Entry entry = (). get (j);
idblogs [j] = entry.getId (). split (" blog-") [1];

}} else {
JOptionPane.showMessageDialog (null," User not registered Blog no. ");
}
} catch (MalformedURLException e) {
e.printStackTrace ();
} catch (IOException e) {
e.printStackTrace ();
} catch (ServiceException e) {
e.printStackTrace ();

}}

crearPanelPorBlog public void (int op) throws IOException, ServiceException{
panelPorBlog=new JPanel[nombreBlogs.length];
for(int i=0;i < nombreBlogs.length;i++){
JPanel p=new JPanel();
panelPorBlog[i]=p;
p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS));


String dirfeed="http://www.blogger.com/feeds/"+idblogs[op];
String urlfeed=dirfeed+"/posts/default";
URL feedUrl = new URL(urlfeed);
   Feed resultFeed = servicio.getFeed(feedUrl, Feed.class);
   entradas=new Entry[resultFeed.getEntries().size()];
   for (int j = 0; j  <  resultFeed.getEntries().size(); j++) {
     Entry entrada = resultFeed.getEntries().get(j);
  entries [j] = entry;
ppost JPanel = new JPanel ();
lpost = new JLabel JLabel (entrada.getTitle (). getPlainText ());
ppost.add (lpost);
p.add (ppost);
;}

}
}}



Class FramePublicar



package classes;


import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net. URL;


import javax.swing .*;


com.google.gdata.client.blogger.BloggerService import, import
com.google.gdata.data.Entry;
import com.google.gdata.data.Person;
import com. google.gdata.data.PlainTextConstruct;
import com.google.gdata.util.ServiceException;


FramePublicar public class extends JFrame {

JTextArea txt;
JScrollPane scroll;
btnpublicar JButton;
BloggerService service;
String usuario;
JTextField txttitulo;
String idblog;

public FramePublicar(BloggerService s, String usu,String id){

servicio=s;
usuario=usu;
idblog=id;

ImageIcon imgframe=new ImageIcon(this.getClass().getResource("../Imagenes/blogger.png"));
setIconImage(imgframe.getImage());

JPanel ptitulo=new JPanel();
txttitulo=new JTextField(30);
ptitulo.add(new JLabel("Titulo:"));
ptitulo.add(txttitulo);

add(ptitulo,BorderLayout.NORTH);

txt=new JTextArea();
scroll=new JScrollPane(txt);
add (scroll);

pboton JPanel = new JPanel ();
btnpublicar = new JButton ("Post");
btnpublicar.addActionListener (new ActionListener () {


@ Override
public void actionPerformed (ActionEvent e) {
Entry entry = new Entry ();
entrada.setTitle (new PlainTextConstruct (txttitulo.getText ()));
   entrada.setContent(new PlainTextConstruct(txt.getText()));
   Person author = new Person(usuario, null, usuario);
   entrada.getAuthors().add(author);
   entrada.setDraft(false);


   try {
URL UrlEntrada = new URL("http://www.blogger.com/feeds/"+idblog + "/posts/default");
servicio.insert (UrlEntrada, input);
JOptionPane.showMessageDialog (null, "Input Published Successfully.");
txttitulo.setText
(""); txt.setText ("");
FramePublicar.this.dispose ();
} catch (MalformedURLException e1) {
/ / TODO Auto-generated catch block
e1.printStackTrace ();
} catch (IOException ex) {
/ / TODO Auto-generated catch block
ex.printStackTrace ();
} catch (ServiceException ed) {
/ / TODO Auto-generated
catch block ed.printStackTrace ();

}}

});
pboton.add (btnpublicar)
add (pboton, BorderLayout.SOUTH)
setVisible (true);
setBounds (0, 0, 400, 300);
setLocationRelativeTo (null);
}}


Class FrameEliminar

Classes package;

import java.awt.event.ActionEvent;
import java.awt.event. ActionListener;
import java.io.IOException;

import javax.swing .*;

com.google.gdata.data.Entry import, import
com.google.gdata.util.ServiceException;

FrameEliminar public class extends JFrame {
comboEntradas JComboBox;
btneliminar JButton;
Entry [] entries;
String [] names;
public FrameEliminar(Entry[] e){
entradas=e;
ImageIcon imgframe=new ImageIcon(this.getClass().getResource("../Imagenes/blogger.png"));
setIconImage(imgframe.getImage());
nombres=new String[entradas.length];
for(int i = 0; i \u0026lt; entradas.length; i + +) {
names [i] = entries [i]. getTitle (). getPlainText ();
} comboEntradas = new JComboBox (names);
pdata = new JPanel JPanel ();
pdatos.add (new JLabel ("Input:")) ;
pdatos.add (comboEntradas)
btneliminar = new JButton ("Delete");
btneliminar.addActionListener (new ActionListener () {

@ Override
public void actionPerformed (ActionEvent e) {
try {
entries [comboEntradas.getSelectedIndex ()]. \u200b\u200bdelete ();
JOptionPane.showMessageDialog (null, 'Deleted Entry Exit ");
} catch (IOException e1) {
/ / TODO Auto-generated catch block
e1.printStackTrace ();
} catch (ServiceException e1) {
/ / TODO Auto-generated catch block
e1.printStackTrace ();
}
}
});
pdatos.add (btneliminar)
add (pdata);
setVisible (true);
setBounds (0, 0, 400, 200);
setLocationRelativeTo (null);
}}

Class FrameComentar

Classes package;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

import javax.swing.*;

import com.google.gdata.client.blogger.BloggerService;
import com.google.gdata.data.Entry;
import com.google.gdata.data.PlainTextConstruct;
Import com.google.gdata.util.ServiceException;

FrameComentario public class extends JFrame {
Entry [] entries;
String [] names;
comboEntradas JComboBox;
JTextArea txtComentarios;
btncomentar JButton;
BloggerService service;
idblog String;
public FrameComentario(BloggerService s,Entry[] e,String id){
servicio=s;
entradas=e;
idblog=id;
ImageIcon imgframe=new ImageIcon(this.getClass().getResource("../Imagenes/blogger.png"));
setIconImage(imgframe.getImage());
names = new String [entradas.length]
for (int i = 0; i \u0026lt; entradas.length; i + +) {
names [ i] = entries [i]. getTitle (). getPlainText ();
}
comboEntradas = new JComboBox (names);
JPanel Pentra = new JPanel ();
pentrada.add (new JLabel ("Input:"));
pentrada.add (comboEntradas)
add (Pentre, BorderLayout.NORTH)
txtComentarios = new JTextArea ();
add (new JScrollPane (txtComentarios));
pcomentar JPanel = new JPanel ();
imgcomentar = new ImageIcon ImageIcon (this.getClass (). getResource ("../ Images / comentar.png "));
btncomentar = new JButton (" Comment "imgcomentar)
btncomentar.addActionListener(new ActionListener(){

@Override
public void actionPerformed(ActionEvent e) {
String selfLinkHref = entradas[comboEntradas.getSelectedIndex()].getSelfLink().getHref();
   String[] tokens = selfLinkHref.split("/");
   String postId = tokens[tokens.length - 1];
   
   String commentsFeedUri = "http://www.blogger.com/feeds/"+idblog + "/" + postId + "/comments/default";
   URL feedUrl;
try {
feedUrl = new URL(commentsFeedUri);
Entry myEntry = new Entry();
   myEntry.setContent(new PlainTextConstruct(txtcomentario.getText()));
servicio.insert (feedURL, myEntry)
} catch (MalformedURLException e1) {
/ / TODO Auto-generated catch block
e1. printStackTrace ();
} catch (IOException s) {
/ / TODO Auto-generated catch block
es.printStackTrace ();
} catch (ServiceException ea) {
/ / TODO Auto-generated catch block
ea.printStackTrace ();
}
}
});
pcomentar.add (btncomentar)
add (pcomentar, BorderLayout.SOUTH)
setVisible (true);
setBounds (0, 0, 400, 300);
setLocationRelativeTo (null);
}}

Main class creates an object only FrameConexion and displays. FrameConexion then creates a BloggerService for communication with the Blogger service. Then the user has to authenticate, that the method SetUserCredentials (String user, String password) BloggerService class. Then we call the FrameBlogs where we show the blogs that manages the user and the inputs of each blog. Also in this window are the buttons to publish, remove, comment and update.

If you press the publish button FramePublicar calls will indicate where the title of the post and its contents. Then press publish and ready. If you press the delete button a window where JComboBox to get a list of entries, you should select the entry and press the delete button. Pressing comment will appear a window where you choose the entry in which you want to comment on and finally write the comments and click on the comment button.

And finally the Update button it does is update the blog entries you have currently open.

Thursday, March 17, 2011

Scabies Worsening After Treatment

Dynamic Graph

Dynamic Graph

will now see how we can start building our simple graph step by step, our nodes can be placed and then go assigning the edges. This project was contributed by Michael Manjarres . Images







Code


Master Class



Classes package;


import javax.swing.JApplet;


public class Main extends JApplet {

public void init () {
l canvas = new Canvas (this);
l.setBounds (0, 0, 400, 400);
add (l);
}}


Canvas Class

Classes package;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.MouseEvent;
java.awt.event.MouseListener import, import
java.awt.event.MouseMotionListener;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

public class Canvas extends JPanel implements MouseListener, MouseMotionListener {

int x = 0, y = 0;
line line;
circle circle;
circle pulled = null;
List \u0026lt; circle> = new ArrayList ListCirculo \u0026lt; circle> ();
List \u0026lt; Online> will list = new ArrayList \u0026lt; Online> (); Home
p;

public Canvas (Principal prin) {
     p=prin;
        this.addMouseListener(this);
        this.addMouseMotionListener(this);
        this.setVisible(true);
        this.setDoubleBuffered(true);
    }

    public void anadirCirculo(int x, int y){
        circulo = new circulo(ListCirculo.size(),x,y);
        ListCirculo.add(circulo);
        repaint();
        p.repaint();
    }

    public void anadirLinea( int x, int y){
        try{
            linea = new linea (ListCirculo.get(x),ListCirculo.get(y));
            this.ListArista.add(linea);
repaint ();
p.repaint ();
} catch (IndexOutOfBoundsException e) {
JOptionPane.showMessageDialog (null, "In that meeting circle");
   }
    }

    @Override
    public void paintComponent(Graphics g){
     super.paintComponents(g);
     for (linea f:ListArista)
     {
     f.painter(g);
     }

     for (circulo f:ListCirculo)
     {
     f.painter(g,this);
     }

    }

    public void mouseClicked(MouseEvent e) {
        try{
         if(e.getButton()==1){
             x = e.getX();
             y = e.getY();
             anadirCirculo(x,y);
         }else
         {
             if(e.getButton()==3)
         {Int
ini = Integer.parseInt (JOptionPane.showInputDialog ("Number of inicual circle"));
int end = Integer.parseInt (JOptionPane.showInputDialog ("Number of final circle"));
; anadirLinea (ini, end);}
}
;} catch (Exception ex) {
}
;}

    public void mousePressed(MouseEvent e) {}

    public void mouseReleased(MouseEvent e) {}

    public void mouseEntered(MouseEvent e) {}

    public void mouseExited(MouseEvent e) {}

    public void mouseDragged(MouseEvent e) {
       if(jalada==null)
        {
           for (circulo f:ListCirculo)
           {
             if(f.jaladopor(e.getPoint()))
               {
                 jalada=f;
               }
             x=e.getPoint().x;
             y=e.getPoint().y;
             repaint();
             p.repaint();
            }
       }
       else{
           jalada.transladar(e.getPoint().x-x,e.getPoint().y-y);
           x=e.getPoint().x;
           y=e.getPoint().y;
           repaint();
           p.repaint();
           }
    }

    public void mouseMoved(MouseEvent e){
        jalada=null;
    }

}

Class
circle

Classes package;

import java.awt .*;
import javax.swing.ImageIcon;

public class circle {

int x, y, n;
Image image;

 public circulo(int n, int x, int y) {
        this.n=n;
        this.x=x;
        this.y=y;
        image = new ImageIcon(getClass().getResource("../Imagenes/esfera.png")).getImage();
    }

    public void painter(Graphics g,lienzo l) {
            g.drawImage(image, x-15, y-15, l);
            g.setColor(Color.RED);
            g.drawString(""+n, x-15, y-15);
            g.drawString(""+n, x-14, y-14);
        }

    public int getX() {
        return x;
    }

    public int getY() {
return y;}

getN public int () {
return n;}
transladar public void (int dx, int two) {
        this.x+=dx; this.y+=dy;
    }

    public void setImage(Image image) {
        this.image = image;
    }

    public boolean jaladopor(Point d) {
        if(d.distance(x, y) < =15) {
            return true;
        }
         else {
                return false;
}}}

Online Class

Classes package;

import java.awt.Color;
import java.awt.Graphics;

line {public class

initial circle, circle
ffinal;
Color color = Color.Black;

public line (initial circle, circle ffinal) {
this.inicial = initial
; this.ffinal = ffinal;
    }

    public void painter(Graphics g) {
        g.setColor(Color.BLUE);
        g.setColor(color);
        g.drawLine(inicial.getX(), inicial.getY(), ffinal.getX(), ffinal.getY());
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public circulo getFfinal() {
        return ffinal;
    }

public
getInicial circle () {return
initial
}
}

Main class just creates a canvas and adds it to be shown. The Canvas class is responsible for displaying the graph, there are two lists which store the nodes and lines that have created, only to be drawn in the paintComponent method.

The class circle is the image that represents a node, also displays the node index. The online class has two nodes the initial and the final order to draw the line between these nodes.

Applet



The applet has a white background so the limit is not the applet on the page.