Search in sources :

Example 1 with LoboLabel

use of com.jtattoo.plaf.lobo.LoboLabel in project LoboEvolution by LoboEvolution.

the class AddBookmarkWindow method createAndShowGUI.

private void createAndShowGUI(String uri) {
    final MatteBorder border = new MatteBorder(0, 0, 1, 0, foreground());
    final Container contentPane = getContentPane();
    contentPane.setLayout(null);
    setResizable(false);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    setBounds(100, 100, 370, 440);
    final ImageIcon ico = new ImageIcon(getClass().getResource("/org/lobo/image/bookmark.png"));
    setIconImage(ico.getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));
    LoboPanel panel = new LoboPanel();
    panel.setLayout(null);
    panel.setBounds(0, 0, 350, 400);
    contentPane.add(panel);
    LoboLabel lblEditionDeCompte = new LoboLabel("Add Bookmark");
    lblEditionDeCompte.setHorizontalAlignment(SwingConstants.CENTER);
    lblEditionDeCompte.setFont(new Font("Tahoma", Font.BOLD, 17));
    lblEditionDeCompte.setBounds(0, 0, 167, 22);
    panel.add(lblEditionDeCompte);
    LoboLabel lbldescriptionField = new LoboLabel("Description");
    lbldescriptionField.setFont(new Font("Tahoma", Font.BOLD, 14));
    lbldescriptionField.setBounds(12, 70, 282, 16);
    panel.add(lbldescriptionField);
    descriptionField = new LoboTextField();
    descriptionField.setFont(new Font("Tahoma", Font.BOLD, 12));
    descriptionField.setColumns(10);
    descriptionField.setBorder(border);
    descriptionField.setBounds(12, 98, 350, 16);
    panel.add(descriptionField);
    LoboLabel lbltitleField = new LoboLabel("Title");
    lbltitleField.setFont(new Font("Tahoma", Font.BOLD, 14));
    lbltitleField.setBounds(12, 139, 282, 16);
    panel.add(lbltitleField);
    titleField = new LoboTextField();
    titleField.setFont(new Font("Tahoma", Font.BOLD, 12));
    titleField.setColumns(10);
    titleField.setBorder(border);
    titleField.setBounds(12, 167, 350, 16);
    panel.add(titleField);
    LoboLabel lblMotDePasse_1 = new LoboLabel("Tags");
    lblMotDePasse_1.setFont(new Font("Tahoma", Font.BOLD, 14));
    lblMotDePasse_1.setBounds(12, 208, 282, 16);
    panel.add(lblMotDePasse_1);
    tagsField = new LoboTextField();
    tagsField.setFont(new Font("Tahoma", Font.BOLD, 12));
    tagsField.setColumns(10);
    tagsField.setBorder(border);
    tagsField.setBounds(12, 236, 350, 16);
    panel.add(tagsField);
    LoboLabel lblurlField_1 = new LoboLabel("Url");
    lblurlField_1.setFont(new Font("Tahoma", Font.BOLD, 14));
    lblurlField_1.setBounds(12, 277, 282, 16);
    panel.add(lblurlField_1);
    urlField = new LoboTextField();
    urlField.setFont(new Font("Tahoma", Font.BOLD, 12));
    urlField.setColumns(10);
    urlField.setBorder(border);
    urlField.setText(uri);
    urlField.setBounds(12, 300, 350, 16);
    panel.add(urlField);
    LoboButton okButton = new LoboButton();
    okButton.setText("Save");
    okButton.setBounds(12, 356, 150, 40);
    okButton.setActionCommand("save");
    okButton.addActionListener(this);
    panel.add(okButton);
    LoboButton closeButton = new LoboButton();
    closeButton.setText("Close");
    closeButton.setActionCommand("close");
    closeButton.addActionListener(this);
    closeButton.setBounds(180, 356, 150, 40);
    panel.add(closeButton);
}
Also used : ImageIcon(javax.swing.ImageIcon) LoboPanel(com.jtattoo.plaf.lobo.LoboPanel) MatteBorder(javax.swing.border.MatteBorder) Container(java.awt.Container) LoboButton(com.jtattoo.plaf.lobo.LoboButton) LoboLabel(com.jtattoo.plaf.lobo.LoboLabel) LoboTextField(com.jtattoo.plaf.lobo.LoboTextField) Font(java.awt.Font)

Example 2 with LoboLabel

use of com.jtattoo.plaf.lobo.LoboLabel in project LoboEvolution by LoboEvolution.

the class ShowBookmarksWindow method listBookmarks.

