{"id":2746,"date":"2026-05-21T23:32:53","date_gmt":"2026-05-22T02:32:53","guid":{"rendered":"https:\/\/infodiversao.com\/?p=2746"},"modified":"2026-05-21T23:32:53","modified_gmt":"2026-05-22T02:32:53","slug":"como-adicionar-remover-dados-jtable-netbeans-java","status":"publish","type":"post","link":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/","title":{"rendered":"Adicionando e removendo dados do JTable &#8211; Netbeans"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Este conte\u00fado foi feito para ensinar de forma pr\u00e1tica como adicionar e como remover dados do componente JTable no Netbeans.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adicionando um JTable<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Inicialmente vamos considerar que voc\u00ea j\u00e1 tem um JFrame e tem dois campos com os seus componentes (JLabel e JTextField) para Nome e Idade. Agora deve ficar parecido com a imagem abaixo:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"613\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-21-1024x613.png\" alt=\"\" class=\"wp-image-2748\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-21-1024x613.png 1024w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-21-300x180.png 300w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-21-768x460.png 768w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-21.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Agora voc\u00ea vai procurar o componente Table e vai adicionar no seu formul\u00e1rio.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"698\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-22.png\" alt=\"\" class=\"wp-image-2749\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-22.png 945w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-22-300x222.png 300w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-22-768x567.png 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Inicialmente ele fica assim, com v\u00e1rias colunas e com nomes pr\u00e9 definidos. Mas isto n\u00f3s podemos mudar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"666\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-23.png\" alt=\"\" class=\"wp-image-2750\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-23.png 937w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-23-300x213.png 300w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-23-768x546.png 768w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Configurando o JTable<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Nesse momento a primeira coisa que vamos fazer \u00e9 arrumar a quantidade de colunas que queremos utilizar no nosso componente. Para isto, vamos clicar com o bot\u00e3o direito e depois em Table Contents (conte\u00fado da tabela).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"578\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-24.png\" alt=\"\" class=\"wp-image-2751\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-24.png 576w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-24-300x300.png 300w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-24-150x150.png 150w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A seguir selecione a coluna Columns:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"642\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-25.png\" alt=\"\" class=\"wp-image-2752\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-25.png 547w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-25-256x300.png 256w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Depois disso podemos configurar como a tabela vai aparecer. Na figura abaixo fica o exemplo de como vamos encontrar a configura\u00e7\u00e3o da nossa tabela. Podemos mudar cada uma das partes. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Em resumo a informa\u00e7\u00e3o TITLE \u00e9 o titulo\/nome da coluna que vai aparecer bem em cima. A segunda parte Type \u00e9 para dizer qual \u00e9 o tipo de informa\u00e7\u00e3o que vai ter a coluna. A parte Resizable \u00e9 se a coluna vai poder ser redimencionada. Se estiver marcado \u00e9 porque voc\u00ea vai permitir que a coluna seja redimensionada. A parte editable \u00e9 para configurar se a coluna vai ser editavel, se vai poder alterar os dados que tem na coluna. Se estiver marcado \u00e9 porque voc\u00ea vai permitir que as pessoas alterem a informa\u00e7\u00e3o que vai estar no componente.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"456\" height=\"579\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-26.png\" alt=\"\" class=\"wp-image-2753\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-26.png 456w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-26-236x300.png 236w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nesse momento queremos ter apenas 2 campos, ent\u00e3o voc\u00ea pode excluir as colunas 3 e 4. Tambem aproveite para renomear os nomes das colunas para Nome e Idade. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Para remover uma coluna, basta clicar na coluna e depois no bot\u00e3o DELETE.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"600\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-27.png\" alt=\"\" class=\"wp-image-2754\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-27.png 552w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-27-276x300.png 276w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Por fim para mudar as informa\u00e7\u00f5es de cada coluna, voc\u00ea pode editar direto na coluna na parte 1 ou na parte 2 logo abaixo. Conforme destacado na imagem aqui abaixo.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"657\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-28.png\" alt=\"\" class=\"wp-image-2755\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-28.png 777w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-28-300x254.png 300w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-28-768x649.png 768w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Neste caso eu deixei como na figura abaixo:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"594\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-29.png\" alt=\"\" class=\"wp-image-2756\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-29.png 468w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-29-236x300.png 236w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Em seguida eu adicionei 2 bot\u00f5es na tela principal, um chamado Cadastrar e outro Remover.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"491\" height=\"529\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-30.png\" alt=\"\" class=\"wp-image-2757\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-30.png 491w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-30-278x300.png 278w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Cadastrando uma informa\u00e7\u00e3o na tabela<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Vamos programar o bot\u00e3o Cadastrar, para isto, agora clique 2x no bot\u00e3o cadastrar para ele criar o evento do bot\u00e3o ActionPerformed. Dessa forma ao clicar 2x no bot\u00e3o ele deve levar voc\u00ea para a parte do c\u00f3digo para programar o evento de clicar no bot\u00e3o.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"93\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-31.png\" alt=\"\" class=\"wp-image-2758\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-31.png 684w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-31-300x41.png 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Agora o que iremos fazer agora \u00e9 pegar as informa\u00e7\u00f5es que tem no JTextField1 e JTextField2 e mandar para dentro da nossa tabela.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Para isto temos que pegar o modelo da tabela , que no nosso caso o nome da tabela \u00e9 <strong>jTable1<\/strong>. Agora quando voc\u00ea usar o comando <strong>DefaultTableModel o netbeans n\u00e3o vai reconhecer porque voc\u00ea ainda n\u00e3o importou<\/strong>. Basta clicar na lampada a esquerda para abrir o menu e voc\u00ea clicar e importar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"188\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-32.png\" alt=\"\" class=\"wp-image-2759\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-32.png 698w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-32-300x81.png 300w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Neste caso vamos tambem criar 2 vari\u00e1veis e depois adicionar no nosso modelo da tabela que vai ter o nome de <strong>modelo<\/strong>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Segue abaixo o c\u00f3digo para ser colocado dentro do evento do bot\u00e3o.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n\nString nome = jTextField1.getText();\nint idade = Integer.parseInt(jTextField2.getText());\n\njTextField1.setText(\"\");\njTextField2.setText(\"\");\n\nmodelo.addRow(new Object&#91;]{\nnome,\nidade\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Quando voc\u00ea clicar no bot\u00e3o agora ele vai adicionar uma nova linha no final da tabela e vai limpar os campos dos componentes. A limpeza dos campos foi feita nos comandos <strong>JTextField1.setText(&#8220;&#8221;)<\/strong>;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"547\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-33.png\" alt=\"\" class=\"wp-image-2760\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-33.png 461w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-33-253x300.png 253w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ent\u00e3o se voc\u00ea quiser limpar todas as linhas da tabela, voc\u00ea pode usar o comando  modelo.setNumRows(0); Primeiramente adicione isto no evento de abertura do seu formul\u00e1rio. Com isso o seu programa vai iniciar sem nenhuma linha na tabela.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();<br>modelo.setNumRows(0);<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"115\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-34.png\" alt=\"\" class=\"wp-image-2761\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-34.png 664w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-34-300x52.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Removendo uma linha da tabela<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A seguir, para remover uma linha da tabela, primeiro temos que selecionar a linha desejada e depois trabalhar com a linha que foi selecionada. Para isso vamos usar o mesmo principio e iremos programar o bot\u00e3o de remover. Neste caso clique 2x no bot\u00e3o remover. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Primeiramente pegamos o modelo da tabela e depois vamos usar a fun\u00e7\u00e3o getselectedRow(); para pegar a linha selecionada. A seguir vamos colocar o n\u00famero da linha em uma vari\u00e1vel do tipo inteiro e depois vamos mandar remover a linha do modelo passando o valor da linha. Para isto, use o comando abaixo no seu bot\u00e3o de excluir.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DefaultTableModel modelo =\n(DefaultTableModel) jTable1.getModel();\n\nint linha = jTable1.getSelectedRow();\n\nif(linha != -1){\nmodelo.removeRow(linha);\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Como resultado ficou assim a parte da programa\u00e7\u00e3o do bot\u00e3o:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"181\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-35.png\" alt=\"\" class=\"wp-image-2762\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-35.png 615w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-35-300x88.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Agora para mostrar como funciona cadastrei 2 informa\u00e7\u00f5es:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"562\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-36.png\" alt=\"\" class=\"wp-image-2763\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-36.png 473w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-36-252x300.png 252w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Logo ap\u00f3s selecionando a informa\u00e7\u00e3o que est\u00e1 na primeira linha e clicando no bot\u00e3o Remover a informa\u00e7\u00e3o foi exclu\u00edda da tabela.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"576\" src=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-37.png\" alt=\"\" class=\"wp-image-2764\" srcset=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-37.png 484w, https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/image-37-252x300.png 252w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Espero que tenham gostado do tutorial, qualquer d\u00favida deixe algum coment\u00e1rio no meu canal do youtube (https:\/\/www.youtube.com\/@Infodiversao) ou deixe uma mensagem aqui embaixo do post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Este conte\u00fado foi feito para ensinar de forma pr\u00e1tica como adicionar e como remover dados do componente JTable no Netbeans. Adicionando um JTable Inicialmente vamos considerar que voc\u00ea j\u00e1 tem um JFrame e tem dois campos com os seus componentes (JLabel e JTextField) para Nome e Idade. Agora deve ficar parecido com a imagem abaixo: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2771,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[162,153],"tags":[280,283,274,277,273,282,275,154,278,264,271,272,263,279,267,281,276,268],"class_list":["post-2746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-programacao","tag-adicionar-linha-jtable","tag-cadastro-java-swing","tag-crud-java","tag-curso-tecnico-java","tag-defaulttablemodel","tag-eventos-java-swing","tag-interface-grafica-java","tag-java","tag-java-para-iniciantes","tag-java-swing","tag-jtable","tag-jtextfield","tag-netbeans","tag-netbeans-tutorial","tag-programacao-java","tag-remover-linha-jtable","tag-tabela-java","tag-tutorial-netbeans"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Como Adicionar e Remover Dados no JTable no NetBeans<\/title>\n<meta name=\"description\" content=\"Aprenda como adicionar e remover dados de um JTable no NetBeans usando Java Swing. Tutorial com JTextField, DefaultTableModel e de bot\u00f5es.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como Adicionar e Remover Dados no JTable no NetBeans\" \/>\n<meta property=\"og:description\" content=\"Aprenda como adicionar e remover dados de um JTable no NetBeans usando Java Swing. Tutorial com JTextField, DefaultTableModel e de bot\u00f5es.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/\" \/>\n<meta property=\"og:site_name\" content=\"Infodiversao\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Infodiversao\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-22T02:32:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Infodiversao\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Infodiversao\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/\"},\"author\":{\"name\":\"Infodiversao\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#\\\/schema\\\/person\\\/28990c95b17bc578ca4b44c47cafa7d5\"},\"headline\":\"Adicionando e removendo dados do JTable &#8211; Netbeans\",\"datePublished\":\"2026-05-22T02:32:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/\"},\"wordCount\":803,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/infodiversao.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg\",\"keywords\":[\"adicionar linha jtable\",\"cadastro java swing~\",\"crud java\",\"curso tecnico java\",\"defaulttablemodel\",\"eventos java swing\",\"interface grafica java\",\"java\",\"java para iniciantes\",\"Java Swing\",\"jtable\",\"jtextfield\",\"NetBeans\",\"netbeans tutorial\",\"programa\u00e7\u00e3o Java\",\"remover linha jtable\",\"tabela java\",\"tutorial NetBeans\"],\"articleSection\":[\"Java\",\"Programa\u00e7\u00e3o\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/\",\"url\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/\",\"name\":\"Como Adicionar e Remover Dados no JTable no NetBeans\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/infodiversao.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg\",\"datePublished\":\"2026-05-22T02:32:53+00:00\",\"description\":\"Aprenda como adicionar e remover dados de um JTable no NetBeans usando Java Swing. Tutorial com JTextField, DefaultTableModel e de bot\u00f5es.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/#primaryimage\",\"url\":\"https:\\\/\\\/infodiversao.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg\",\"contentUrl\":\"https:\\\/\\\/infodiversao.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg\",\"width\":1280,\"height\":720,\"caption\":\"Imagem post Jtable\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/2026\\\/05\\\/21\\\/como-adicionar-remover-dados-jtable-netbeans-java\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\\\/\\\/infodiversao.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adicionando e removendo dados do JTable &#8211; Netbeans\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#website\",\"url\":\"https:\\\/\\\/infodiversao.com\\\/\",\"name\":\"Infodiversao\",\"description\":\"Site voltado a not\u00edcias, guias, tutoriais e muita divers\u00e3o.\",\"publisher\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/infodiversao.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#organization\",\"name\":\"Infodiversao\",\"url\":\"https:\\\/\\\/infodiversao.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/infodiversao.com\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/logo_infodiversao.png\",\"contentUrl\":\"https:\\\/\\\/infodiversao.com\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/logo_infodiversao.png\",\"width\":1369,\"height\":1428,\"caption\":\"Infodiversao\"},\"image\":{\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Infodiversao\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/infodiversao.com\\\/#\\\/schema\\\/person\\\/28990c95b17bc578ca4b44c47cafa7d5\",\"name\":\"Infodiversao\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d273e79c26cc7a805f8cbd576dfa758f30912af0d50c6cdc0df5587aa5f37d53?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d273e79c26cc7a805f8cbd576dfa758f30912af0d50c6cdc0df5587aa5f37d53?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d273e79c26cc7a805f8cbd576dfa758f30912af0d50c6cdc0df5587aa5f37d53?s=96&d=mm&r=g\",\"caption\":\"Infodiversao\"},\"description\":\"Adoro tecnologia e informa\u00e7\u00e3o. Gosto de jogos eletr\u00f4nicos e de esportes. Desejo que todos tenham uma \u00f3tima vida!\",\"sameAs\":[\"https:\\\/\\\/infodiversao.com\"],\"url\":\"https:\\\/\\\/infodiversao.com\\\/index.php\\\/author\\\/miguel\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como Adicionar e Remover Dados no JTable no NetBeans","description":"Aprenda como adicionar e remover dados de um JTable no NetBeans usando Java Swing. Tutorial com JTextField, DefaultTableModel e de bot\u00f5es.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/","og_locale":"pt_BR","og_type":"article","og_title":"Como Adicionar e Remover Dados no JTable no NetBeans","og_description":"Aprenda como adicionar e remover dados de um JTable no NetBeans usando Java Swing. Tutorial com JTextField, DefaultTableModel e de bot\u00f5es.","og_url":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/","og_site_name":"Infodiversao","article_publisher":"https:\/\/www.facebook.com\/Infodiversao","article_published_time":"2026-05-22T02:32:53+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg","type":"image\/jpeg"}],"author":"Infodiversao","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Infodiversao","Est. tempo de leitura":"8 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/#article","isPartOf":{"@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/"},"author":{"name":"Infodiversao","@id":"https:\/\/infodiversao.com\/#\/schema\/person\/28990c95b17bc578ca4b44c47cafa7d5"},"headline":"Adicionando e removendo dados do JTable &#8211; Netbeans","datePublished":"2026-05-22T02:32:53+00:00","mainEntityOfPage":{"@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/"},"wordCount":803,"commentCount":0,"publisher":{"@id":"https:\/\/infodiversao.com\/#organization"},"image":{"@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/#primaryimage"},"thumbnailUrl":"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg","keywords":["adicionar linha jtable","cadastro java swing~","crud java","curso tecnico java","defaulttablemodel","eventos java swing","interface grafica java","java","java para iniciantes","Java Swing","jtable","jtextfield","NetBeans","netbeans tutorial","programa\u00e7\u00e3o Java","remover linha jtable","tabela java","tutorial NetBeans"],"articleSection":["Java","Programa\u00e7\u00e3o"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/","url":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/","name":"Como Adicionar e Remover Dados no JTable no NetBeans","isPartOf":{"@id":"https:\/\/infodiversao.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/#primaryimage"},"image":{"@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/#primaryimage"},"thumbnailUrl":"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg","datePublished":"2026-05-22T02:32:53+00:00","description":"Aprenda como adicionar e remover dados de um JTable no NetBeans usando Java Swing. Tutorial com JTextField, DefaultTableModel e de bot\u00f5es.","breadcrumb":{"@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/#primaryimage","url":"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg","contentUrl":"https:\/\/infodiversao.com\/wp-content\/uploads\/2026\/05\/ChatGPT-Image-21-de-mai.-de-2026-23_27_53.jpg","width":1280,"height":720,"caption":"Imagem post Jtable"},{"@type":"BreadcrumbList","@id":"https:\/\/infodiversao.com\/index.php\/2026\/05\/21\/como-adicionar-remover-dados-jtable-netbeans-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/infodiversao.com\/"},{"@type":"ListItem","position":2,"name":"Adicionando e removendo dados do JTable &#8211; Netbeans"}]},{"@type":"WebSite","@id":"https:\/\/infodiversao.com\/#website","url":"https:\/\/infodiversao.com\/","name":"Infodiversao","description":"Site voltado a not\u00edcias, guias, tutoriais e muita divers\u00e3o.","publisher":{"@id":"https:\/\/infodiversao.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/infodiversao.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/infodiversao.com\/#organization","name":"Infodiversao","url":"https:\/\/infodiversao.com\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/infodiversao.com\/#\/schema\/logo\/image\/","url":"https:\/\/infodiversao.com\/wp-content\/uploads\/2025\/10\/logo_infodiversao.png","contentUrl":"https:\/\/infodiversao.com\/wp-content\/uploads\/2025\/10\/logo_infodiversao.png","width":1369,"height":1428,"caption":"Infodiversao"},"image":{"@id":"https:\/\/infodiversao.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Infodiversao"]},{"@type":"Person","@id":"https:\/\/infodiversao.com\/#\/schema\/person\/28990c95b17bc578ca4b44c47cafa7d5","name":"Infodiversao","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/d273e79c26cc7a805f8cbd576dfa758f30912af0d50c6cdc0df5587aa5f37d53?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d273e79c26cc7a805f8cbd576dfa758f30912af0d50c6cdc0df5587aa5f37d53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d273e79c26cc7a805f8cbd576dfa758f30912af0d50c6cdc0df5587aa5f37d53?s=96&d=mm&r=g","caption":"Infodiversao"},"description":"Adoro tecnologia e informa\u00e7\u00e3o. Gosto de jogos eletr\u00f4nicos e de esportes. Desejo que todos tenham uma \u00f3tima vida!","sameAs":["https:\/\/infodiversao.com"],"url":"https:\/\/infodiversao.com\/index.php\/author\/miguel\/"}]}},"_links":{"self":[{"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/posts\/2746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/comments?post=2746"}],"version-history":[{"count":7,"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/posts\/2746\/revisions"}],"predecessor-version":[{"id":2773,"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/posts\/2746\/revisions\/2773"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/media\/2771"}],"wp:attachment":[{"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/media?parent=2746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/categories?post=2746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infodiversao.com\/index.php\/wp-json\/wp\/v2\/tags?post=2746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}