I have created design GUI using java by programmatically. I want to add some of JPanel to my JFrame (mainwindow). I set JFrame layout using BoxLayout. I am use BoxLayout because want the children resize only width. But, when I resize the mainwindow (JFrame), children width and height is resized. BoxLayout expanding all children width
I have learn about GUI programming using java this week. I have created a simple window (using JFrame) and get the default icon in titlebar is a default java icon. But, I dont like this default icon image and want to change with another image. This is a complete code how to change JFrame icon
I have created a simple button in Android and set a Text to this button. But, I get result all text in my Button become All Capitals. Solve this problem (Button Android text automatic forced to All Caps) is very simple. We can set “setTransformationMethod” to ignore automatic convert our text in Android Button become
I am learn about android programming in my free time. I am planned to create a simple alert window with a button. We can use AlertDialog class to create android alert window in Android. The sample output using this class as like picture below. I have created a simple function how to create Android alert