private void listBookmarks(BrowserFrame frame, Container contentPane) {
    LoboSeparator separator_7 = new LoboSeparator();
    separator_7.setBounds(0, 98, 550, 12);
    contentPane.add(separator_7);
    LoboPanel panel = new LoboPanel();
    panel.setLayout(null);
    panel.setBounds(0, 40, 650, 50);
    contentPane.add(panel);
    LoboLabel description = new LoboLabel("Description");
    description.setFont(new Font("Tahoma", Font.BOLD, 14));
    description.setBounds(30, 18, 211, 16);
    panel.add(description);
    LoboLabel title = new LoboLabel("Title");
    title.setFont(new Font("Tahoma", Font.BOLD, 14));
    title.setBounds(200, 18, 150, 17);
    panel.add(title);
    LoboLabel action = new LoboLabel("Action");
    action.setFont(new Font("Tahoma", Font.BOLD, 14));
    action.setBounds(400, 18, 160, 17);
    panel.add(action);
    LoboPanel panelGeneralViewAllItems = new LoboPanel();
    panelGeneralViewAllItems.setBounds(10, 100, 530, 313);
    JScrollPane spViewallItems = new JScrollPane();
    spViewallItems.setBorder(null);
    spViewallItems.setViewportView(createItemPanel(frame));
    panelGeneralViewAllItems.setLayout(new BorderLayout());
    panelGeneralViewAllItems.add(spViewallItems, BorderLayout.CENTER);
    contentPane.add(panelGeneralViewAllItems);
}
Also used : JScrollPane(javax.swing.JScrollPane) LoboPanel(com.jtattoo.plaf.lobo.LoboPanel) BorderLayout(java.awt.BorderLayout) LoboLabel(com.jtattoo.plaf.lobo.LoboLabel) LoboSeparator(com.jtattoo.plaf.lobo.LoboSeparator) Font(java.awt.Font)

Example 3 with LoboLabel

use of com.jtattoo.plaf.lobo.LoboLabel in project LoboEvolution by LoboEvolution.

the class ShowPasswordWindow method listPassword.

private void listPassword(BrowserFrame frame, Container contentPane) {
    LoboSeparator separator_7 = new LoboSeparator();
    separator_7.setBounds(0, 98, 510, 12);
    contentPane.add(separator_7);
    LoboPanel panel = new LoboPanel();
    panel.setLayout(null);
    panel.setBounds(0, 40, 510, 50);
    contentPane.add(panel);
    LoboLabel description = new LoboLabel("Type");
    description.setFont(new Font("Tahoma", Font.BOLD, 14));
    description.setBounds(30, 18, 211, 16);
    panel.add(description);
    LoboLabel title = new LoboLabel("Value");
    title.setFont(new Font("Tahoma", Font.BOLD, 14));
    title.setBounds(200, 18, 150, 17);
    panel.add(title);
    LoboLabel action = new LoboLabel("Action");
    action.setFont(new Font("Tahoma", Font.BOLD, 14));
    action.setBounds(400, 18, 160, 17);
    panel.add(action);
    LoboPanel panelGeneralViewAllItems = new LoboPanel();
    panelGeneralViewAllItems.setBounds(10, 100, 500, 313);
    JScrollPane spViewallItems = new JScrollPane();
    spViewallItems.setBorder(null);
    spViewallItems.setViewportView(createItemPanel(frame));
    panelGeneralViewAllItems.setLayout(new BorderLayout());
    panelGeneralViewAllItems.add(spViewallItems, BorderLayout.CENTER);
    contentPane.add(panelGeneralViewAllItems);
}
Also used : JScrollPane(javax.swing.JScrollPane) LoboPanel(com.jtattoo.plaf.lobo.LoboPanel) BorderLayout(java.awt.BorderLayout) LoboLabel(com.jtattoo.plaf.lobo.LoboLabel) LoboSeparator(com.jtattoo.plaf.lobo.LoboSeparator) Font(java.awt.Font)

Example 4 with LoboLabel

use of com.jtattoo.plaf.lobo.LoboLabel in project LoboEvolution by LoboEvolution.

the class ShowPasswordWindow method createAndShowGUI.

private void createAndShowGUI(BrowserFrame frame, Integer num) {
    final Container contentPane = getContentPane();
    contentPane.setLayout(null);
    contentPane.setBackground(background());
    setResizable(false);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    setBounds(100, 100, 900, 410);
    final ImageIcon ico = new ImageIcon(getClass().getResource("/org/lobo/image/bookmark.png"));
    setIconImage(ico.getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));
    LoboLabel label_6 = new LoboLabel("");
    label_6.setOpaque(true);
    label_6.setBounds(0, 11, 792, 8);
    contentPane.add(label_6);
    LoboLabel label_1 = new LoboLabel("");
    label_1.setOpaque(true);
    label_1.setBounds(797, 11, 403, 9);
    contentPane.add(label_1);
    listPassword(frame, contentPane);
    savePassword(frame, contentPane);
}
Also used : ImageIcon(javax.swing.ImageIcon) Container(java.awt.Container) LoboLabel(com.jtattoo.plaf.lobo.LoboLabel)

Example 5 with LoboLabel

use of com.jtattoo.plaf.lobo.LoboLabel in project LoboEvolution by LoboEvolution.

the class ShowPasswordWindow method savePassword.

