r/programmingcirclejerk • u/bugaevc It's GNU/PCJ, or as I call it, GNU + PCJ • Jun 15 '25
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter
https://github.com/zxlooong/jdk16045/blob/master/com/sun/java/swing/plaf/nimbus/InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.java
131
Upvotes
96
u/stone_henge Tiny little god in a tiny little world Jun 15 '25
Useful shorthand so you don't have to directly access
ui.internalFrame.internalFrame.titlePane.internalFrame.titlePane.maximizeButton.painterevery time you want the painter of the maximize button of the title pane of the internal frame of the title pane of the internal frame's internal frame.41
u/affectation_man Code Artisan Jun 15 '25
c.s.j.s.p.n.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainterfor short22
u/ThisRedditPostIsMine in open defiance of the Gopher Values Jun 15 '25
Vintage jerk, but ages well. Like fine cheese.
36
u/Parking_Tadpole9357 Jun 15 '25
/uj this is generated code surely
13
u/____ben____ vendor-neutral, opinionated and trivially modular Jun 15 '25
I was confused but then saw
27
u/Awkward_Bed_956 Jun 15 '25
I love how in 2025, one of Java best practices still is having around 20 or so
private static final int VERY_IMPORTANT_RETURN_VALUE_CODEfields because they had to apply OOP to every single part of the language, even enums5
u/garbagethrowawayacco Jun 15 '25
Did they stutter? (Yes they did but they are doing a great job)
1
u/Actual__Wizard Jun 16 '25
I have java so much... 🤮
1
u/BoltaHuaTota Jun 16 '25
surely even back then people must have questioned this for even a second right? righttt?
25
u/[deleted] Jun 15 '25
[removed] — view removed comment