UI library for XNA

xWinForms is easily the most complete and actively maintained GUI system for XNA. Window System for XNA (WSX) had some good progress in the past (I was working on it for a while), and is still a decent system, though it hasn’t been maintained for over a year now. The best option is definitely to … Read more

Setting minimum size limit for a window in java swing

The documentation tells me, that this behavior is platform dependent. Especially, since the following example code works for me as desired in Windows Vista: import java.awt.Dimension; import javax.swing.JFrame; public class JFrameExample { public static void main(String[] args) { JFrame frame = new JFrame(“Hello World”); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setMinimumSize(new Dimension(100, 100)); frame.setVisible(true); } }

SVG-based text input field

There is an interesting SVG node called foreignObject, which allows you to place HTML, flash, etc within your SVG code. Try the following: <svg width=”100%” height=”500″ xmlns=”http://www.w3.org/2000/svg> <foreignObject x=”10″ y=”10″ width=”100″ height=”150″> <div xmlns=”http://www.w3.org/1999/xhtml”> <input></input> </div> </foreignObject> </svg> EDIT: added xmlns so it works for IE.

Can I add a component to a specific grid cell when a GridLayout is used?

No, you can’t add components at a specific cell. What you can do is add empty JPanel objects and hold on to references to them in an array, then add components to them in any order you want. Something like: int i = 3; int j = 4; JPanel[][] panelHolder = new JPanel[i][j]; setLayout(new GridLayout(i,j)); … Read more

State Machines and User Interface work — any examples/experience?

I’m currently working with a (proprietary) framework that lends itself well to the UI-as-state-machine paradigm, and it can definitely reduce (but not eliminate) the problems with complex and unforeseen interactions between UI elements. The main benefit is that it allows you to think at a higher level of abstraction, at a higher granularity. Instead of … Read more

Are there default icons in PyQt/PySide?

What you need is Pyside QIcon.fromTheme function. Basicaly it creates QIcon object with needed icon from current system theme. Usage: undoicon = QIcon.fromTheme(“edit-undo”) “edit undo” – name of the icon “type”https://stackoverflow.com/”function” can be found here This works on X11 systems, for MacOSX and Windows check QIcon documentation QIcon.fromTheme Edit Inserting this from the website, since … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)