Tag: Java

Chat bubble in java swing

This article will explain you "how to draw chat bubble in ┬ájava swing application?" Chat bubble is same as call-out or thought bubble. Today most of the chat application is showing conversion in this format, so this article will help you to do the same in desktop application made in java swing. Following class is … Continue reading Chat bubble in java swing

JTextField with image inside it

The final output will look like following: I applied same logic as one will do with css if it was meant for website. Just 2 simple steps: Draw the image as background in text box. Set margin of image width for text inside text box. For the first step one have to override painComponent method … Continue reading JTextField with image inside it