text stringlengths 3 1.18M |
|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ui;
import java.awt.Component;
import java.awt.Point;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import javax.swing.JComponent;
import java... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package ui;
import java.awt.Color;
import java.awt.Point;
import java.awt.Rectangle;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPa... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package ui;
import java.awt.Color;
import java.awt.Label;
import java.awt.Point;
import java.awt.Rectangle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import model.Gamer;
i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ui;
import java.awt.Point;
/**
*
* @author Александр
*/
interface RotatableLabel {
void rotate(int steps);
void setOrientation(Orientation orientation);
Orientation getOrientation(... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ui;
/**
*
* @author Александр
*/
public enum MovementSpeed {
VARY_SLOWLY,
SLOWLY,
NORMAL,
FAST,
VERY_FAST
}
|
/*
* Copyright (C) 2012 POAS.VSTU
*/
package frame;
import ui.UIGamePanel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
/** Класс главной игровой формы. */
public class GameFrame extends JFrame{
/// Игровая панель
private UIGamePanel mPa... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.TreeMap;
/**
* Отбой
*/
public class CardPileRecycle extends CardPile {
/** Конструктор по-умолчанию. */
public CardPileRecycle() {
}
/**
... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.ArrayList;
/**
* Карты на руках игрока
*/
public class PlayerCardPile extends CardPile {
/**
* Достает из стопки четверку карт одинакового ранга.
* @return список из 4-х карт или пустой список, если четверок нет.
*/
Arr... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
/** Класс компьютерного игрока. */
public class ComputerPlayer extends Player{
public ComputerPlayer(String name) {
super(name);
}
} |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.EventListener;
/** Слушатель игрового события. */
public interface GameEventListener extends EventListener{
/** Карты перемещаются. */
public void cardsMoved(GameEvent e);
/** Карты извлечены. */
public void cardsExtr... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.Collections;
/**
* Колода карт
*/
public class CardStack extends CardPile {
/** Конструктор по-умолчанию - создает новую колоду. */
public CardStack() {
for (Suit s : Suit.values()) {
for (Face f : Face.values()... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
/** Ранг карты */
enum Face {
SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE;
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package model;
/**
*
* @author Litovkin
*/
public class CardPileKitty extends CardPile {
public CardPileKitty() {
super();
}
} |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.event.EventListenerList;
/** Класс игровой модели. */
public class GameModel implements Runnable{
/// Список слушателей... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
/** Класс игрока-человека. */
public class Gamer extends Player{
public Gamer(String name) {
super(name);
}
}
|
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
/**
* Неспециализированная стопка карт
*/
public class CardPile implements Iterable<Card> {
/** Контейнер с картами */
protected ArrayList<Card> mCards = new ArrayList<>();
... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
/**
* Абстрактный класс игрока.
*/
public abstract class Player {
/// Имя игрока
private String mName;
/// Карты игрока
private PlayerCardPile mCards;
/**
* Конструктор игрока.
* @param name имя игрока
*/
public Player(S... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
/** Масть карты */
enum Suit {
HEARTS, CLUBS, SPADES, DIAMONDS;
}
|
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.lang.CloneNotSupportedException;
/**
* Карта
*/
public class Card {
/** Ранг карты */
private Face mFace;
/** Масть карты */
private Suit mSuit;
/**
* Конструктор
* @param face ранг карты
* @param suit масть... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
/** Контейнер "кольцо" */
public class CircularBuffer<E> implements Collection<E> {
/// Элементы кольца
private ArrayList<E> mElements = new ArrayList<E>();
... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.ArrayList;
import java.util.EventObject;
/** Игровое событие. */
public class GameEvent extends EventObject {
/// Источник, стопка из которой перемещаются карты
private CardPile mFrom;
/// Приемник, стопка в которую п... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
/** Статусы игровой модели. */
enum ModelStatus {
UNDEFINED, // Статус неопределен
GATHERING_CARDS_TO_STACK, // Идет сбор карт в колоду
DEALING_CARDS, // Идет раздача карт
DROPPING_FIRST_CARD, // Ид... |
/*
* Copyright (C) 2012 POAS.VSTU
*/
package model;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
/** Класс-регистратор событий GameEvent. */
public class GameEventListenerRegistrator implements GameEventListener {
public int cardsMovedCounter = 0;
public int ... |
package model;
public class Model
{
/*plansza*/
private Field board[][];
public Model()
{
board = new Field[8][8];
for(int i=0; i<8; i++)
for(int j=0; j<8; j++)
board[i][j] = new Field();
createNewBoard();
}
public void createNewBoard()
{
for(int i=0; i<8; i++)
... |
package controller;
public class Move
{
int sourceFieldX;
int sourceFieldY;
int targetFieldX;
int targetFieldY;
int pawnType;
boolean isJump;
boolean isMultipleJump;
int between;
int value;
public Move next;
public boolean convert;
public Move nextMustMove;
int jumpedByKingX;
int jum... |
package warcaby;
import controller.Controller;
import model.Model;
import view.View;
public class Main {
public static void main(String[] args)
{
Model model = new Model();
View view = new View();
@SuppressWarnings("unused")
Controller controller = new Controller(view, model);
view.rep... |
package checkers;
import controller.Controller;
import model.Model;
import view.View;
public class Main {
public static void main(String[] args)
{
Model model = new Model();
View view = new View();
//@SuppressWarnings("unused")
//Controller controller = new Controller(view, model);
vie... |
import javax.swing.*;
public class HelloWorld {
public static void main(String[] args){
String name;
name = JOptionPane.showInputDialog(null, "Enter Your name:");
//print output
JOptionPane.showMessageDialog(null, name);
}
}
|
import javax.swing.*;
public class OddEven {
public static void main(String[] args){
String num = "";
int x;
num = JOptionPane.showInputDialog(null, "Enter Number:");
x = Integer.parseInt(num);
//print output
if (x % 2 == 0){
JOptionPane.showMessageDialog(null, "Even");
}
else{
... |
public class Calculator {
int x;
int y;
public Calculator(int num1, int num2){
x = num1;
y = num2;
}
private int addNumber(){
return x+y;
}
private int subtractNumber(){
return x-y;
}
private int multiplyNumber(){
return x*y;
}
private int divideNumber(){
... |
class MyArrayList {
private int[] MyArray;
private int size;
public MyArrayList(int value, int seed, int inc){
MyArray = new int[value];
size = value;
for (int i = 0; i < size; i++) {
MyArray[i] = seed;
seed += inc;
}
}
public void PrintList() {
for (int i = 0; i < size; i++){
... |
import javax.swing.*;
public class HelloWorld {
public static void main(String[] args) {
String num = "";
num = JOptionPane.showInputDialog(null, "Please enter your name: ");
JOptionPane.showMessageDialog(null, "Hi " +num);
}
}
|
import javax.swing.*;
public class OddorEven {
public static void main(String[]args){
String x = "";
x = JOptionPane.showInputDialog(null, "Enter Integer");
int a = Integer.parseInt(x);
}
}
private static Integer CheckValue |
public class New {
}
|
class MyArrayList{
private int[] MyArray;
private int size;
public MyArrayList(int value, int seed, int inc){
MyArray = new int[value];
size = value;
for (int i = 0; i < size; i++) {
MyArray[i] = seed;
seed += inc;
}
}
public void PrintList(){
for (int ... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package firstactivity;
/**
*
* @author Students Account
*/
public class FirstActivity {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication2;
/**
*
* @author Students Account
*/
class MyArrayList{
private int [] MyArray;
private int size;
public MyArrayList(int value, int seed , int inc){
MyArray = new int[... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication2;
/**
*
* @author Students Account
*/
class MyArrayList{
private int [] MyArray;
private int size;
public MyArrayList(int value, int seed , int inc){
MyArray = new int[... |
/*
* Copyright (C) 2009 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.example.HelloJni;
import android.test.ActivityInstrumentationTestCase;
/**
* This is a simple framework for a test of an Application. See
* {@link android.test.ApplicationTestCase ApplicationTestCase} for more information on
* how to write and extend Application tests.
* <p/>
* To run this test, you... |
/*
* Copyright (C) 2009 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 csh.cryptonite;
import com.actionbarsherlock.app.SherlockFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class Expert... |
package csh.cryptonite;
public class SelectionMode {
public static final int MODE_CREATE = 10;
public static final int MODE_OPEN_ENCFS = 11;
public static final int MODE_OPEN_MULTISELECT = 12;
public static final int MODE_OPEN_ENCFS_DB = 13;
public static final int MODE_OPEN_MULTISELECT_DB = 14;
public ... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
package csh.cryptonite.storage;
import com.actionbarsherlock.app.SherlockFragmentActivity;
public enum StorageManager {
INSTANCE;
private Storage mEncFSStorage;
private Storage mLocalStorage;
public void init() {
mEncFSStorage = null;
mLocalStorage = null;
}
public int getEn... |
package csh.cryptonite.storage;
import java.util.HashMap;
import android.util.Log;
import com.dropbox.client2.DropboxAPI;
import com.dropbox.client2.DropboxAPI.Entry;
import com.dropbox.client2.android.AndroidAuthSession;
import com.dropbox.client2.exception.DropboxException;
import com.dropbox.client2.exception.Dro... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
package csh.cryptonite.storage;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.actionbarsherlock.app.S... |
package csh.cryptonite.storage;
import csh.cryptonite.Cryptonite;
import csh.cryptonite.DirectorySettings;
import csh.cryptonite.R;
import csh.cryptonite.SelectionMode;
import csh.cryptonite.database.Volume;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vie... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
package csh.cryptonite.storage;
import java.io.File;
import java.io.IOException;
import csh.cryptonite.Cryptonite;
import csh.cryptonite.DirectorySettings;
import csh.cryptonite.R;
import csh.cryptonite.SelectionMode;
import csh.cryptonite.ShellUtils;
import csh.cryptonite.database.Volume;
import android.app.AlertDi... |
package csh.cryptonite.storage;
import com.actionbarsherlock.app.SherlockFragmentActivity;
public enum MountManager {
INSTANCE;
private Storage mEncFSStorage;
public void init() {
mEncFSStorage = null;
}
public int getEncFSStorageType() {
if (mEncFSStorage == null) {
... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
package csh.cryptonite;
import com.actionbarsherlock.app.SherlockFragmentActivity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
public class TextPreview extends SherlockFragmentActivity {
public static... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
package csh.cryptonite.database;
import csh.cryptonite.Cryptonite;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
public class VolumesDataSource {
// Database fields
pr... |
package csh.cryptonite.database;
import csh.cryptonite.Cryptonite;
import android.content.Context;
public class Volume {
public static final long VIRTUAL=0, MOUNT = 1;
private long id;
private long storType;
private long mountType;
private String label;
private String src;
private St... |
package csh.cryptonite.database;
import android.content.Context;
import android.util.Log;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class CryptoniteSQLiteOpenHelper extends SQLiteOpenHelper {
public static final String TABLE_VOLUMES = "volumes";
pu... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
package csh.cryptonite;
import com.actionbarsherlock.app.SherlockDialogFragment;
import com.actionbarsherlock.app.SherlockFragmentActivity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
public class ProgressDialogFragment ex... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
package csh.cryptonite;
import java.util.ArrayList;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;
... |
package csh.cryptonite;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import com.actionbarsherlock.app.SherlockDialogFragment;
import com.actionbarsherlock.app.SherlockFragmentActivity;
import csh.cryptonite.storage.DropboxStorage;
import csh.cryptonite.storage.L... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
/*
* Copyright (c) 2011 Dropbox, Inc.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, pu... |
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... |
package csh.cryptonite;
import java.io.File;
import android.os.Environment;
public enum DirectorySettings {
INSTANCE;
public static final String OPENPNT = "open";
public static final String BROWSEPNT = "browse";
public static final String DROPBOXPNT = "dropbox";
public static final String READPN... |
public class HelloWorld {
public static void main(String[] orgs){
System.out.println("Hello World");
}
}
|
import javax.swing.JOptionPane;
public class ODDorEVEN {
public static void main(String[] args){
String str = JOptionPane.showInputDialog(null, "ENTER NUMBER:");
double num = Double.parseDouble(str);
//or int num = Integer.parseInt(str)
if(num % 2 == 0){
JOptionPane.showMessageDialog(nu... |
import javax.swing.JOptionPane;
public class UserInput {
public static void main(String[] args) {
String num = "";
num = JOptionPane. showInputDialog(null, "Please enter your name:");
JOptionPane.showMessageDialog(null,"Hello " +num);
}
}
|
import javax.swing.JOptionPane;
public class Calculator {
public static void main(String[] args) {
String num1 = "";
String num2 = "";
num1 = JOptionPane.showInputDialog
(null, "ENTER FIRST NUMBER:");
num2 = JOptionPane.showInputDialog
(null, "ENTER SECOND NUMEBR:");
double a1 ... |
import javax.swing.*;
public class OddEven_Assignment1
{
public static void main(String[] args)
{
int number;
number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " ));
OddNumber ( number );
EvenNumber ( number );
... |
class myArrayList {
private int[] myArray;
private int size;
public myArrayList( int value, int seed, int increment ) {
myArray = new int [value];
size = value;
for ( int counter = 0 ; counter < size ; counter++ ) {
... |
import java.util.Random;
class sortArray
{
private int[] myArray;
public sortArray()
{
System.out.println("Default Order:");
Random digit = new Random();
myArray = new int [10];
for ( int counter = 0 ; counter < 10 ; coun... |
import java.io.IOException;
public class reverseStack_Assignment3 {
private String input;
private String output;
public reverseStack_Assignment3(String in) {
input = in;
}
public String doRev() {
int stackSize = input.length();
Stack theStack = new Stack(stackSize);
f... |
class stackClass {
private int maxSize;
private char[] stackArray;
private int top;
public stackClass(int max) {
maxSize = max;
stackArray = new char[maxSize];
top = -1;
}
public void push(char j) {
stackArray[++top] = j;
}
... |
import java.util.Random;
class sortArray
{
private int[] myArray;
public sortArray()
{
System.out.println("Default Order:");
Random digit = new Random();
myArray = new int [10];
for ( int counter = 0 ; counter < 10 ; coun... |
class MyArrayList{
private int[] MyArray;
private int size;
public MyArrayList(int value, int seed, int inc){
MyArray=new int [value];
size=value;
for (int i = 0; i < size; i++) {
MyArray[i]=seed;
... |
/*class CalcLib { // object
public void addNum(){
int x=5;
int y=10;
int z;
z=x+y;
System.out.println(z);
}
}
public class Calculator {
public static void main(String[] args){
CalcLib calc = new CalcLib(); // instance
calc.addNum();
}
}*/
/*class CalcLib {
public int add... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package superchat;
import java.io.IOException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Classe de sauvegarde des fichiers
* @author georgesm
*/
public class Fil... |
/*
* Serveur.java
*/
package superchat;
import java.net.*;
import org.json.*;
/**
* Classe serveur
* @author georgesm
*/
class Serveur extends Thread {
int port;
ServerSocket ss;
ClientList clients;
/**
* Constructeur du serveur
* @param port Port de connexion
*/
public Serve... |
package superchat;
/**
* <p>Encodes and decodes to and from Base64 notation.</p>
* <p>Homepage: <a href="http://iharder.net/base64">http://iharder.net/base64</a>.</p>
*
* <p>Example:</p>
*
* <code>String encoded = Base64.encode( myByteArray );</code>
* <br />
* <code>byte[] myByteArray = Base64.decode( encod... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* SuperChatUsernamePrompt.java
*
* Created on 27 sept. 2011, 09:02:33
*/
package superchat;
import javax.swing.JDialog;
/**
* Classe de fenêtre de login
* @author georgesm
*/
public class SuperChatNickPrompt ... |
package superchat;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* SuperChatFileSelector.java
*
* Created on 17 oct. 2011, 10:29:18
*/
/**
* Classe pour la fenêtre de séléction de fichier
* @author georgesm
*/
public class SuperChatFileSelector extends j... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package superchat;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JList;
import javax.swing.ListModel;
/**
* Classe pour l'évenement double clic sur la liste des utilisateurs ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package superchat;
import java.util.Vector;
/**
* Classe de gestion des communications et des pseudos des utilisateurs pour le serveur
* @author georgesm
*/
public class ClientList extends Vector<Communication> {
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package superchat;
/**
* Classe pour le stockage des paramètres
* @author georgesm
*/
public class Param {
public String nickname = "";
public int port = 10075;
public String ipAdress = "localhost";
... |
/*
* SuperChatApp.java
*/
package superchat;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;
import javax.swing.JDialog;
/**
* The main class of the application.
*/
public class SuperChatApp extends SingleFrameApplication {
/**
* At startup create a... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* SuperChatAlert.java
*
* Created on 3 oct. 2011, 08:28:18
*/
package superchat;
/**
* Classe pour la fenêtre de message
* @author georgesm
*/
public class SuperChatAlert extends javax.swing.JDialog {
/*... |
/*
* SuperChatView.java
*/
package superchat;
import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package superchat;
import java.io.*;
import java.net.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.json.JSONObject;
/**
* Classe de gestion de socket
* @author georgesm
*/
public cla... |
/*
* SuperChatAboutBox.java
*/
package superchat;
import org.jdesktop.application.Action;
public class SuperChatAboutBox extends javax.swing.JDialog {
public SuperChatAboutBox(java.awt.Frame parent) {
super(parent);
initComponents();
getRootPane().setDefaultButton(closeButton);
}
... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
package org.json;
/**
* The <code>JSONString</code> interface allows a <code>toJSONString()</code>
* method so that a class can change the behavior of
* <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
* and <code>JSONWriter.value(</code>Object<code>)</code>. The
* <code>toJSONString... |
package org.json;
import java.io.IOException;
import java.io.Writer;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including witho... |
package org.json;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.