coperando

u/coperando





r/Pitt•

...so everyone is just scanning their ID when entering buildings and it's working perfectly for them. Mine doesn't do anything at all? I end up walking in anyways because I have to get to class.

i am fully vaccinated btw

510


r/javahelp•

Hi,

I'm trying to learn how to make GUIs with swing, and I wanted to know if there is a proper way to partition the code.

For example, I want to make a menu bar similar to Microsoft Word's menu bar, where there are different sections such as Font, Paragraph, Clipboard, etc, which each have several buttons: https://i.imgur.com/p9uNaSZ.png

Should I have one large class file where I construct all the panels and buttons, then a large class that implements ActionListener, or should I partition it like this:

public class MainFrame extends JFrame { this.add(all of the panels) }

class ClipboardPanel extends JPanel { add buttons here }

class FontPanel extends JPanel { add buttons here }

class

12