> Java > tutorials > javanotes
> Java > tutorials > javanotes
by ZweiBieren Notes on Java Java coffee cup logo

From time-to-time, I have posted various bits of advice on Java coding. Some of the more general ones I've collected here.

Getting started
What is the general form of an interactive Java program
User Interfaces
How to coordinate all the various kinds and sources of user input
Adapting a diagram or image to the size of the window; mapping between window location and the represented space
Exception Handling
How to think about reducing and processing exceptions
Color List
The thrills and travails of displaying a list of named colors.

Demo Programs

To run the demo of these various programs, download InstallJavaNotes.jar and double click it. (You must have Java installed.) The installer will unwrap itself into its current directory. Therein double click the "JavaNotes.jar" icon.

src Jdoc class Essay note
Java steaming cup doc with "J" ComboBoxRenderer.java quill in hand Demonstration of how to write a Combobox with arbitrary contents; in this case color swatched
Java steaming cup doc with "J" ZBScrollPane.java quill in hand How to control the distance scrolled by the mouse wheel and the arrows at the ends of a scrollbar
Java steaming cup doc with "J" JEditStyles.java quill in hand How to define styles and use them in a JEditPane
Java steaming cup doc with "J" SamplePanel.java quill in hand Rudimentary graphics program suitable for expansion into an app.
Java steaming cup doc with "J" MakeColorPage.java quill in hand Generate a page showing all the colors in a list.
Java steaming cup doc with "J" PCASortColors.java quill in hand Various options for sorting colors in an array or in rows.
Copyright © 2018 ZweiBieren, All rights reserved. Sep 15, 2018 14:04 GMT Page maintained by ZweiBieren