• Java AWT Drawing rectangle, line and circle

    Java AWT  Drawing rectangle, line and circle

    The java.awt libraries are set of classes provided by Java in order to draw shapes on a window. The abbreviation AWT stands for Abstract Windowing Toolkit. Today, the library has been converted into a huge set of classes which allows the user to create an entire GUI based application. The visual appearance of these classes depends on the platform on which the application runs.

    2019-08-17[Java]

    阅读更多
  • Java Swing JFileChooser example

    Java Swing  JFileChooser example

    JFileChooser is a quick and easy way to prompt the user to choose a file or a file saving location. Below are some simple examples of how to use this class.

    2019-08-17[Java]

    阅读更多
  • Java Swing JOptionPane showInputDialog example

    Java Swing  JOptionPane showInputDialog example

    This is a review of the showInputDialog() method of JOptionPane Class. With this method we can prompt the user for input while customizing our dialog window. The showConfirmDialog returns either String or Object and can be called using the following combinations of parameters:

    2019-08-17[Java]

    阅读更多
  • Java Swing JOptionPane showOptionDialog example

    Java Swing  JOptionPane showOptionDialog example

    The showOptionDialog method of JOptionPane is the Grand Unification of showConfirmDialog, showInputDialog and showMessageDialog.

    2019-08-11[Java]

    阅读更多
  • Java Swing Draw shapes dynamically example

    Java Swing  Draw shapes dynamically example

    In this article we create an application that randomly puts shapes on a JPanel. The user can choose between the different shapes our application supports as well as the amount that will be drawn. As a design decision our application can make circles and stars. You can download the example at the end of the article and experiment with more shapes, random colours, random sizes etc.

    2019-08-11[Java]

    阅读更多
  • Java Swing – Keep dialog window up

    Java Swing – Keep dialog window up

    The most common (and simple) way to implement a dialog in our application is the JOptionPane class. In this article we will discuss how to “overwrite” the default behaviour of JOptionPane that closes the dialog window when the user clicks a JOptionPane-created button.

    2019-08-11[Java]

    阅读更多
共有 6 条记录

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号