DanielCosta Sobrinho

Greenhorn
+ Follow
since Jun 06, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by DanielCosta Sobrinho

If somebody to know of some class that collects the one certificate automatically determined site https I will be grateful...

Ats,
Daniel Sobrinho
20 years ago
Hi...
I have this...
JButton botao = new JButton("NAME");
I wanted to line up the "NAME" for the left of the button in the "NAME" for the left of the button in the hour to show the name of the button...
How I make?
20 years ago
Hi....
I have a doubt in an applet, or either, I have an applet that it has one textfield and a button to advance, wanted to catch this texfield and to pass to a page in jsp....
As it would be this communication in the applet to pass this field...
Thanks...
20 years ago
HI...
I want to place a JScrollPane in this code below, but I am not obtaining to place...
Somebody can help adding a simple JScrollPane.
public TelaMonitor()
{
//estabelece a dimens�o da tela
Dimension tamanhoTela = Toolkit.getDefaultToolkit().getScreenSize();
this.setSize(tamanhoTela);
this.setTitle("Sistema Monitor de Servi�os - Rob� Intranet Bras�lia vers�o 3.0");
this.setResizable(true);
//recursos do pacote swing
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
System.exit(0);
}
});
layout = new FlowLayout();
container = this.getContentPane();
container.setLayout(layout);
layout.setAlignment(FlowLayout.LEFT);//coloca os botoes mais a esquerda da tela
tabela = new Hashtable();
tabela1 = new Hashtable();
tempo = new Timer(1000,this);
this.montaTela();
tempo.start();
}

Thanks...
20 years ago
Hi...
I have a small window that he seems the window of the JOption.showMessageDialog, but I want to place in my small window that figure that I pass eat parameter for the JOptionPane.showMessageDialog(null, "",QUESTION_MESSAGE);
I want to place figure QUESTION_MESSAGE in mine noa window....
As I make to catch this figure and to place in my window???
20 years ago
Thank's Danna and friends, you are correct....
20 years ago
Here...
JDialog janela = new JDialog(this, botao.getText(),true);
janela.getContentPane().setLayout(null);
janela.setSize(550,150);
janela.setLocation(200,200);
janela.setResizable(false);
/** Inserir dados sobre servi�os da tela aqui */
JLabel label1 = new JLabel ("URL: "+url);
label1.setBounds(30,10,540,30);
janela.getContentPane().add(label1);
JLabel label2 = new JLabel ("TEMPO DE RESPOSTA: "+servico.getTempoResposta()+" segundos ");
label2.setBounds(30,10,540,90);
janela.getContentPane().add(label2);
janela.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
System.exit(0);
}
});
//mostra subjanela
janela.show();
20 years ago
Ocurred an error:
local variable janela is accessed from within inner class; needs to be declared finaljanela.dispose();
what is this???
20 years ago
Hi...
I have a programa that have one button, when I click in the button open a frame and into the frame have a other jbutton and I want to close my frame when I click in the button...
I tried this, but it closes my program all:
btn4.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
System.exit(0);
}
});

How I do??? to close my frame only...
20 years ago
Personal debtor I obtained to decide my problem
20 years ago
I dont know why I use VOLATILE...
Can you explain???
20 years ago
Hi...
I have a FIRSTclass that have many button in the interface, when I click in one button open a small window and into the small window I have a JLabel that set a variable, but the variable is static.
In another SECONDclass I have a THREAD that it has that to change the value of the variable, therefore inside of this SECONDclass that has the THREAD I have that adds thus:
FirstClass.VARIABLE = "this string dumb of time in time";
Well, when I make my JLabel in FIRSTclass where it has the buttons to receive:
JLabel lab = new JLable(VARIABLE);
it gives an error of IndexOfBounds being that mine variav�l is a Arrayde 66 positions;
I want that when to click in the button, to open the small window with the new value of the variable...
Somebody knows what I make?
20 years ago
Hi...
I have a simple program...
import java.awt.Container;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
public class teste extends JFrame
{
JButton botao;
public teste()
{
botao = new JButton("Dainel");
Container c = getContentPane();
c.setLayout(new FlowLayout());
c.add(botao);
}
public static void main(String[] args)
{
teste t = new teste();
t.setSize(200, 200);
t.show();
}
}
How I make it JButton not to be selected? To around take off that line of the button???
21 years ago