Help Prop Logic and GUI creation

I need to create an application with a GUI that will allow me to enter a term of Propositional Logic and view the truth table for that term.  Once the term is entered, you can either request the term to be displayed with brackets where necessary, or request the truth table for that term to be shown. The application should give an error-message if the term that has been entered is not well-formed; if the term is well-formed, then the application should present either the term with brackets only where necessary, or the truth table for that term, depending on the request made.

For example, if the user enters the term:


    (a or c) implies a and b


and requests the truth table to be shown, then your application should present (something like):

    a c b | a or c implies a and b
    ----------------------------
    T T T |            T
    F T T |            F
    T F T |            T
    F F T |            T
    T T F |            F
    F T F |            F
    T F F |            F
    F F F |            T


The GUI that should implement the Model-View-Controller.
withtheskillsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jimmackCommented:
We can't do your homework for you.  When you've made a start and you have problems, come back and ask specific questions.
0
withtheskillsAuthor Commented:
Sorry I just need some advice on where to start
0
jimmackCommented:
How much do you need?  It's difficult to assess whether you have a good understanding of Java (and Swing) or not.  Since you mention MVC, this implies that you're looking for a GUI solution.

Start with a JOptionPane.showInputDialog() to get the input from the user.  There are several different versions of this method, so you'll need to decide which one to use depending on how much information you want to supply to it.

For the display of the truth table, I would probably use something like a GridLayout inside a JPanel, added to the center of a JFrame.  The GridLayout having the appropriate number of rows and columns for the table you are going to display.  If the table could be very long, add the JPanel to a JScrollPane.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.