text stringlengths 3 1.18M |
|---|
package robotbuilder;
import java.awt.EventQueue;
import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.LookAndFeel;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.UnsupportedLookAndFeelExcept... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.NumberFormat;
import javax.swing.text.*;
/**
*
* @author alex
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.Abstrac... |
package robotbuilder;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class AboutDialog extends CenteredDialog {
public AboutDialog(JFrame parent, String applicationName, String description, double version) {
super(parent, appli... |
package robotbuilder;
import robotbuilder.robottree.RobotTree;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.CellEditorListener;
import javax.swing.event.ChangeEvent;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.robottree;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import javax.swing.Icon;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;
import robo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.robottree;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import robotbuilder.MainFrame;
import robotbuilder.data.RobotComponent;
/**
*
* @author... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.robottree;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.awt.event.InputEvent;
import java.... |
package robotbuilder.robottree;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.datatransfer.DataFlavor;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swi... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.robottree;
import java.awt.Component;
import java.awt.Rectangle;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Enumeration;
import java.util.LinkedList;
impo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.robottree;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JMenuItem;
import javax.swing.tree.TreePath;
import robotbuilder.MainFr... |
package robotbuilder;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.List;
import javax.swing.*;
import org.yaml.snakeyaml.Yaml;
import robotbuilder.actions.*;
/**
*
* @author brad
*/
public class ActionsClass {
static String EXPORTERS_PATH = "/export/";
AbstractAction ex... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.palette;
import java.awt.BorderLayout;
import java.awt.event.MouseEvent;
import javax.swing.JPanel;
import javax.swing.JTree;
import javax.swing.ToolTipManager;
import javax.swing.event.TreeSelectio... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.palette;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.event.InputEvent;
import java.lang.reflect.Method;
import javax.swing.Icon;
import javax.... |
package robotbuilder.palette;
import java.awt.CardLayout;
import java.io.File;
import java.io.InputStreamReader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import javax.swing.*;
import javax.swin... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.palette;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Enumeration;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder.palette;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import javax.swing.J... |
package robotbuilder;
import java.util.Deque;
import java.util.LinkedList;
/**
* A helper class used to keep track of changes to the {@link RobotTree}
* and undo or redo them as necessary.
* @author Sam
*/
public class SimpleHistory<E> {
private Deque<E> past = new LinkedList<E>();
private E present... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package robotbuilder;
import java.awt.Desktop;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Properties;
import ja... |
package robotbuilder;
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMessages;
import robotbuilder.palette.Palette;
import robotbuilder.robottree.RobotTree;
import java.awt.BorderLayout;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.s... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.DefaultCellEditor;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
i... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swi... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swi... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swin... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
im... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
@SuppressWarnings("serial")
public class Homepag... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.s... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import javax.swing.BorderFactory;
import javax.... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing... |
package UI;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JPanel;
import DBTasks.DBTask;
@SuppressWarnings("serial")
public class MainFrame extends JFrame{
private LoginPanel login;
private SearchPanel search;
private ShelterResultsPanel shelter;
private PetResultsPanel pet;
private H... |
package UI;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.sw... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.*;
/**
*
* @author Stephen
*
*/
public class CurrentYearPetAdoptions extends DBTask {
private static String createDogsInShelterViewSQL =
"CREATE OR REPLACE View Do... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class FosterHomeAssignment extends DBTask {
private static String afmSQL = "INSERT INTO Fosters "
+ "(Pet_ID, Shelter_Name, Fosterer_Name, Fosterer_Phone) "
+ "VALUES (?, ?, ?, ?)";
pu... |
package DBTasks;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
public class ShelterList extends DBTask{
private static ArrayList<String> shelters;
public static ArrayList<String> listShelters(){
Statement shelterStatement;
try {
shelterState... |
package DBTasks;
public class Summary {
private String shelterName;
private int eventCount, totalDonations, totalAdoptions, petsReceived, month;
public Summary(String shelterName, int month, int eventCount, int totalDonations, int totalAdoptions, int petsReceived) {
this.shelterName = she... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Stephen
*
*/
public class ShelterSearch extends DBTask {
private static String queryString = "SELECT * From Shelter W... |
package DBTasks;
public class Donation {
private String name;
private String email;
private String phoneNumber;
private String city;
private Integer amount;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
... |
package DBTasks;
import java.sql.*;
public class DBTask {
protected static Connection con = null;
//Call this method before any other tasks
public static void connectToDatabase() {
if (con == null) {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
public class PetInformation extends DBTask {
private static ArrayList<String> idList;
public static ArrayList<String> listPetInfo(String shelterName) {
PreparedStatement i... |
package DBTasks;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
//Just for running the DBTasks for testing purposes
/**
*
* @author Stephen
*
*/
public class TestRunner {
public static void main(String[] args) {
DBTask.connectToDatabase();
System.... |
package DBTasks;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
public class DetailedAdo... |
package DBTasks;
public class Pet {
private String petName, shelterName, phoneNumber, address, type;
private int petId;
public Pet(String shelterName, String phoneNumber, String address, int petId, String petName, String type){
this.petId = petId;
this.petName = petName;
... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
public class CurrentQuarterlyReport extends DBTask {
private static String calculateCurrentQuarterQuery = "SELECT QUARTER(NOW())";
priva... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class AddEvent extends DBTask {
private static String insertNewEventQuery = "INSERT INTO Event (Date, Location, Description, Event_Type, Sponsor_Name) values(?, ?, ?, ?, ?)";
public static boolean addEvent(String... |
package DBTasks;
/**
*
* @author Stephen
*
*/
public class AdoptionsSummary {
private int adoptedDogs;
private int newDogs;
private int shelteredDogs;
private int fosteredDogs;
private int adoptedCats;
private int newCats;
private int shelteredCats;
private int fosteredCats;
public... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
public class PetSearch extends DBTask {
private static String createDogAtShelterView = "CREATE OR REPLACE VIEW PetsAtShelters AS SELECT * From Pet "
+ "NATU... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Login extends DBTask {
public static boolean login(int empNum, String shelterName, String password){
if(con == null){
connectToDatabase();
}
... |
package DBTasks;
/**
*
* @author Stephen
*
*/
public class Shelter {
private String name;
private String address;
private String phoneNumber;
private String daysOpen;
private String hoursOpen;
public String getName() {
return name;
}
public void setName(String name) {
this.nam... |
package DBTasks;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.swing.JComboBox;
public class BreedList extends DBTask{
private static ResultSet rsDog;
private static ResultSet rsCat;
private static JComboBox catList;
private static JComboBox dogList;
@Suppres... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* @author Stephen
*
*/
public class LargestMonthlyDonatio... |
package DBTasks;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
public class FosterInformation extends DBTask{
private static ArrayList<String[]> fosterers;
public static ArrayList<String[]> listFosterInfo() {
try {
Statement nameStatement... |
package DBTasks;
public class Adoption {
private String name, phone, address, type, dateOfBirth;
private int petId;
public Adoption(String name, String phone, String address, String dateOfBirth, int petId, String type){
this.name = name;
this.phone=phone;
this.address=... |
package DBTasks;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
/**
*
* @author Stephen
*
*/
public class AddPet extends DBTask {
private static String addPetSQL = "INSERT INTO Pet (Shelter_Name, Age, Gender, Pet_Name) ... |
package constraint;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
@Constraint(validatedBy = EmailConstraintValidator.class)
@Target({... |
package constraint;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
* Quick simple check to validate the email address, just for the demo.
* Not very correct.
*
* @author mark
*
*/
public class EmailConstraintValidator implements ConstraintValidator<Email, S... |
package ejb;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import entities.User;
@Stateless
public class UserDAO {
@PersistenceContext(unitName = "first_test")
private EntityManager entityManager;
public void save(User u... |
package backing;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import ejb.UserDAO;
import entities.User;
@RequestScoped
@ManagedBean
public class Index {
private List<User> users;
@EJB
private Us... |
package backing;
import static util.Messages.addFlashMessage;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import ejb.UserDAO;
import entities.User;
@ViewScoped
@ManagedBean
public class UserEdit {
private User user;
@EJB
private UserDAO userDAO;
public vo... |
package backing;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import ejb.UserDAO;
import entities.User;
@ViewScoped
@ManagedBean
public class UserDelete {
private User user;
@EJB
private UserDAO userDAO;
public String delete() {
userDAO.delete(user);
re... |
package entities;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Size;
import constraint.Email;
@Entity
public class User {
private Integer id;
@Size(min = 2... |
package entities;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import ejb.UserDAO;
@ManagedBean
public class UserConvertor implements Converter {
@EJB
private UserDAO users;
@O... |
package util;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.context.Flash;
public class Messages {
public static void addFlashMessage(String message) {
Flash flash = FacesContext.getCurrentInstance().getExternalContext().getFlash();
flash.setKeepMessage... |
package backend;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Map;
/**
*
* The DBManager is a wrapper which uses SQLite JDBC server-less
* database to store persistent data on the harddri... |
package backend;
import java.util.HashMap;
import java.util.Map;
import backend.DBManager.FieldType;
public class DBBackpackAdapter {
/** The database where all data will be saved for Users. **/
public static String DB_PATH = "alldata.db";
/** The table that will be used for Users. **/
public stat... |
package backend;
import java.util.HashMap;
import java.util.Map;
import backend.DBManager.FieldType;
public class DBSpellAdapter {
/** The database where all data will be saved for Users. **/
public static String DB_PATH = "alldata.db";
/** The table that will be used for Users. **/
public static ... |
package backend;
import java.util.HashMap;
import java.util.Map;
import backend.DBManager.FieldType;
public class DBCharacterAdapter {
/** The database where all data will be saved for Users. **/
public static String DB_PATH = "alldata.db";
/** The table that will be used for Users. **/
public sta... |
package backend;
import java.util.HashMap;
import java.util.Map;
import backend.DBManager.FieldType;
public class DBItemAdapter {
/** The database where all data will be saved for Users. **/
public static String DB_PATH = "alldata.db";
/** The table that will be used for Users. **/
public static S... |
package backend;
import java.util.HashMap;
import java.util.Map;
import backend.DBManager.FieldType;
public class DBSpellTreeAdapter {
/** The database where all data will be saved for Users. **/
public static String DB_PATH = "alldata.db";
/** The table that will be used for Users. **/
public sta... |
public class test {
//This is a test to see if this is working
//Silvia was here
//Julie was here
}
|
package gui;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
@SuppressWarnings("serial")
public class ItemTab extends JPanel {
public ItemTab() throws Exception {
super();
initialize();
}
private void initialize() throws Exception {
setLayout(new ... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import jav... |
package gui;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
@SuppressWarnings("serial")
public class CharacterTab extends JPanel {
public CharacterTab() throws Exception {
super();
initialize();
}
private void initialize() throws Exception {
setL... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JO... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import ja... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax... |
package gui;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.util.Vector;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import ja... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import ja... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import ja... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import ja... |
package gui;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.sw... |
package gui;
import java.awt.GridLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.sql.SQLException;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.sw... |
package gui;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
@SuppressWarnings("serial")
public class SpellTab extends JPanel {
public SpellTab() throws Exception {
super();
initialize();
}
private void initialize() throws Exception {
setLayout(ne... |
package gui;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
@SuppressWarnings("serial... |
package gui;
import java.awt.*;
/**
* This class simplifies the use of the GridBagConstraints class.
* @version 1.01 2004-05-06
* @author Cay Horstmann
*/
@SuppressWarnings("serial")
public class GBC extends GridBagConstraints
{
/**
* Constructs a GBC with a given gridx and gridy position and ... |
package gui;
import java.awt.BorderLayout;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import jav... |
// LA3486 陈锋
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Stack;
import java.util.StringTokenizer;
public class Main {
static Reader stdin = new Read... |
// UVa11294 Wedding
// 陈锋
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Stack;
import java.util.StringTokenizer;
public class Main {
pri... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.googlecode.dex2jar.reader.io;
import java.io.IOException;
public interface DataOut {
void writeByte(int b) throws IOException;
void writeBytes(byte[] bs) throws IOException;
void writeInt(int i) throws IOException;
void writeShort(int i) throws IOException;
}
|
package com.googlecode.dex2jar.reader.io;
import java.io.IOException;
import java.io.OutputStream;
public class LeDataOut implements DataOut {
private OutputStream os;
public LeDataOut(OutputStream os) {
super();
this.os = os;
}
@Override
public void writeByte(int... |
/*
* Copyright (c) 2009-2012 Panxiaobo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/*
* Copyright (c) 2009-2012 Panxiaobo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/*
* Copyright (c) 2009-2012 Panxiaobo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package pxb.android.axml;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
public class EnableDebugger {
// @Test
// public void test() throws Exception {
// a(new File("src/test/resources/a.axml"), new File("target/a-debug.axml"));
// }... |
/*
* Copyright (c) 2009-2012 Panxiaobo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/*
* Copyright (c) 2009-2012 Panxiaobo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/*
* Copyright (c) 2009-2012 Panxiaobo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.