private void savePassword(BrowserFrame frame, Container contentPane) {
    LoboPanel panel2 = new LoboPanel();
    panel2.setLayout(null);
    panel2.setBounds(510, 40, 403, 436);
    contentPane.add(panel2);
    LoboSeparator separator_2 = new LoboSeparator();
    separator_2.setBounds(0, 58, 403, 12);
    panel2.add(separator_2);
    LoboLabel editPassword = new LoboLabel("Password");
    editPassword.setHorizontalAlignment(SwingConstants.CENTER);
    editPassword.setFont(new Font("Tahoma", Font.BOLD, 17));
    editPassword.setBounds(70, 18, 167, 22);
    panel2.add(editPassword);
    LoboLabel lblType = new LoboLabel("Type");
    lblType.setFont(new Font("Tahoma", Font.BOLD, 14));
    lblType.setBounds(12, 70, 282, 16);
    panel2.add(lblType);
    type = new LoboTextField();
    type.setFont(new Font("Tahoma", Font.BOLD, 12));
    type.setColumns(10);
    type.setBorder(null);
    type.setEditable(false);
    type.setBounds(12, 98, 350, 16);
    panel2.add(type);
    LoboSeparator separator_9 = new LoboSeparator();
    separator_9.setBounds(12, 115, 350, 12);
    panel2.add(separator_9);
    LoboLabel titleLbl = new LoboLabel("Value");
    titleLbl.setFont(new Font("Tahoma", Font.BOLD, 14));
    titleLbl.setBounds(12, 139, 282, 16);
    panel2.add(titleLbl);
    valueEditTxtFld = new LoboTextField();
    valueEditTxtFld.setFont(new Font("Tahoma", Font.BOLD, 12));
    valueEditTxtFld.setColumns(10);
    valueEditTxtFld.setBorder(null);
    valueEditTxtFld.setBounds(12, 167, 350, 16);
    panel2.add(valueEditTxtFld);
    LoboSeparator separator_10 = new LoboSeparator();
    separator_10.setBounds(12, 184, 350, 12);
    panel2.add(separator_10);
    LoboLabel url_1 = new LoboLabel("Url");
    url_1.setFont(new Font("Tahoma", Font.BOLD, 14));
    url_1.setBounds(12, 200, 282, 16);
    panel2.add(url_1);
    urlEditTxtFld = new LoboTextField();
    urlEditTxtFld.setFont(new Font("Tahoma", Font.BOLD, 12));
    urlEditTxtFld.setColumns(10);
    urlEditTxtFld.setBorder(null);
    urlEditTxtFld.setEditable(false);
    urlEditTxtFld.setBounds(12, 230, 275, 16);
    panel2.add(urlEditTxtFld);
    LoboSeparator separator_11 = new LoboSeparator();
    separator_11.setBounds(12, 250, 350, 12);
    panel2.add(separator_11);
    LoboButton okButton = new LoboButton();
    okButton.setText("Save");
    okButton.setActionCommand("okButton");
    okButton.setBounds(12, 280, 200, 40);
    okButton.addActionListener(e -> {
        InputStore.deleteInput(tmpValue, tmpUrl);
        InputStore.insertLogin(type.getText(), valueEditTxtFld.getText(), urlEditTxtFld.getText(), true);
        JOptionPane.showMessageDialog(contentPane, "Edit Ok!");
        setVisible(false);
        dispose();
        new ShowPasswordWindow(frame, 100).setVisible(true);
    });
    panel2.add(okButton);
    LoboButton closeButton = new LoboButton();
    closeButton.setText("Close");
    closeButton.setActionCommand("closeButton");
    closeButton.addActionListener(e -> {
        setVisible(false);
        dispose();
    });
    closeButton.setBounds(224, 280, 138, 40);
    panel2.add(closeButton);
}
Also used : LoboPanel(com.jtattoo.plaf.lobo.LoboPanel) LoboButton(com.jtattoo.plaf.lobo.LoboButton) LoboLabel(com.jtattoo.plaf.lobo.LoboLabel) LoboTextField(com.jtattoo.plaf.lobo.LoboTextField) LoboSeparator(com.jtattoo.plaf.lobo.LoboSeparator) Font(java.awt.Font)

Aggregations

LoboLabel (com.jtattoo.plaf.lobo.LoboLabel)14 LoboPanel (com.jtattoo.plaf.lobo.LoboPanel)10 Font (java.awt.Font)7 LoboSeparator (com.jtattoo.plaf.lobo.LoboSeparator)6 LoboButton (com.jtattoo.plaf.lobo.LoboButton)5 LoboTextField (com.jtattoo.plaf.lobo.LoboTextField)4 Container (java.awt.Container)4 ImageIcon (javax.swing.ImageIcon)4 BorderLayout (java.awt.BorderLayout)3 JScrollPane (javax.swing.JScrollPane)3 Dimension (java.awt.Dimension)2 BoxLayout (javax.swing.BoxLayout)2 MatteBorder (javax.swing.border.MatteBorder)1 BookmarksStore (org.loboevolution.store.BookmarksStore)1 NavigationStore (org.loboevolution.store.NavigationStore)1