Render « JList « Java Swing Q&A





1. JList: Rendering of list    coderanch.com

2. Custom JList Rendering    coderanch.com

/** * */ package com.sgcib.agora.gui.economic.gpv.view; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import javax.swing.BorderFactory; import javax.swing.DefaultListModel; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JList; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.ScrollPaneConstants; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import lib.reference.AgrSourceMgr; import lib.reference.BdrFolderMgr; import com.sgcib.agora.framework.biz.AgoraBIZServiceFactory; import com.sgcib.agora.share.common.bond.dto.ISecurityDTO; import com.sgcib.agora.share.common.folder.dto.IFolderDTO; import com.sgcib.agora.share.common.product.dto.IInstrumentDTO; import com.sgcib.agora.share.common.product.dto.ITprDTO; import com.sgcib.agora.share.common.product.sdt.TprSD; ...