All Questions

456
votes
9answers
95331 views

The Use of Multiple JFrames: Good or Bad Practice?

I'm developing an application which displays images, and plays sounds from a database. I'm trying to decide whether or not to use a separate JFrame to add images to the database from the GUI. I'm ju...
1062
votes
43answers
498464 views

How do I update the GUI from another thread in C#?

What is the simplest way to update a Label from another thread? I have a Form on thread1, and from that I'm starting another thread (thread2). While thread2 is processing some files I would like to u...
117
votes
2answers
34425 views

GUI not working after rewriting to MVC

I'm practicing MVC style programming. I have a Mastermind game in a single file, working fine (maybe apart of the fact that "Check" button is invisible at start). http://paste.pocoo.org/show/226726/ ...
4864
votes
36answers
999262 views
508
votes
10answers
230956 views

How to create RecyclerView with multiple view type?

From https://developer.android.com/preview/material/ui-widgets.html When we creating RecyclerView.Adapter we have to specify ViewHolder that will bind with that adapter. public class MyAdapter exten...
113
votes
2answers
21569 views

How to best position Swing GUIs?

In another thread I stated that I liked to center my GUIs by doing something like this: JFrame frame = new JFrame("Foo"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane()....
22
votes
2answers
46615 views

Tkinter: AttributeError: NoneType object has no attribute get

I have seen a couple of other posts on similar error message but couldn't find a solution which would fix it in my case. I dabbled a bit with TkInter and created a very simple UI. The code follows- ...
36
votes
4answers
51124 views

Creating a custom button in Java with JButton

I am trying to create a button that has a custom shape (hexagon), but otherwise acts like a normal JButton would (that is, works with an ActionListener). I have created a class that extends AbstractB...
19
votes
2answers
21478 views

Making a robust, resizable Swing Chess GUI

How would I go about making this resizable Chess GUI? Our company has been tasked with making a Chess game. It needs to work on Windows, OS X and Linux/Unix machines, and we have chosen Java to ac...
1727
votes
24answers
357748 views

What are MVP and MVC and what is the difference?

When looking beyond the RAD (drag-drop and configure) way of building user interfaces that many tools encourage you are likely to come across three design patterns called Model-View-Controller, Model-...

Previous Next