This is a part of my code, I\'m struggling with a Window interface I\'m working.
ID: 3833790 • Letter: T
Question
This is a part of my code, I'm struggling with a Window interface I'm working. I'm using JAVA swing for a GUI interface. I was reading online about cardlayout, gridlayouts and what not. I need help with this window, I need a panel(lack for a better word) in which I will put some figures that will be rotating, in a different panel(same frame/window) I need to add three buttons of the same size. But if I use the same gridlayout I have, the jbuttons and the objects are resized to the same dimensions, I need to figure it out how to separate the dimensions of both objects and buttons.
DrawArcs START STOP REVERSEExplanation / Answer
P.S:
You can specify the vertical and horizontal gap you want in the grid layout to adjust the dimensions using the constructor: GridLayout(int rows, int cols, int hgap, int vgap) This will help you to add buttons of your preferred size by adjusting thr gap needed. For example:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.