/*
* GesContrat.java
*
* Created on December 9, 2008, 5:21 PM
*/
package view.swing;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.swing.BorderFactory;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;
import javax.swing.SwingConstants;
import service.ServiceImpl;
import util.Theme;
import view.swing.model.CateComboxModel;
import com.toedter.calendar.JDateChooser;
import dao.model.Contrat;
import dao.model.Passage;
import dao.model.Spot;
/**
*
* @author alex
*/
public class SaisiSpot extends javax.swing.JPanel {
private DefaultComboBoxModel myComboxModel;
private DefaultListModel myListModel;
private List<Passage> listPassage;
/** Creates new form GesContrat */
public SaisiSpot() {
initComponents();
listPassage=new ArrayList<Passage>();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new JPanel();
jPanel2 = new JPanel();
jLabel1 = new JLabel();
jLabel2 = new JLabel();
jLabel3 = new JLabel();
cateCombox = new JComboBox();
nombreText = new JTextField();
jButton1 = new JButton();
jPanel3 = new JPanel();
jLabel4 = new JLabel();
jTextField1 = new JTextField();
jLabel5 = new JLabel();
jLabel6 = new JLabel();
themeCombox = new JComboBox();
jTextField3 = new JTextField();
jLabel7 = new JLabel();
dateChooser = new JDateChooser();
jPanel4 = new JPanel();
jScrollPane1 = new JScrollPane();
jList1 = new JList();
jButton2 = new JButton();
delPassage=new JButton("Del");
myComboxModel=new CateComboxModel();
myListModel=new DefaultListModel();
themeCombox.setModel(new DefaultComboBoxModel(new Theme().getThemes().toArray()));
jPanel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Saisir un Spot"));
jPanel2.setBorder(BorderFactory.createEtchedBorder());
jLabel1.setText("Passge :");
jLabel2.setText("Catégorie");
jLabel3.setText("Nombre");
cateCombox.setModel(myComboxModel);
jButton1.setText("Add");
jButton1.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent e) {
addPassageActionPerformed(e);
}
});
delPassage.addActionListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent e) {
delPassageActionPerformed(e);
}
});
GroupLayout jPanel2Layout = new GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(22, 22, 22)
.addComponent(jLabel1)
.addGap(32, 32, 32)
.addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(cateCombox, GroupLayout.PREFERRED_SIZE, 115, GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addGap(25, 25, 25)
.addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(nombreText, GroupLayout.PREFERRED_SIZE, 60, GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton1, GroupLayout.PREFERRED_SIZE, 59, GroupLayout.PREFERRED_SIZE)
.addComponent(delPassage, GroupLayout.PREFERRED_SIZE, 59, GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel3))
.addContainerGap(72, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jLabel3))
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(nombreText, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1)
.addComponent(jButton1)
.addComponent(delPassage)
.addComponent(cateCombox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel3.setBorder(BorderFactory.createEtchedBorder());
jLabel4.setText("Titre :");
jLabel5.setText("Theme :");
jLabel6.setText("Durée :");
jLabel7.setText("Data Min :");
GroupLayout jPanel3Layout = new GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(22, 22, 22)
.addGroup(jPanel3Layout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel6, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel7, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel5, GroupLayout.PREFERRED_SIZE, 47, Short.MAX_VALUE)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel4, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(themeCombox, GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(jTextField1, GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(jTextField3, GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(dateChooser, GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE))
.addContainerGap())
);
jPanel3Layout.linkSize(SwingConstants.HORIZONTAL, new java.awt.Component[] {jLabel4, jLabel5, jLabel6, jLabel7});
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(jTextField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, Gr
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
用xml+swing+jdbc(hsqldb)写的电视广告管理软件 客户定义好广告的具体信息,系统根据广告的时间,主题,播放次数,给出其广告的一份推荐播放时段列表,客户确定好,生产合同 管理员可以定义电视台每天的广告时段,定义广告时段的价格,以及此时段的各种约束(比如可以放何种类型的广告,何种广告可以重复放,何种主题的广告可以一起放等等),同时客户可以查看广告的播放时段。 同时系统支持一些特殊广告(比如公益广告,或者重要新闻)的发布
资源推荐
资源详情
资源评论
收起资源包目录
coo.zip_swing jdbc_合同_广告_广告管理系统_广告系统 (193个子文件)
CreerContrat.class 12KB
SaisiSpot.class 10KB
AffContrat.class 9KB
ServiceImpl.class 9KB
SaisiSpotParticulier.class 8KB
GesCategorie.class 8KB
PlageDao.class 7KB
AffPlage.class 7KB
DefPlagesUneJournee.class 7KB
TestService.class 6KB
TableSorter.class 6KB
MainFrame.class 6KB
CreeContratParticulier.class 6KB
InitContrat.class 5KB
SpotDao.class 5KB
InitDatabase.class 5KB
ContratDao.class 4KB
Theme.class 3KB
CreeContratTableModel.class 3KB
CategorieDao.class 3KB
DefPlagesUneJournee$2.class 3KB
XMLResourceBundleControl.class 3KB
DefPlagesUneJournee$1.class 2KB
Plage.class 2KB
CreerContrat$1.class 2KB
JTabbedPaneUI$TestPlafLayout.class 2KB
AffPlageTableModel.class 2KB
TableMap.class 2KB
MainFrame$1.class 2KB
MainFrame$2.class 2KB
Spot.class 2KB
Spot.class 2KB
DataBaseUtils.class 2KB
IService.class 2KB
AffPlageListModel.class 2KB
Contrat.class 2KB
ObjectRowMapper.class 1KB
DateColorTableCellRender.class 1KB
TableSorter$1.class 1KB
Plage.class 1KB
AffPlage$2.class 1KB
Journee.class 1KB
XMLResourceBundleControl$XMLResourceBundle.class 1KB
Theme$1.class 1KB
GesCategorie$1.class 1KB
DaoFactory.class 1KB
Test.class 1KB
JTabbedPaneUI.class 1KB
Passage.class 1KB
CategorieListModel.class 1KB
Test.class 1KB
Contrat.class 1KB
JTabbedPaneUI$TestPlafLayout$CloseButton.class 1KB
InitContrat$1.class 1KB
JTabbedPaneUI$TestPlafLayout$CloseButton$1.class 1KB
CateComboxModel.class 1KB
JTabbedPaneUI$TestPlafLayout$CloseButtonAction.class 1KB
ObjectFactory.class 992B
InitContratListModel.class 974B
Contrats.class 937B
Journees.class 937B
CreerContrat$2.class 903B
Categorie.class 863B
MainFrame$8.class 846B
ObjectFactory.class 843B
MainFrame$3.class 840B
MainFrame$4.class 833B
MainFrame$7.class 831B
MainFrame$6.class 829B
MainFrame$5.class 822B
AffPlage$1.class 786B
SaisiSpotParticulier$1.class 781B
TestView.class 769B
AffContrat$1.class 763B
SaisiSpot$3.class 754B
SaisiSpot$1.class 754B
AffPlage$3.class 749B
AffContrat$2.class 740B
Passage.class 736B
CreerContrat$4.class 732B
CreerContrat$3.class 730B
CreerContrat$5.class 717B
SaisiSpot$2.class 715B
MainFrame$9.class 699B
TestTheme.class 664B
BaseDao.class 580B
TestIninData.class 509B
MetieException.class 435B
RowMapper.class 311B
DAOException.class 272B
PassageDao.class 258B
.classpath 934B
contrats.dtd 453B
contrats.dtd 453B
contrats.dtd 453B
contrats.dtd 453B
journees.dtd 305B
journees.dtd 305B
journees.dtd 305B
journees.dtd 305B
共 193 条
- 1
- 2
资源评论
钱亚锋
- 粉丝: 88
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功