SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

SWING / NOTES</>↗
Swing03 Apr 2008

How do I create a multiline tool tips in Swing?

package org.kodejava.swing; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.WindowConstants; import java.awt.FlowLayout; public class MultilineToolTip { public static void main(String[] args) { JFrame frame = new JFrame("Tool Tip Demo"); frame.setSize(500, 500); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); JLabel label = new JLabel("Hover on me!"); // Setting tool tip for our Swing JLabel component using an html // formatted string s...

Wayan · 1 min read
SWING / NOTES</>↗
Swing30 Mar 2008

How do I disable/enable application tool tips?

package org.kodejava.swing; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.SwingUtilities; import javax.swing.ToolTipManager; import javax.swing.WindowConstants; import java.awt.FlowLayout; import java.awt.HeadlessException; public class DisableToolTip extends JFrame { public DisableToolTip() throws HeadlessException { initComponent(); } public static void main(String[] args) { SwingUtilities.invokeLater(() -> new DisableToolTip().setVisible(true));...

Wayan · 1 min read
SWING / NOTES</>↗
Swing28 Mar 2008

How do I set a tool tip for Swing components?

package org.kodejava.swing; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.WindowConstants; import java.awt.FlowLayout; public class ToolTipExample { public static void main(String[] args) { JFrame frame = new JFrame("Tool Tip Demo"); frame.setSize(500, 500); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); JLabel label = new JLabel("Hover on me!"); // Setting tool tip for our Swing JLabel component label.setToolTipText("My JLabel Tool...

Wayan · 1 min read
SWING / NOTES</>↗
Swing27 Mar 2008

How do I create an undecorated JFrame?

This code give you an example of how to create a frame without the title bar, and the frame icons such as maximize, minimize and close. package org.kodejava.swing; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import java.awt.BorderLayout; import java.awt.Point; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; public class UndecoratedFrame { private static Point point = new Poin...

Wayan · 2 min read
JDBC / NOTES</>↗
JDBC22 Mar 2008

How do I get system functions supported by database?

package org.kodejava.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.DatabaseMetaData; import java.sql.SQLException; public class SystemFunction { private static final String URL = "jdbc:mysql://localhost/kodejava"; private static final String USERNAME = "kodejava"; private static final String PASSWORD = "s3cr*t"; public static void main(String[] args) { try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) { Datab...

Wayan · 1 min read
JDBC / NOTES</>↗
JDBC19 Mar 2008

How do I get date time functions supported by database?

package org.kodejava.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.DatabaseMetaData; import java.sql.SQLException; public class DateTimeFunction { private static final String URL = "jdbc:mysql://localhost/kodejava"; private static final String USERNAME = "kodejava"; private static final String PASSWORD = "s3cr*t"; public static void main(String[] args) { try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) { Dat...

Wayan · 2 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.