Stats: 3,187,707 members, 7,932,986 topics. Date: Tuesday, 27 August 2024 at 04:45 PM |
Nairaland Forum / Science/Technology / Programming / Programmers In The House, Kindly Help Me Table Like This....using Java Awt (1660 Views)
How To Print Diamond With A Frame Using Java / Who Can Solve This Problem Using Java / How To Check Your Account Balance And Make Deposit Using Java (2) (3) (4)
Programmers In The House, Kindly Help Me Table Like This....using Java Awt by Legolast: 1:47pm On Feb 18, 2018 |
I want to add a table below add button i need to do add,update and delete in java Im currently stuck in this....need to add a table down there and..... Whem i click add it should display the data on the table When i click on data on table...it should show the data on textfield so that can update. Thats the only thing. Kindly help your boy sir/ma. Thanks in advance |
Re: Programmers In The House, Kindly Help Me Table Like This....using Java Awt by Legolast: 1:50pm On Feb 18, 2018 |
I want to add a table table like this....using java awt and add button and i need to do add,update and delete in java
|
Re: Programmers In The House, Kindly Help Me Table Like This....using Java Awt by kudaisi(m): 2:24pm On Feb 18, 2018 |
Correct me if things have changed, but last I remember awt didn't have a table class. I remember having to to stack text fields to simulate tables back then. You might want to try Java swing in which case a solution can be proffered. |
Re: Programmers In The House, Kindly Help Me Table Like This....using Java Awt by Legolast: 2:56pm On Feb 18, 2018 |
kudaisi: im ok with anything but cant drag n drop fro designer, Need to code it out and All the button panel etc. |
Re: Programmers In The House, Kindly Help Me Table Like This....using Java Awt by kudaisi(m): 3:40pm On Feb 21, 2018 |
I hope its not too late, been busy with work. I was able to whip together something minimal. I hope it helps. I advise you study the code and understand how they fit together. Laying out control in Java is very flexible, the same layout can still be achieved using other types of layout managers. PS: I haven't used Swing in a while as I have been working with JavaFX as far as java is concerned, so pardon any errors (I tested the code though and it works just fine). Also the data is stored in-memory, you can create a custom table model if you want to work with a database. Cheers. You can access the code here https://ideone.com/ojzpTS incase NL messes up the code. import java.awt.*;
|
(1) (Reply)
Techgeek12 Is A Scammer And A Thief. You All Be Warned. / Facilitator/educator(coding And Robotics) / Business Startup
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 21 |