sábado, 8 de maio de 2010

RES: [java-br] 2 HELPS

·

 

Sorry eu não mandei o erro do primeiro item... o segundo eu já resolvi...

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
GroupLayout can only be used with one Container at a time

at javax.swing.GroupLayout.checkParent(Unknown Source)

at javax.swing.GroupLayout.invalidateLayout(Unknown Source)

at java.awt.Container.invalidate(Unknown Source)

at java.awt.Component.addNotify(Unknown Source)

at java.awt.Container.addNotify(Unknown Source)

at javax.swing.JComponent.addNotify(Unknown Source)

at java.awt.Container.addNotify(Unknown Source)

at javax.swing.JComponent.addNotify(Unknown Source)

at java.awt.Container.addNotify(Unknown Source)

at javax.swing.JComponent.addNotify(Unknown Source)

at javax.swing.JRootPane.addNotify(Unknown Source)

at java.awt.Container.addNotify(Unknown Source)

at java.awt.Window.addNotify(Unknown Source)

at java.awt.Dialog.addNotify(Unknown Source)

at java.awt.Dialog.conditionalShow(Unknown Source)

at java.awt.Dialog.show(Unknown Source)

at java.awt.Component.show(Unknown Source)

at java.awt.Component.setVisible(Unknown Source)

at java.awt.Window.setVisible(Unknown Source)

at java.awt.Dialog.setVisible(Unknown Source)

at view.FrmViewHosts.<init>(FrmViewHosts.java:35)

at
controller.ViewPrincipalController.actionPerformed(ViewPrincipalController.j
ava:35)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
GroupLayout can only be used with one Container at a time

at javax.swing.GroupLayout.checkParent(Unknown Source)

at javax.swing.GroupLayout.invalidateLayout(Unknown Source)

at java.awt.Container.invalidate(Unknown Source)

at java.awt.Component.reshape(Unknown Source)

at javax.swing.JComponent.reshape(Unknown Source)

at java.awt.Component.setBounds(Unknown Source)

at javax.swing.JRootPane$RootLayout.layoutContainer(Unknown Source)

at java.awt.Container.layout(Unknown Source)

at java.awt.Container.doLayout(Unknown Source)

at java.awt.Container.validateTree(Unknown Source)

at java.awt.Container.validateTree(Unknown Source)

at java.awt.Container.validate(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Att.,

Roger Rayner

Analista de Sistemas

TOTVS BAHIA
( 55 (71) 9616 - 6876
+ <mailto:roger.rayner@totvs.com.br> roger.rayner@totvs.com.br

http://www3.datasul.com.br/images/mkt/campanhas_web/logistica/2009/datasul.j
pg
http://www3.datasul.com.br/images/mkt/campanhas_web/logistica/2009/totvs.jpg

"A Humildade é o alicerce dos Sábios... e o Orgulho a coluna dos Débeis!!!"

(Augusto Cury)

De: java-br@yahoogrupos.com.br [mailto:java-br@yahoogrupos.com.br] Em nome
de Roger Rayner
Enviada em: sábado, 8 de maio de 2010 11:24
Para: java-br@yahoogrupos.com.br
Assunto: [java-br] 2 HELPS

E ae galera.....

1. Eu de novo com problemas com swing.... criei uma telinha beeemm
básica com 2 botoes cada botão chama uma JDialog... uma funciona a segunda
da o erro abaixo... alguém poderia me ajudar???

2. Eu estou utilizando o JFileChooser para buscar um arquivo de
configuração só que preciso pegar os dados que estão dentro do arquivo para
poder com o que está dentro dele gerar uns registros em tabelas hash. Só que
não sei como ler e ficar verificando tipo assim.... verificar se é um
determinado caracter se for guarda no primeiro registro da hash o que está
depois desse caracter de controle. Segue abaixo como fiz a seleção do
arquivo.

fc = new JFileChooser();

fc.setMultiSelectionEnabled(false);

fc.setDialogTitle("Selecione Arquivo de Configuração");

fc.setFileFilter(new FileNameExtensionFilter("TXT",
"txt"));

fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);

int res = fc.showOpenDialog(null);

if(res == JFileChooser.APPROVE_OPTION){

arquivo = fc.getSelectedFile();

frmImporta.getTxtArquivo().setText(arquivo.getPath());

}

Att.,

Roger Rayner

Analista de Sistemas

TOTVS BAHIA
( 55 (71) 9616 - 6876
+ <mailto:roger.rayner@totvs.com.br <mailto:roger.rayner%40totvs.com.br> >
roger.rayner@totvs.com.br <mailto:roger.rayner%40totvs.com.br>

http://www3.datasul.com.br/images/mkt/campanhas_web/logistica/2009/datasul.j
pg
http://www3.datasul.com.br/images/mkt/campanhas_web/logistica/2009/totvs.jpg

"A Humildade é o alicerce dos Sábios... e o Orgulho a coluna dos Débeis!!!"

(Augusto Cury)

[As partes desta mensagem que não continham texto foram removidas]

[As partes desta mensagem que não continham texto foram removidas]

__._,_.___
Atividade nos últimos dias:
Para sair da lista, envie email para: java-br-unsubscribe@yahoogroups.com
Para upload/download de arquivos: http://www.yahoogroups.com/files/java-br
Veja os imóveis mais procurados em Rio de Janeiro no Yahoo! Imóveis

Maior Classificado de Empregos na Internet. Teste por 7 dias GRÁTIS!

Homens em busca de um grande amor. E se esta pessoa for você?
.

__,_._,___

0 comentários:

Pague com LPs do Mister Colibri

Pague com LPs do Mister Colibri
Quer comprar celular,Tablet,pen drive, GPS e muito outros produtos e ainda podendo pagar tudo em LPs ?Pois saiba que isso é possível,basta você visitar o site downloadstotal.com e realizar a sua compra com toda tranquilidade e segurança!!!

Hora

Online

Arquivo do Blog