code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agreed ... | Java |
/*
* Copyright (C) 2008 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... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agreed ... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agreed ... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agre... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agreed ... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agre... | Java |
/*
* Copyright (C) 2007 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agre... | Java |
/*
* Copyright (C) 2007 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2007 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2007 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2007 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2007 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
package com.google.android.webviewdemo;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.webkit.JsResult;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
/**
* Demonstrates how to embed a... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* Copyright (C) 2008 Google Inc.
*
* 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 agree... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javamailclient;
/**
*
* @author Abigail
*/
public class JavaMailClient {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code applic... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* connectionDlg.java
*
* Created on Jun 12, 2012, 4:31:13 PM
*/
package javamailclient;
import java.awt.Dimension;
import java.awt.HeadlessException;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
i... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javamailclient;
import java.io.UnsupportedEncodingException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import ja... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javamailclient;
import java.awt.HeadlessException;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.i... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javamailclient;
import java.io.InputStream;
/**
*
* @author Abigail
*/
public class MyAttachment{
private String fileName;
private String contentType;
private javax.mail.BodyPart content;
pri... | Java |
package javamailclient;
import java.awt.Frame;
import java.io.IOException;
import javax.mail.BodyPart;
import javax.mail.MessagingException;
import javax.swing.BorderFactory;
import javax.swing.JDialog;
import javax.swing.JEditorPane;
import javax.swing.JLabel;
import javax.swing.JPanel;
/*
* To change this template... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* MainForm.java
*
* Created on Jun 12, 2012, 4:27:38 PM
*/
package javamailclient;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import ... | Java |
package cryptography.asymmetric.RSA;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.MessageDigest;
import java.security.SecureRandom;
import java.security.Security;
import java.security.Signature;
import javax.crypto.Cipher;
public class RSACryptographyWithSignat... | Java |
package cryptography.asymmetric.RSA;
import java.security.KeyPairGenerator;
import java.security.KeyPair;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.KeyFactory;
import java.security.spec.EncodedKeySpec;
import java.securi... | Java |
package cryptography.signature;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.security.PublicKey;
import ja... | Java |
package cryptography.symmetric.AES;
import java.security.*;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import sun.misc.*;
public class AESCryptography {
private static final String ALGORITHM = "AES";
private static final byte[] keyValue =
new byte[] { 'T', 'h',... | Java |
package cryptography.symmetric.AES;
import java.security.*;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import sun.misc.*;
public class AESCrytographyWithSalt {
private static final String ALGORITHM = "AES";
private static final int ITERATIONS = 2;
private static final byte[] ke... | Java |
package cryptography.symmetric.TripleDES;
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import java.security.MessageDigest;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESedeKeySpec;
impor... | Java |
package cryptography.symmetric.TripleDES;
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import java.security.MessageDigest;
import java.security.spec.KeySpec;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import jav... | Java |
package cryptography.symmetric.DES;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.KeyGenerator;
import ... | Java |
package mymail.sendmail;
import java.io.File;
import java.io.FileOutputStream;
import java.security.Key;
import java.util.ArrayList;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.mail.Folder;
import javax.mail.Message;
import javax... | Java |
package mymail;
import java.util.Formatter;
public class Util {
public static String byteArray2Hex(byte[] ba) {
Formatter f = new Formatter();
for (byte b : ba) {
f.format("%02x", b);
}
return f.toString();
}
}
| Java |
package mymail;
import java.security.MessageDigest;
import org.bouncycastle.util.encoders.Base64;
public class Hash {
private final static String ALGORITHM = "md5";
public static byte[] hashData(String data) throws Exception {
MessageDigest md = MessageDigest.getInstance(ALGORITHM);
byte[] digest... | Java |
package mymail.crypttwice;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.Key;
import java.util.Arrays;
import java.util.Date;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.CipherOutputStream;
import javax... | Java |
package mymail.cryptography.asymmetric;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.security.s... | Java |
package mymail.cryptography.signature;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.s... | Java |
package mymail.cryptography.symmetric;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.Key;
import java.util.Arrays;
import java.util.Date;
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.CipherOutputStream;
... | Java |
package mymail;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStreamReader;
import javax.mail.Flags;
import javax.mail.Folder;
import javax.mail.Message;
p... | Java |
package com.futonredemption.nokeyguard.activities;
import org.beryl.app.AndroidVersion;
import com.futonredemption.nokeyguard.Intents;
import com.futonredemption.nokeyguard.R;
import android.app.ActionBar;
import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceActivity... | Java |
package com.futonredemption.nokeyguard.activities;
import org.beryl.intents.IntentHelper;
import com.futonredemption.nokeyguard.Constants;
import com.futonredemption.nokeyguard.Intents;
import com.futonredemption.nokeyguard.Preferences;
import com.futonredemption.nokeyguard.R;
import android.app.Activity;
... | Java |
package com.futonredemption.nokeyguard;
public class LockScreenState {
public int Mode = Constants.MODE_Enabled;
public boolean IsLockActive = false;
}
| Java |
package com.futonredemption.nokeyguard;
public class Preferences {
public static class General {
public static final String HideNotification = "PrefHideNotification";
}
public static class Internal {
public static final String ToggleState = "Preference_KeyguardToggleState";
}
}
| Java |
package com.futonredemption.nokeyguard;
import org.beryl.app.AndroidVersion;
import android.app.Service;
import android.content.Context;
import android.media.AudioManager;
public class HeadsetStateGetter {
private final IHeadsetStateGetter _headsetStateGetter;
static interface IHeadsetStateGetter {
... | Java |
package com.futonredemption.nokeyguard;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.BatteryManager;
import android.preference.PreferenceManager;
public class LockScreenStateManager {
private final Context context;
private Sha... | Java |
package com.futonredemption.nokeyguard.appwidgets;
import com.futonredemption.nokeyguard.Constants;
import com.futonredemption.nokeyguard.Intents;
import com.futonredemption.nokeyguard.LockScreenState;
import com.futonredemption.nokeyguard.R;
import android.app.PendingIntent;
import android.appwidget.AppWidge... | Java |
package com.futonredemption.nokeyguard;
import android.app.KeyguardManager;
import android.app.KeyguardManager.KeyguardLock;
import android.content.Context;
public class KeyguardLockWrapper {
// FIXME: Should we have synchronize locks on the method calls?
private KeyguardManager _guard;
private Keyguard... | Java |
package com.futonredemption.nokeyguard.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
public class RelayRefreshWidgetReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context conte... | Java |
package com.futonredemption.nokeyguard.receivers;
import com.futonredemption.nokeyguard.Intents;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class PowerStateChangedReceiver extends BroadcastReceiver {
@Override
public void onReceive(Co... | Java |
package com.futonredemption.nokeyguard;
import com.futonredemption.nokeyguard.activities.NoKeyguardPreferenceActivity;
import com.futonredemption.nokeyguard.services.DisableKeyguardService;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.... | Java |
package com.futonredemption.nokeyguard;
public class Constants {
public static final int MODE_Enabled = 0;
public static final int MODE_Disabled = 1;
public static final int MODE_ConditionalToggle = 2;
public static final int NOTIFICATION_ForegroundService = 1;
public static final int INTERVAL_Foregr... | Java |
package com.futonredemption.nokeyguard;
import java.util.Timer;
import java.util.TimerTask;
import org.beryl.app.ServiceForegrounder;
import org.beryl.diagnostics.Logger;
import android.app.PendingIntent;
import android.app.Service;
public class AutoCancelingForegrounder {
private final Service servi... | Java |
package com.futonredemption.nokeyguard.services;
import org.beryl.app.ComponentEnabler;
import org.beryl.app.ServiceBase;
import com.futonredemption.nokeyguard.AutoCancelingForegrounder;
import com.futonredemption.nokeyguard.Constants;
import com.futonredemption.nokeyguard.Intents;
import com.futonredemption.... | Java |
package pl.polidea.treeview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListAdapter;
import android.wi... | Java |
package pl.polidea.treeview;
import android.app.Activity;
import android.content.Context;
import android.database.DataSetObserver;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.v... | Java |
package pl.polidea.treeview;
/**
* This exception is thrown when the tree does not contain node requested.
*
*/
public class NodeNotInTreeException extends RuntimeException {
private static final long serialVersionUID = 1L;
public NodeNotInTreeException(final String id) {
super("The tree does not... | Java |
/**
* Provides expandable Tree View implementation.
*/
package pl.polidea.treeview; | Java |
package pl.polidea.treeview;
import android.util.Log;
/**
* Allows to build tree easily in sequential mode (you have to know levels of
* all the tree elements upfront). You should rather use this class rather than
* manager if you build initial tree from some external data source.
* <p>
* Note, that all ids must... | Java |
package pl.polidea.treeview;
/**
* Exception thrown when there is a problem with configuring tree.
*
*/
public class TreeConfigurationException extends RuntimeException {
private static final long serialVersionUID = 1L;
public TreeConfigurationException(final String detailMessage) {
super(detailM... | Java |
package pl.polidea.treeview;
/**
* The node being added is already in the tree.
*
*/
public class NodeAlreadyInTreeException extends RuntimeException {
private static final long serialVersionUID = 1L;
public NodeAlreadyInTreeException(final String id, final String oldNode) {
super("The node has al... | Java |
package pl.polidea.treeview;
/**
* Information about the node.
*
* @param <T>
* type of the id for the tree
*/
public class TreeNodeInfo<T> {
private final T id;
private final int level;
private final boolean withChildren;
private final boolean visible;
private final boolean expand... | Java |
package pl.polidea.treeview;
import java.io.Serializable;
import java.util.List;
import android.database.DataSetObserver;
/**
* Manages information about state of the tree. It only keeps information about
* tree elements, not the elements themselves.
*
* @param <T>
* type of the identifier for nodes... | Java |
package pl.polidea.treeview;
import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
/**
* Node. It is package protected so that it cannot be used outside.
*
* @param <T>
* type of the identifier used by the tree
*/
class InMemoryTreeNode<T> implements Serializable {
priv... | Java |
package pl.polidea.treeview;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import android.database.DataSetObserver;
import android.util.Log;
/**
* In-memory man... | Java |
package pl.polidea.treeview.demo;
import java.util.Arrays;
import java.util.Set;
import pl.polidea.treeview.AbstractTreeViewAdapter;
import pl.polidea.treeview.R;
import pl.polidea.treeview.TreeNodeInfo;
import pl.polidea.treeview.TreeStateManager;
import android.view.View;
import android.view.ViewGroup;
import andro... | Java |
package pl.polidea.treeview.demo;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import pl.polidea.treeview.InMemoryTreeStateManager;
import pl.polidea.treeview.R;
import pl.polidea.treeview.TreeBuilder;
import pl.polidea.treeview.TreeNodeInfo;
import pl.polidea.treeview.TreeStateManager... | Java |
/**
* Provides just demo of the TreeView widget.
*/
package pl.polidea.treeview.demo; | Java |
package pl.polidea.treeview.demo;
import java.util.Set;
import pl.polidea.treeview.R;
import pl.polidea.treeview.TreeNodeInfo;
import pl.polidea.treeview.TreeStateManager;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.view.View... | Java |
package alwaysontop;
import java.awt.AWTEvent;
import java.awt.Color;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.AWTEventListener;
import java.awt.event.ContainerEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import jav... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package modaldialog;
import java.awt.AWTEvent;
/**
*
* @author Rakesh Menon
*/
public interface EventFilter {
public boolean accept(AWTEvent event);
}
| Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package modaldialog;
import java.awt.AWTEvent;
import java.awt.EventQueue;
import java.awt.Toolkit;
import java.util.EmptyStackException;
/**
*
* @author Rakesh Menon
*/
public class EventQueueUtils {
private... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package downloadservice;
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Label;
import javax.jnlp.DownloadService2;
import javax.jnlp.DownloadService2.ResourceSpec;
impor... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javafxjsp;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.SimpleTa... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javafxasync;
import javafx.async.RunnableFuture;
/**
*
* @author Rakesh Menon
*/
public class JavaRunnable implements RunnableFuture {
private Runnable runnable = null;
private int count = 1;
... | Java |
package deployment;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.EventQueue;
import java.awt.event.ComponentAdapter;
import java.net.URL;
import javax.swing.JFrame;
import java.lang.reflect.Method;
import javax.jnlp.DownloadServiceListener;
/**
*
* @author Rake... | Java |
package deployment;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.MediaTracker;
im... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package registerfont;
/**
*
* @author Rakesh Menon
*/
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.lang.reflect.Method;
import java.net.URL;
import javafx.async.RunnableFuture;
class Font... | Java |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
* Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms, with or without
* modificati... | Java |
/*
* JavaScriptUtil.java
*
* Created on 31 Jul, 2009, 10:35:57 AM
*/
package javascript;
import java.applet.Applet;
import java.lang.reflect.Method;
/**
*
* @author Rakesh Menon
*/
public class JavaScriptUtil {
private Class jsClass = null;
private Object jsObject = null;
public JavaScriptUtil(A... | Java |
/*
* JavaYTUtil.java
*
* Created on 31 Jul, 2009, 10:35:57 AM
*/
package javafxyt.javascript;
import java.applet.Applet;
/**
*
* @author Rakesh Menon
*/
public class JavaYTUtil {
private static final String[] EMPTY_STRING_ARRAY = new String[] { };
private JavaScriptUtil javascript = null;
... | Java |
/*
* JavaScriptUtil.java
*
* Created on 31 Jul, 2009, 10:35:57 AM
*/
package javafxyt.javascript;
import java.applet.Applet;
import java.lang.reflect.Method;
/**
*
* @author Rakesh Menon
*/
public class JavaScriptUtil {
private Class jsClass = null;
private Object jsObject = null;
public JavaScr... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javafxdatabase;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.L... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javafxdatabase.modal;
import java.util.Random;
/**
*
* @author Rakesh Menon
*/
public class Customer {
private static final Random random = new Random(System.currentTimeMillis());
private int cust... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javafxprint;
import java.awt.image.RenderedImage;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java... | Java |
package javafxoauth.api.util;
import java.io.InputStream;
import java.io.InputStreamReader;
/**
*
* @author Rakesh Menon
*/
public class IOUtils {
public static String getStreamAsString(InputStream in) {
StringBuffer buffer = new StringBuffer();
try {
InputStreamReader inr = new... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javafxoauth.api.util;
import com.sun.javafx.io.http.impl.Base64;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
/**
* @author Rakesh Menon
*/
public class SignUtils {
private st... | Java |
/*
* Copyright (c) 2009, Sun Microsystems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this ... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.