Sunday, December 9, 2007
Sunday, November 25, 2007
Pinky Toe Swollen And Red And Itchy And Numb
Sundays are days of reflection. I always take a few minutes before getting out of bed to reflect on what happened in the week. I hardly work leaves time to think about things other than the program. But still, I can not help my addictive introspection.
those moments that start usually smiles and I get out of bed with a jump, with woman's face. Top missing whom fate took care of away, and after the first cigarette of the day, I wonder how his days elapse, and run after their duties. I remember things lived, what they learned on the road. But I can not think like pray for things to happen. Then I jump up and see that's what Sunday brings to me. And while a bit of my apartment accommodation in the week I think.
This week brought too many emotions, and moments of decision, have influenced and have influenced me, I faced branches. At times I feel like I get out of control, I can not find the way and that freedom becomes license and reckless courage. And I feel bad about it. But a friend who hardly know, these types of lenses and goodness in the skin, candid, and full of wisdom gives the sensitivity of heart, he dared to speak to the ear and tell me something that is easier to hear and think when it comes from someone you do not know.
- Do not look to be in balance, you'll never be! "I said yelling in your ear so you can listen to loud music though.
- You will always live in chaos, the endless search, your nature is that and you should accept it. - And then walked a few steps to see how they react. My eyes seek the ground reflection.
- Congratulations for the decision you made! In the long run, the better.
I'll take your words, I say goodbye a week in the hope of having taken a step towards my welfare and nostalgia for the doors locked behind me. Let
having on Monday for me.
Thursday, November 8, 2007
Milena Velba In Rollercoaster
Much has happened since I last wrote. My world became head a few times, just as I like to me.
work one morning I call my door, with the help of Gonzalo, encouraged by a compensation plan, to apply for the position by my programmer at EDS Córdoba. A few hours later they called me for a job interview. The truth is that it was my first interview. Because in my previous work ever I had interviewed. From panties white dress shirt and wing, I present to play around with some test of logic and transversal thinking, Java code, and my English is something dusty. A few days later they called me with the news that he had been selected so as I'm getting my first paycheck and I'm a guy EDS Security card and everything.
I wake up every morning at seven o'clock, to select the clothes I'm going to get, take a shower and to head to the bus stop that will take me to the company. Here I am with Joshua and Melanie, both my English teacher with whom spend about five hours a day speaking in English. Joshua a Yankee great fun, and that is beginning to change my way of thinking of the misnamed Americans about their cultural level. And Melanie, his candid girlfriend, which traveled halfway around the world teaching English. He does not speak any English, but his jokes in English are killing me with laughter every day. She has a better English than me. Besides them, at the stop, the Lorraine, a co-worker, who always arrives on time British, and who could say that I should I stay in the company, which is what motivates me when my dog \u200b\u200bhumor denies . Serves me coffee when I get to the company and still I have the sheets stuck to the eye.
On the other hand, we met interesting people, and they have taught me a little more, people like Paul and his sax, which on a night of hard drinking showed me that not all young (I'm young, but what is more) accepted without resistance when things are wrong. Buenos Aires police, but adopted by the rioja. If you have a sentry on the block to her house will recognize, blond and blue eyes, lay a hand on the truth that their way of thinking I was surprised to brief his age.
And of course I can not forget to Kari, with which we passed tangentially through life, but which I take my best memories, taught me that I have to be a little more tidy, I have to try to dance anything, so I'm about to enroll in classes of tango to revive an old dream I had. I just got a lot of words kept tumbling around for a while in my mind, and I get up in his arms to show the world of art, moonlit nights.
today is how I can go to sleep with a smile on my lips. Because even though I'm alone, my heart is full of all the people I love, I feel totally happy, I can tell the world that I am prepared to show a task again, the place is full and the audience applauds, release the bull will see my better half veronica.
Thursday, September 6, 2007
Cubase 5 κατεβάστε
To Nai and Eve
Back to review some basics about windows in java. Three types of sales are more used in Java Swing as far as respect.
The JFrames ordinary. What are those sales that are created in the taskbar if you use Windows.
JDialog windows that are usually modal, in which to respond before continuing with the other windows. Examples of dialogues, those windows where we are prompted to insert the location where you want to save a file.
JInternalFrame : This is a particular class of windows. Which are embedded in a parent window, which acts as a desktop. Currently most desktop applications, follow this format. These windows can be minimized and expanded within the parent window.
In this short tutorial we will see the JInternalFrame.
Creating a JInternalFrame
The parent window will be an ordinary frame.
FramePadre public class extends JFrame implements ActionListener {
JDesktopPane desktop = new Desktop ();// Working JDesktopPane
JMenuBar bar = new JMenuBar (); / /
menu bar JMenu menu = new JMenu ("File");
itemInterna = new JMenuItem JMenuItem ("Internal Frame ");
itemSalir = new JMenuItem JMenuItem (" Exit ");
public FramePadre () {
this.setDefaultCloseOperation (JFrame.DO_NOTHING_ON_CLOSE)
... ...}}
As shown extends JFrame and implements ActionListener interface to capture events from a menu bar to enter them. In this tutorial will not develop and create a menu bar, then my policy is to address each item separately, later I realize, but if you show you the code to accomplish it.
Furthermore we can see how we declare a variable rate JDesktopPane desktop, this will allow us to assign a work surface that delimits the internalFrames.
Within the constructor of the class can call a method that we created to manage the creation of the graphical user interface, or directly put the following code.
Toolkit.getDefaultToolkit Dimension size = (). GetScreenSize ();// this.getContentPane
display (). SetLayout (null);
this.setBounds (0.0, tamaño.width, tamaño.height -30);
this.setTitle ("Sample Desktop");
this.itemInterna.addActionListener (this) / / to capture the event in item
this.itemSalir.addActionListener (this) / / idem
previous menu . add (this.itemInterna) / / the menu item we add
menu.add (this.itemSalir) / / idem
this.barra.add previous (menu) / / to add the menu bar will
this.setJMenuBar (bar) / / the frame we add the bar.
escritorio.setBackground (new Color (251,255,235 ));// a p colorcito
this.setContentPane desktop (desktop) / / add the desktop to the frame
Once done with this, we only create the method remains capture that the user click on each item of the menu. Thus we declare the method actionPerformed, imposed by the ActionListener interface, and indicated that to make each user events.
public void actionPerformed (ActionEvent e) {
if (e.getSource () == this.itemSalir) {
this.salir ();}
if (e.getSource () == this.itemInterna) { FrameInterno
inner = new FrameInterno ("Internal Frame Example");
escritorio.add (internal) / / add the frame to the desktop try {
interno.setSelected (true) / / say we start Focused
} catch ( PropertyVetoException e) {}}
}
As we see in the event that the user clicks on the menu is instantiated itemInterna a internalFrame and then adds it to the desktop. Finally we say that is initialized focused and caught the exception.
Step 2 Create an Internal Frame
FrameInterno public class extends JInternalFrame implements ActionListener {
... / / Swing components , buttons, label etc. public
FrameInterno (String title) {
super (title,
true, / / \u200b\u200bresize
true, / / \u200b\u200bclose
true, / / \u200b\u200bmaximize
true) / / try {
minimize interfazGrafica () ;
this.setVisible (true);
} catch (Exception e) {}}
} As we can define the buttons that will hold the frame in the upper right corner. This we define passing as arguments to the super class Boolean values \u200b\u200bif we allow that. interfazGrafica Then in method (), write the entire interface could be:
private void
interfazGrafica () throws Exception {
this.getContentPane (). SetLayout (null);
this.setSize (new Dimension ( 311, 347));
btn_cerrar.setText ("Close");
btn_cerrar.setBounds (new Rectangle (180, 270, 110, 30));
jLabel1.setText ("This is an internal frame");
jLabel1 . setBounds (new Rectangle (30, 65, 255, 35));
jLabel1.setFont (new Font ("Dialog", 1, 20));
jLabel1.setForeground (Color.blue)
this.btn_cerrar.addActionListener (this);
this.getContentPane (). add (jLabel1, null);
this.getContentPane (). add (btn_cerrar, null);}
And finally we need to make visible the frame with setVisible
Finally we define the method which requires us
interface ActionListener public void actionPerformed (ActionEvent e) {
if (e.getSource () == this.btn_cerrar) {
this.setVisible (false);
}}
With this we have a basic frame from which we can begin to play and add components such as buttons and label or anything else that comes to mind.
not stop watching it is good that when minimizing a internalFrame! Greetings
Monday, September 3, 2007
Vollyball Slogans Water
JOptionPane class is a class that inherits from JComponent. This class will allow us to create alerts or dialogs simple to apply, or display, user information.
The methods reviewed in this small tutorial will be:
- JOptionPane.showMessageDialog (...)
- JOptionPane.showConfirmDialog (....)
- JOptionPane.showInputDialog (...);
- JOptionPane.showOptionDialog (...);
method has a distinctive but all they show us a window pop up that will allow us to capture user information.
- showMessageDialog
JOptionPane. showMessageDialog (componentePadre Component, Object message, String title, int tipoDeMensaje)
We used to display information, for example a warning that we ask the user. Let's see what are the main arguments of the method.
componentePadre : it is for example the Frame from which the call. If we want we can put in null, which is more or less the same.
Message: do we want to read the dialog.
Title: the title.
tipoDeMensaje : are constants that java will tell what kind of message we want to display. According to these icons will be shown in the dialog box. The options are
- ERROR_MESSAGE
- INFORMATION_MESSAGE
- WARNING_MESSAGE
- QUESTION_MESSAGE
- PLAIN_MESSAGE
If we display a custom icon, we can add it to the final as an argument.
Example:
JOptionPane.showMessageDialog (null, "Access Denied", "Error",
JOptionPane.ERROR_MESSAGE)
- showConfirmDialog
This method serves to prompt the user for confirmation. For example, a departure confirmation system
Int response = JOptionPane. showMessageDialog (componentePadre Component, Object message, String title, int tipoDeOpcion)
Above is the short version of the method's arguments. The long version includes the type of message and the icon, if we want to customize.
The arguments are identical to the previous method. Except for the type of option, which is another constant and values \u200b\u200bcan be:
- DEFAULT_OPTION
- YES_NO_OPTION
- YES_NO_CANCEL_OPTION
- OK_CANCEL_OPTION
As we see the method returns an integer that will allow us to grasp what is the option chosen by the user. The values \u200b\u200bwill 0 to If , 1 to No, 2 to Cancel and -1 for closing window . So we ask what is the return value and take the action we want. Example
int i = JOptionPane.showConfirmDialog (this, "Really Quit Swing Hello?", "Confirm Exit", JOptionPane.YES_NO_OPTION)
if (i = = 0) {
System.exit (0);
}
- showInputDialog
This method gives us a window where you can insert a String. For example when we want the user to insert his name. The short version of the method is
JOptionPane.showInputDialog String response = (Object message)
This method returns a String so that it can use later. The long version of the arguments of the method is similar to previous ones.
Example:
JOptionPane.showInputDialog String name = ("Insert your Name");
this.lbl_nombre.setText (name);
We can also create a dialog box containing a combo with the default options you want to give to the user. Ahem
:
Object [] valoresPocibles = {"Pedro", "John", "Carlos"};
JOptionPane.showInputDialog Object head = (null,
"Select which is his immediate boss, "" Select Boss "
JOptionPane. QUESTION_MESSAGE, null,
valoresPocibles, valoresPocibles [0]);
this.lbl_jefe.setText ((String) chief);
The array of possible values \u200b\u200bin a combo shows which will be the leaders who can show you. The last argument of the shows which will be selected by default
showOptionDialog
With this method we can create dialog boxes with custom buttons. Is good to give a personal touch to the dialog boxes
The method has the form: Int
JOptionPane.showOptionDialog res = ( componentePadre Component, Object message, String title, int tipoDeOpcion, tipoMensaje int, Icon icon, Object [] keys, Object botonDefault )
Here all the rest varies with the array of buttons that we have, we must emphasize that we do not have to buttons, we just have to put the text which will be released in the.
Object [] keys = {"If you give will be good," "No? ... Boo"};
JOptionPane.showOptionDialog int i = (null, "You want to go dancing This Night "," Sita "
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, buttons, buttons [0]);
System.out.println (i);
Then we take the response as it did with the confirmDialog .
Well until next time, this is the most important messages or alerts.