Suggested case list:
Using timer to refresh a grid
383guest172.69.33.12125nk0uiMay 7, 2020 7:23:47 AMlinkuser model to move item to another listbox
120guest162.158.193.148d0n3krApr 2, 2020 5:28:28 AMlinkDisabled list item row passed to VM-1981
296fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:44 PMlinkDisabled list item row passed to VM-1981
295fatih123160.83.36.13025nk0uiFeb 13, 2018 4:25:16 PMlinkDisabled list item row passed to VM-1981
294fatih123160.83.36.13225nk0uiFeb 13, 2018 3:30:44 PMlinkgrid sample with ListModel/RowRenderer
816guest80.82.2.1312vah9ajFeb 21, 2017 11:42:21 AMlinkgrid sample with ListModel/RowRenderer
809guest175.98.113.1622vah9ajJan 26, 2017 9:19:33 AMlinkgrid sample with ListModel/RowRenderer
196guest79.185.142.402vah9ajApr 26, 2014 10:53:57 PMlinkgrid sample with ListModel/RowRenderer
195guest79.185.142.402vah9ajApr 26, 2014 10:53:54 PMlinkgrid sample with ListModel/RowRenderer
194guest79.185.142.402vah9ajApr 26, 2014 10:53:51 PMlinkgrid sample with ListModel/RowRenderer
193guest79.185.142.402vah9ajApr 26, 2014 10:53:48 PMlinkgrid sample with ListModel/RowRenderer
192guest79.185.142.402vah9ajApr 26, 2014 10:53:44 PMlinkgrid sample with ListModel/RowRenderer
191guest79.185.142.402vah9ajApr 26, 2014 10:53:40 PMlinkHierarchy table without using ZK PE/EE
1aaknai151.28.135.2131s871daJul 29, 2013 11:02:46 PMlinkgrid sample with ListModel/RowRenderer
128aaknai151.28.135.2132vah9ajJul 29, 2013 7:20:00 PMlinkuser model to move item to another listbox
1TonyQ114.25.109.94d0n3krApr 21, 2012 10:43:27 AMlinkUsing timer to refresh a grid
1TonyQ220.133.44.3725nk0uiFeb 17, 2012 3:17:34 AMlinkFire a event from child iframe
1TonyQ220.133.44.372eupjotFeb 3, 2012 5:04:52 AMlinkTextbox input restriction sample
1TonyQ72.21.245.2431b3nlr0Dec 20, 2011 10:09:10 AMlinkTest web core taglib in ZUL
1TonyQ198.203.175.175ofqkemDec 17, 2011 3:36:08 AMlinkLatest 10 Fiddles :
constraint binding textbox
3guest172.68.151.16220peldaDec 5, 2025 5:08:19 PMlinkAnother new ZK fiddle
2guest172.68.151.16320peldaDec 5, 2025 5:07:51 PMlinkAnother new ZK fiddle
1guest172.68.151.16220peldaDec 5, 2025 5:07:32 PMlinkAnother new ZK fiddle
1peggypeng172.71.154.99364f4neDec 5, 2025 9:24:31 AMlinktooltip example
2guest104.22.23.13rc1ntoDec 4, 2025 2:23:45 PMlinkAnother new ZK fiddle
1guest172.69.134.2277t7602Dec 4, 2025 1:40:46 PMlinkAnother new ZK fiddle
1peggypeng104.22.17.1802df6e3oDec 4, 2025 8:41:29 AMlinkonClose
1peggypeng172.68.87.248j8kd8aDec 3, 2025 4:10:26 AMlinkAnother new ZK fiddle
1peggypeng172.69.134.2271rm7f4eNov 26, 2025 3:31:24 AMlinkZK-5912-Suggestion
2rebeccalai104.22.20.1442qrmiiuNov 26, 2025 2:07:15 AMlinkAnother new ZK fiddle
2guest24.0.148.190bdtig5Jan 3, 2018 2:49:48 AMlinkresources
index.zulzul<zk>
<window border="normal" title="hello" apply="pkg$.TestComposer">
<div>Welcome to ZK Fiddle , run it right now!</div>
<button id="btn" label="Click Me To Evalute Event Binding With Composer" />
</window>
</zk>
TestComposer.javajava import java.awt.event.*;
import javax.swing.*;
import java.text.*;
public class JPIATheatreGUI extends JFrame implements ActionListener {
// declaring variables for the frames, labels, textfields, and buttons
JFrame frameWelcome;
JButton btnStart, btnHelp, btnQuit;
JLabel lblWelcome;
public JPIATheatreGUI() {
// creating the welcome frame
frameWelcome = new JFrame ("JPIA Theatre");
// creates buttons
btnStart = new JButton ("Start");
btnHelp = new JButton ("Help");
btnQuit = new JButton ("Quit");
// creates label
lblWelcome = new JLabel("Welcome to JPIA Theatre");
// set the size and layout
// null layout allows us to place items using setBounds below
setLayout(null);
setSize(400, 400);
// place button - set size of the button and location
btnStart.setBounds(150, 150, 75, 30);
btnHelp.setBounds(150, 200, 75, 30);
btnQuit.setBounds(150, 250, 75, 30);
// place label - set size of the label and location
lblWelcome.setBounds (110, 50, 300, 25);
// adding buttons
add(btnStart);
add(btnHelp);
add(btnQuit);
// adding label
add(lblWelcome);
// make buttons listen to clicks on the window
btnStart.addActionListener(this);
btnHelp.addActionListener(this);
btnQuit.addActionListener(this);
// set window visible
setVisible(true);
} // ends constructor
public void actionPerformed (ActionEvent evt){
if (evt.getSource () == btnStart){
new MovieFrame();
dispose();
}
else if (evt.getSource () == btnHelp){
new HelpFrame();
dispose();
}
else {
dispose();
}
} // ends actionperformed method
public static void main(String[] args) {
new JPIATheatreGUI();
} // ends main
} test.javajavaimport java.awt.event.*;
import javax.swing.*;
import java.text.*;
import java.io.*;
public class MovieFrame extends JFrame implements ActionListener {
// declaring variables for frame, button, label, and textfield.
JButton btnBack, btnNext, btnClear;
JLabel lblNames, lblSearch, lblSorting, lblShowtimes, lblAdult, lblChild,
lblSenior, lblSubtotal, lblTax, lblTotal;
static JTextField txtNames, txtSearch, txtAdult, txtChild, txtSenior,
txtSubtotal, txtTax, txtTotal;
JComboBox boxSorting, boxShowtimes;
public MovieFrame() {
// creates movie frame
super ("Movie Selection");
// creates buttons
btnBack = new JButton ("Back");
btnClear = new JButton ("Clear");
btnNext = new JButton ("Next");
//creates labels
lblNames = new JLabel ("Movie List");
lblSearch = new JLabel ("Search");
lblSorting = new JLabel ("Sorting");
lblShowtimes = new JLabel ("Showtimes");
lblAdult = new JLabel ("Adult (12-64)");
lblChild = new JLabel ("Child (0-12)");
lblSenior = new JLabel ("Senior (65+)");
lblSubtotal = new JLabel ("Subtotal");
lblTax = new JLabel ("Tax");
lblTotal = new JLabel ("Total");
// creates textfields
txtNames = new JTextField (/*("Star Wars")
+ ("\nDunkirk")
+ ("\nGet Out")
+ ("\nWonder Woman")
+ ("\nThor")
+ ("\nSpider-Man")
+ ("\nLogan")*/);
txtSearch = new JTextField ();
txtAdult = new JTextField ("0");
txtChild = new JTextField ("0");
txtSenior = new JTextField ("0");
txtSubtotal = new JTextField ();
txtTax = new JTextField ();
txtTotal = new JTextField ();
// creates combobox
boxSorting = new JComboBox ();
boxSorting.addItem("Name");
boxSorting.addItem("Price");
boxShowtimes = new JComboBox ();
boxShowtimes.addItem("3 PM");
boxShowtimes.addItem("6 PM");
boxShowtimes.addItem("9 PM");
// set the size and layout
// null layout allows us to place items using setBounds below
setLayout(null);
setSize(700, 550);
// place button - set size of the button and location
btnBack.setBounds(405, 470, 75, 30);
btnClear.setBounds(500, 470, 75, 30);
btnNext.setBounds(595, 470, 75, 30);
// place label - set size of the label and location
lblNames.setBounds(25, 25, 100, 15);
lblSearch.setBounds(350, 25, 100, 15);
lblSorting.setBounds(350, 90, 100, 15);
lblShowtimes.setBounds(350, 160, 100, 15);
lblAdult.setBounds(350, 225, 100, 15);
lblChild.setBounds(350, 280, 100, 15);
lblSenior.setBounds(350, 335, 100, 15);
lblSubtotal.setBounds(25, 390, 75, 15);
lblTax.setBounds(25, 425, 75, 15);
lblTotal.setBounds(25, 460, 75, 15);
// place textfield - set size of textfield and location
// setEditable(false) stops the user from editing the textfield
txtNames.setBounds(25, 50, 300, 300);
txtNames.setEditable(false);
txtSearch.setBounds(350, 45, 200, 25);
txtAdult.setBounds(350, 245, 200, 25);
txtChild.setBounds(350, 300, 200, 25);
txtSenior.setBounds(350, 355, 200, 25);
txtSubtotal.setBounds(125, 390, 100, 25);
txtSubtotal.setEditable(false);
txtTax.setBounds(125, 425, 100, 25);
txtTax.setEditable(false);
txtTotal.setBounds(125, 460, 100, 25);
txtTotal.setEditable(false);
// place combobox - set size of combobox and location
boxSorting.setBounds(350, 110, 100, 30);
boxShowtimes.setBounds(350, 180, 100, 30);
// adding buttons
add(btnBack);
add(btnClear);
add(btnNext);
// adding labels
add(lblNames);
add(lblSearch);
add(lblSorting);
add(lblShowtimes);
add(lblAdult);
add(lblChild);
add(lblSenior);
add(lblSubtotal);
add(lblTax);
add(lblTotal);
// adding textfields
add(txtNames);
add(txtSearch);
add(txtAdult);
add(txtChild);
add(txtSenior);
add(txtSubtotal);
add(txtTax);
add(txtTotal);
// adding combobox
add(boxSorting);
add(boxShowtimes);
// make buttons listen to clicks on the window
btnBack.addActionListener(this);
btnClear.addActionListener(this);
btnNext.addActionListener(this);
// set window visible
setVisible(true);
}
public void actionPerformed (ActionEvent evt){
if (evt.getSource () == btnBack){
new JPIATheatreGUI();
dispose();
}
}
public static void main(String[] args) throws IOException {
FileReader fileR = new FileReader ("movies.txt");
BufferedReader input = new BufferedReader (fileR);
String movies [] = new String [5];
double moviePrices [] = new double [5];
for (int i = 0; i < movies.length; i++){
movies [i] = input.readLine();
moviePrices [i] = Double.parseDouble(input.readLine());
}
fileR.close();
String list = "Name\tPrice\n";
list = list + "----\t-----\n";
for (int j = 0; j < movies.length; j++){
list = list + movies[j] + "\t" + moviePrices[j] +"\n";
}
txtNames.setText(list);
new MovieFrame();
} // ends main
}