Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7931147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:38:14+00:00 2026-06-03T20:38:14+00:00

I have a JTable where a user can create a custom report. They can

  • 0

I have a JTable where a user can create a custom report. They can add/remove “rows” which are columns in the report.

I want to have them be able to “undo” a row deletion. Currently they can just reset the whole report back to the standard report via a button. This is OK, but there’s a lot of columns and some users are grumbling about the time they can lose if they accidentally delete a row.

I figure I can create a stack easily enough that tracks the rows deleted, so it’ll just be a “add” event that I can call on a key event listener (listen for ctrl-z, or a button perhaps). Once it’s called, it’ll just pop off the stack and add the row.

But, since I’m using the Netbeans platform anyway, I’d love to tie into the edit->undo functionality that exists there.

What are the commands, or API calls that I can make to tie into that undo functionality that exists in the platform?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:38:15+00:00Added an answer on June 3, 2026 at 8:38 pm

    You’ll need to add an action to your application (using the wizard).

    Maybe this comes handy:

    1. Related issue: http://netbeans.org/bugzilla/show_bug.cgi?id=204828
    2. Related tutorial: https://blogs.oracle.com/geertjan/entry/enabling_undo_redo_functionality_on
    3. You can also just add it as a right click menu to the table itself: JTable Right-Click popupmenu in Netbeans
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JTable called Cart where user can add products before buying them.
can anyone help me with this , I have a jtable and I want
I have a JTable which uses a custom TableModel to display a series of
I have a JTable which has certain cells editable. If the user enters in
I have a JTable . I want to know which row and column are
I have a JTable inside of a JScrollPane . I am creating a custom
I have a JTable that I want to use to display some data (a
I have a JTable with two columns and both are JComboBox, for this purpose
I have a Jtable on which I called the method table1.setAutoCreateRowSorter(true); . So this
I have a JTable inside a JScrollPane. After calling my function which should populate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.