Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for VGR
| Type | On... | Excerpt | Status | Date |
|---|---|---|---|---|
| Comment | Post #292128 |
I suspect this would be solved by sealing the class. I assume you want to prevent code other than your own code from extending Parent. (more) |
— | 2 months ago |
| Comment | Post #295115 |
I have found that Wayland no longer pays attention to the _NET_WM_ICON X property on windows (the standard way for decades of assigning an icon to a window). Instead, it reads the window’s WM_CLASS property, and assumes a window’s icon is defined in the `$XDG_HOME/applications/\$WM_CLASS.desktop... (more) |
— | 3 months ago |
| Comment | Post #294813 |
Generics and arrays don’t mix well, for precisely the reasons you’ve encountered. The best solution by far is to avoid arrays and use a List instead:
List<S> createList(int n) {
List<S> list = new ArrayList<>(n);
list.addAll(Collections.nCopies(n, null));
... (more) |
— | 6 months ago |
| Comment | Post #295115 |
Enter this command in a terminal: `file /home/watchmaker/playground/I48.png` It should print `PNG image data` followed by the size and depth. If it doesn’t, the image may be in a format JavaFX does not recognize. (more) |
— | 6 months ago |
| Comment | Post #288462 |
I assume this is something you did in Eclipse? I see no mention of Eclipse in either your question or your answer. Merely mentioning “Java” does not imply Eclipse; Eclipse is not an official part of Java at all. Eclipse is merely a tool that makes use of Java. (more) |
— | over 3 years ago |
| Comment | Post #281589 |
Your getTableCellRendererComponent takes many arguments, including a column index. Can’t you just use that value to determine which font to use? (By the way, renderers are called *very* frequently. Don’t load the font from an InputStream inside a renderer! Instead, load the font *once* in you... (more) |
— | over 3 years ago |
| Edit | Post #288237 | Initial revision | — | over 3 years ago |
| Answer | — |
A: Is it worth using the Java Platform Module System in application code? If you are planning to share the application with individual users (rather than deploying it to a server), declaring your module dependencies explicitly allows jlink to create a stripped-down Java runtime in the application image (and thus in the user’s installation). Aside from that, using mo... (more) |
— | over 3 years ago |
