Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

232
Visualizações
API for using XML w/ UI & external DB calls

I am looking to find out if any API exists that can complete a task I am considering. I want to create a tool that allows a user to upload a xml file. I want that XML file to be displayed visually in a GUI. Using an API (I assume) I then want to give the user the ability to click on any tag. Once the user clicks a tag I would like for a second method to run which takes that value and runs some other methods. (The other methods include some DB calls but are not important).

I'm rather in the dark here with no idea how to accomplish this. I know how to display a XML in a java swing GUI but I am not sure how to allow a user to click on those tags AND have the values captured.

Would a API be required to do this or are there already some ways within vanilla Java that could allow it? Please give me a name of an API if you know.

Thank you.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You should be able to do that with javax.swing.JTree and javax.swing.event.TreeSelectionListener.

https://docs.oracle.com/javase/7/docs/api/javax/swing/JTree.html https://docs.oracle.com/javase/7/docs/api/javax/swing/event/TreeSelectionListener.html

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda