text
stringlengths
14
410k
label
int32
0
9
public boolean updateScore(int player1Score, int player2Score) { boolean test = false; if (test || m_test) { System.out.println("GameWindow :: updateScore() BEGIN"); } getDrawing().setPlayer1Score(player1Score); getDrawing().setPlayer2Score(player2Score); if (test || m_test) { ...
4
public boolean pageSetup(PrintProxy proxy) { if (useNativeDialogs()) { PageFormat format = mJob.pageDialog(createPageFormat()); if (format != null) { adjustSettingsToPageFormat(format); proxy.adjustToPageSetupChanges(); return true; } } else { PageSetupPanel panel = new PageSetupPanel(getPri...
5
public Object[] exec(ImagePlus imp1, String new_name, boolean whiteParticles, boolean connect4) { // 0 - Check validity of parameters if (null == imp1) return null; int width = imp1.getWidth(); int height = imp1.getHeight(); int size = width * height; ImageProcessor ip3; ImagePlus imp3; int x, y, ...
9
void Louer() { // Début de la location int idCarte = Integer.parseInt(JOptionPane.showInputDialog("Numéro carte abonnée ?")); Utilisateur user = null; for (Utilisateur s : ConfigGlobale.utilisateurs) { if(s.getFk_id_carte()==idCarte){ user = s; ...
4
public void randomStart() { start = rand.nextInt(2); switch(start) { case 0: direction = 6; break; case 1: direction = 5; break; case 2: direction = 5; break; case 3: direction = 6; break; } }
4
public int getQuantityOfHurdles() { return hurdleList.size(); }
0
public void handlePacket(int id, PacketReader read, ClientConnection client) { try { if (id == 2) { int sub = read.readInt(); if(sub == 0){ }else if(sub == 1){ RaspIDE.newSnippet(read.readString()); }else if(sub == 2){ String name = read.readString(); RaspIDE.getSnippet(name).s...
9
protected List<PingData> read(InputStream in) { List<PingData> retval=null; try { while(true) { try { String name_str=Util.readToken(in); String uuid_str=Util.readToken(in); String addr_str=Util.readToken(in); ...
9
public void insertBelow(String filter) { gui.addToHistory(filter); if (filter != null && !filter.trim().equals("")) { JList list = (JList) filterLists.elementAt(currentFilterIndex); int i = list.getSelectedIndex(); DefaultListModel model = ...
5
public void checkAttackCollision(Character c){ Ellipse2D.Double attackArea = null; if(c.getDirection() == "up"){ attackArea = new Ellipse2D.Double( c.getX(), c.getY() - c.getWidth()/2, c.getWidth(), c.getHeight()); }else if(c.getDirection() == "down"){ attackArea = new Ellipse2D.Doubl...
6
public void close(){ System.out.println("inner close"); if(is != null){ try { is.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } is = null; } if(os != null){ try { os.flush(); os.close(); } catch (IOException e) { // TODO ...
6
public String toString() { if (nome != null) return nome.toString(); return id + ""; }
1
public void changeGameState() { if (this.isGameEndConditionReached()) { if (this.gameState == Game.GAME_STATE_BLACK) { this.gameState = Game.GAME_STATE_END_BLACK_WON; } else if (this.gameState == Game.GAME_STATE_WHITE) { this.gameState = Game.GAME_STATE_EN...
7
@Override public void performOperation(String name, ArgParser args) { //We support only three args, add, remove, and list loadProperties(); if (args.hasOption("-add")) { String prop = args.getStringArg("-add"); if (! prop.contains("=")) { System.err.println("Please supply a property in the form key=...
6
private void listMemberMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_listMemberMouseClicked try { try { int select = listMember.getSelectedIndex(); listMember.setSelectedIndex(select); String tempFirst = arrayFirs...
5
public static List<QParameter> getQueryParameters(String queryString) { if (queryString.startsWith("?")) { queryString = queryString.substring(1); } List<QParameter> result = new ArrayList<QParameter>(); if (queryString != null && !queryString.equals("")) { String[] p = queryString.split("&"); for (S...
7
public static synchronized void setCodec( String extension, Class iCodecClass ) throws SoundSystemException { if( extension == null ) throw new SoundSystemException( "Parameter 'extension' null in ...
7
@SuppressWarnings("unchecked") private IRandomAccessor2<T> createRandomAccessor(Object source) { if(source instanceof List<?>) { return new ListRandomAccessor((List<T>)source); } else if (source.getClass().isArray()) { return new ArrayRandomAccessor((T[])source); } else if(source instanceof ArrayI...
5
private void relax(EdgeWeightedDigraph G, Vertex v) { for (WeightedDirectedEdge e : G.adj(v.label)) { Vertex w = vertex[e.to()]; if (w.distTo > v.distTo + e.weight()) { w.distTo = v.distTo + e.weight(); w.edgeTo = e; if (!w.onQ) { queue.addFirst(w); w.onQ = true; } } } ...
3
private static String convertToHex(byte[] data) { StringBuffer buf = new StringBuffer(); for (int i = 0; i < data.length; i++) { int halfbyte = (data[i] >>> 4) & 0x0F; int two_halfs = 0; do { if ((0 <= halfbyte) && (halfbyte <= 9)) { ...
4
public static byte[] mix(Voice[] voices, int bufferSize) { byte[] mixedOutput = new byte[bufferSize]; for (int i = 0; i < voices.length; i++) { if (voices[i].isInUse()) { byte[] voiceFrame = voices[i].getNextFrame(bufferSize); for (int j = 0; j < bufferSize; ...
3
private void doViewAlLFS(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String pageNum = StringUtil.toString(request.getParameter("pageNum")); if("".equals(pageNum)) { pageNum = "1"; } try { Pager<LianXiWoMen> pag...
2
protected int getPort() { return port; }
0
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
6
@Override void removeNode(final Node node) { if (this.isInGroundTruth()) { assert this.getNodeCount() > 1; int gtIndexOfRemovedNode = node.getGtClIndex(); // remove from pseudo cluster this.graph.getPseudoCluster().removeNode(node); /* * Remove node from adjacency list. * The last node w...
5
static void checkFrameValue(final Object value) { if (value == Opcodes.TOP || value == Opcodes.INTEGER || value == Opcodes.FLOAT || value == Opcodes.LONG || value == Opcodes.DOUBLE || value == Opcodes.NULL || value == Opcodes.UNINITIALIZED_THIS) { ...
9
private void cpu2() { switch (this.getGeneratoreRouting().getNextRoute()) { case IO: if (this.getIo().isFree()) { this.getIo().setFree(false); this.getIo().setJob(this.getCpu2().getJob()); this.getCpu2().setJob(null); ...
4
public void actionPerformed(ActionEvent ev) { try { FonteFinanciamento objt = classeView(); if (obj == null) { long x = new FonteFinanciamentoDAO().inserir(objt); objt.setId(x); JOptionPane.showMessageDialog(null, "Os dados foram inseridos com sucesso", "Sucesso", JOptionPane.INFORMATION...
3
public static Node merge(Node l, Node r) { Node p1 = l; Node p2 = r; Node newHead = new Node(100); Node pNew = newHead; while (p1 != null || p2 != null) { if (p1 == null) { pNew.next = new Node(p2.val); p2 = p2.next; pNew = pNew.next; } else if (p2 == null) { pNew.next = new Node(p...
6
public void addVisitor(Element element) { elements.add(element); }
0
private void installNodeDefault() throws InstallationException { try { final String longNodeFilename = this.config.getPlatform().getLongNodeFilename(this.nodeVersion, false); String downloadUrl = this.nodeDownloadRoot + this.config.getPlatform().getNodeDow...
9
public List<Integer> findMinHeightTrees(int n, int[][] edges) { List<Integer> leaves = new ArrayList<Integer>(); if (n <= 0) return leaves; if (n == 1) { leaves.add(0); return leaves; } List<Set<Integer>> adj = new ArrayList<Set<Integer>>(n); for (int...
9
private int helper(int m, int n, int[][] men, int[][] grid) { if (n <= 0 || m <= 0) { return 0; } if (m == 1 && n == 1) { return grid[0][0]; } men[0][0] = grid[0][0]; for (int i = 1; i < m; i++) { men[i][0] = men[i - 1][0] + grid[i][...
8
private static void init() { // Initialize any uninitialized globals. command = new String(); stillPlaying = true; // Set up the location instances of the Locale class. FirstFloor loc0 = new FirstFloor(0); loc0.setName("Living Room (Shop)"); loc0.setDesc("You are...
2
static ClassType make(String s, int b, int e, TypeArgument[] targs, ClassType parent) { if (parent == null) return new ClassType(s, b, e, targs); else return new NestedClassType(s, b, e, targs, parent); }
1
private var_type eval_exp10() throws StopException, SyntaxError { var_type result; var_type partial_value; String op; result = eval_exp11(); op = token.value; while( op.equals("<") || op.equals("<=") || op.equals(">") || op.equals(">=") ){ token = lexer.get_token(); partial_value = eval_exp...
7
public void readFirst(){ synchronized (lock1) { String sCurrentLine; BufferedReader br = null; try { br = new BufferedReader(new FileReader("E:/Intern/Java/workspace/Translator/src/translator/first.txt")); while (!((sCurrentLine = br.readLine()).equals(""))) { //System.out.println(sCur...
6
public void visit_fcmpg(final Instruction inst) { stackHeight -= 2; if (stackHeight < minStackHeight) { minStackHeight = stackHeight; } stackHeight += 1; }
1
protected void testsWithoutClass(boolean weighted, boolean multiInstance) { boolean PNom = canPredict(true, false, false, false, false, multiInstance, NO_CLASS)[0]; boolean PNum = canPredict(false, true, false, false, false, multiInstance, NO_CLASS)[0]; boolean PStr...
8
private void prepareItems(Composite parent) { Composite composite = createDefaultComposite(parent); /* * ---------------- server name */ Label serverLabel = new Label(composite, SWT.NONE); serverLabel.setText(SERVERNAME_TITLE); serverText = new Text(composite, SWT.SINGLE | SWT.BORDER); // creo il...
8
* @param artist2 * @throws IOException */ public void checkPair(String artist1, String artist2){ String concat12 = artist1.concat(artist2); String concat21 = artist2.concat(artist1); Pair found; if(this.pairMap.containsKey(concat12)){ found = this.pairMap.get(concat12); if(found.occurences<50){ ...
8
private int stripMultipartHeaders(ByteBuffer b, int offset) { int i; for (i=offset; i<b.limit(); i++) { if (b.get(i) == '\r' && b.get(++i) == '\n' && b.get(++i) == '\r' && b.get(++i) == '\n') { break; } } return i + 1; ...
5
public int sumNumbers(TreeNode root) { if(root == null) return 0; sumNumbersRec(root, 0); return this.res; }
1
public String getTypeName(){ switch(_type){ case 0: return "DivX Standard"; case 1: return "DivX Standard"; case 4: return "H.264 Mobile"; case 5: return "H.264 Standard"; default : return "No Type Set"; } }
4
public void setEncryptionKey(KeyInfoType value) { this.encryptionKey = value; }
0
@Override public void bind ( SocketAddress endpoint, int backlog ) throws IOException { if ( isClosed() ) throw new SocketException("Socket is closed"); if ( isBound() ) throw new SocketException("Already bound"); if ( ! ( endpoint instanceof AFUNIXSocketAddress ) ) {...
3
public void addQuizDataObjectArray(QuizDataObject [] tqDBArray) { getGraphPanel().setQuizListFromArray(tqDBArray); }
0
public TreeMap<Double,Object> kNN(DatasetObject objectQuery, int k) { TreeMap res=null; res=new TreeMap(); for(int i=0; i<dataset.size()&&getDataset().getObject(i)!=null;i++) { double dist=distance(objectQuery,getDataset().getObject(i)); Integer o=Int...
6
private boolean putsKingInCheck(Board board, Location intendedLocation) { boolean inCheck = false; for(Piece p : board.getAllPieces()) { if (p.getColor() != this.getColor() && !p.isCheckable()) { for (Move m : p.getMoves(board)) { Piece endPiece = board.ge...
9
@Override public void populate( World world, Random random, Chunk chunk ) { //if (true) return; if (gen1 == null) { int numOctaves = 2; gen1 = new SimplexOctaveGenerator(world, numOctaves); gen1.setScale(1/128.0); } //float density = minDensity + ((float)((gen1.noise(chunk.getZ() * 16 + 8192,...
9
public void setIsLayer(boolean isLayer) { this.isLayer = isLayer; }
0
private int distanceToBase() { Integer distance = null; for (Unit base : self.getUnits()) { if (base.getType() == UnitType.Terran_Command_Center) { int dist = resource.getDistance(base); if (distance == null || dist < distance) { distance = dist; } } } if (distance != null) { ...
5
@org.junit.Test public void testPut() { BiHashMap< Integer, String > map = new BiHashMap< Integer, String >(); Integer key = null; String value = null; // Add entry to map and ensure its existence value = map.put( 1, "One" ); as...
7
public void visitLookupSwitchInsn( final Label dflt, final int[] keys, final Label[] labels) { mv.visitLookupSwitchInsn(dflt, keys, labels); if (constructor) { popValue(); addBranches(dflt, labels); } }
1
public NPC[] getSpawns() { int npcs[] = new int[6]; int index = 0; int id = stage; for(int i = 6; i >= 1; i--) { int threshold = (1 << i) - 1; if(id >= threshold) { for(int j = 0; j <= id / threshold; j++) { ...
9
public void request() { System.out.println("From Real Subject !"); }
0
public String getSaveFileFormat() { return (String) saveFormatComboBox.getSelectedItem(); }
0
@Override public void update(long deltaMs) { if(!spawned) { GameSector s = Application.get().getLogic().getGame().getSector(sector); if(s.free()) { s.spawnEnemy(resource); spawned = true; } } }
2
public void testCreateWanted() { for (HTML.Tag t : HTMLParser.getWantedSimpleTags()) { HTMLComponent comp = HTMLComponentFactory.create(t, null); Class<?> cl = HTMLComponentFactory.classForTagType(t); assertSame(comp.getClass(), cl); } for (HTML.Tag t : HTMLParser.getWantedComplexTags()) { HTMLCompone...
4
public static boolean checkPositionInside(Element element, int x, int y) { // ignore x / left-right values for x == -1 if (x != -1) { // check if the mouse pointer is within the width of the target int left = DomUtil.getRelativeX(x, element); int offsetWidth = eleme...
6
public void visitLineNumber(final int line, final Label start) { buf.setLength(0); buf.append(tab2).append("LINENUMBER ").append(line).append(' '); appendLabel(start); buf.append('\n'); text.add(buf.toString()); if (mv != null) { mv.visitLineNumber(line, star...
1
public GUIInventoryWindow(int id, String name, Inventory inventory, int WorldX, int WorldY, int across) { super(id, name); linksTo = inventory; this.WorldX = WorldX; this.WorldY = WorldY; this.Width = (across * 34) + 4; this.Height = ((linksTo.getInventorySize() / across) * 34) + 8; int j = 0; int...
3
public static void zip(String filepath){ try { File inFolder=new File(filepath); File outFolder=new File("Reports.zip"); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(outFolder))); BufferedInputStream in = null; byte[] data = new byte[1000]; ...
3
public void setDay(int day){ buttonArray.get(1).getDay().doClick(); if(buttonArray.size()-1 < day){ for(int x = 0; x < day+1; x++){ while(timer.isRunning()){} //This will delay the method until timer has ran out if(!buttonArray.containsKey(x)){ this.createNewDay(); } } } else if(buttonArray...
8
@Override public void setStackInSlot(int slot, ItemStack stack) { if(inventory[slot] == null) inventory[slot] = stack; else if (stack == null && inventory[slot] != null) inventory[slot] = null; else if(inventory[slot].getItem().equals(stack.getItem())) inventory[slot].stackSize += stack.stackSize; els...
4
public LevelReader(World world, File path) { try { Document document = new SAXBuilder().build(path); Element rootNode = document.getRootElement(); List blocks = rootNode.getChildren("block"); List flags = rootNode.getChildren("flag"); //Blokken ...
4
@SuppressWarnings("deprecation") @Override public void updateContent(IDocument myDocument, List<String> myWordList) { //Start analysis here... if(myDocument==null){ new_analyse.setEnabled(true); return; } profileInformation = connector.getProfileInformation(userID); AnalyzeTaskInformation task = new A...
6
public ArrayList<FormEvent> resultQuery(String sql){ ArrayList<FormEvent> dbList = new ArrayList<FormEvent>(); try { rs = stm.executeQuery(sql); try { while(rs.next()){ FormEvent item = new FormEvent(this); item.setId(rs.getInt("idTrabajador")); item.setEmpTipo(rs.getInt("tipoEmpleado_Id")...
3
@Override public String getStringProp(String key, String value) { String result = (String) get(key); if (null == result) result = value; return result; }
1
public LLParseController(LLParsePane pane) { this.pane = pane; productions = pane.grammar.getProductions(); }
0
public ArrayList<String> getRivit() { return rivit; }
0
public static void main(String[] args) { for (int i = 0; i < args.length; i++) { if (args[i].startsWith("-undo")) showUndo = true; if (args[i].startsWith("-goToMultiplayer")) multi = true; } try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { ...
8
private static int[] getFirstK(double[] sum, int k) { Map<Integer, Double> m = new TreeMap<Integer, Double>(); for (int i = 0; i < sum.length; i++) { m.put(i, sum[i]); } List<Map.Entry<Integer, Double>> mappingList = null; mappingList = new ArrayList<Map.Entry<Integer...
5
public static byte[] gzip(String input) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); GZIPOutputStream gzos = null; try { gzos = new GZIPOutputStream(baos); gzos.write(input.getBytes("UTF-8")); } catch (IOException e) { e.printStackTrace...
3
public ArrayList<Trajet> getTrajetsWithPassager(Membre m){ ArrayList<Trajet> res = new ArrayList<Trajet>(); for(Trajet t : listeTrajets){ if(t.hasMembreAsPassager(m)){ res.add(t); } } return res; }
2
public QuickFind(List<ConnectedPair> list) { numbers = new int[list.size()]; for (int i = 0; i < numbers.length; i++) { numbers[i] = i; } for (ConnectedPair pair : list) { connect(pair.getFirst(), pair.getSecond()); } }
2
public void updateWith(Instruction currentExecuting) { if (inst.workingOperands.size()>1 && inst.instructionType==0) { for (int i=1; i<inst.operands.size(); i++) { String s = inst.operands.get(i); if (s.equals(currentExecuting.destinationRegister)) { // Need to circulate the result ...
9
private List<List<Integer>> getAllChains(int currentVertex) { List<List<Integer>> chains = new ArrayList<List<Integer>>(); if(countConnections(currentVertex) > 2 || isEdgeNode(currentVertex)) { for(int neighbor = gameBoard.first(currentVertex); neighbor < gameBoard.vcount(); neighbor = gameBoard.next(curre...
4
public Iterator<T> iterator() { return new Iterator<T>() { MyList<T> next = first; MyList<T> node = null; @Override public boolean hasNext() { return (node != last); } @Override public T next() { if (next == null) throw new NoSuchElementException(); node = next; ...
2
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
6
public void setReachable() { if (!reachable) { reachable = true; setSingleReachable(); } }
1
public void run () { boolean fini = false; try { // recevoir requete String maLigne; String ligne = maLigne = reader.readLine(); //Consommer l'entête du browser while (!ligne.equals("")) { ligne = reade...
3
@Override public FileBlob getBlob(String name) throws FileNotFoundException { if( !name.startsWith(HEAD_URN_PREFIX) ) { throw new FileNotFoundException(getClass().getName()+" only finds "+HEAD_URN_PREFIX+"s! Not '"+name+"'."); } name = name.substring(HEAD_URN_PREFIX.length()); if( name.startsWith("//") ...
6
private Tree programPro(){ Tree element = null; Tree program = null; if((element = elementPro())!=null){ if((program = programPro())!=null){ return new Program(element, program); } return element; } return null; }
2
String consumeHexSequence() { int start = pos; while (pos < length) { char c = input[pos]; if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f')) pos++; else break; } return new String(input, sta...
7
public boolean collisionHead(Obstacle[][] obs,int i, int j, int k) { if (i < 0) return false; boolean collide = obs[i][j].CollisionBot(); // box at his head while (k<width){ // try all boxes on Stubi's head line collide |= obs[i][++j].CollisionBot(); k += Obstacle.getWidth(); } if (collide) { ...
3
private List<MessageSwitch> parseSwitches(final ConfigurationSection switches, final String path) { if (switches == null) return Collections.emptyList(); final ConfigurationSection section = switches.getConfigurationSection(path); if (section == null) return Collections.emptyList(); fi...
3
@Override public Object getValueAt(int rowIndex, int columnIndex) { Activity activity; if (rowIndex < activities.size()) { // Get the Activity from the indicated row. activity = activities.get(rowIndex); // Get the appropriate field from the columnIndex if (columnIndex == columnNames...
3
public void dayTransition() { if (dayTime == true) { darkness = darkness - .03f; if (darkness < 0) {darkness = 0;} } else { darkness = darkness + .03f; if (darkness > .95f) {darkness = .95f;} } ...
5
void crawler (String URL){ try { URL my_url = new URL("http://www.vimalkumarpatel.blogspot.com/"); BufferedReader br = new BufferedReader(new InputStreamReader(my_url.openStream())); String strTemp = ""; while(null != (strTemp = br.readLine())){ Syste...
2
public Message poll(EnumMessageType type) { switch(type) { case PROCESS: return hasMessageToProcess() ? MessageDispatchManager.inboundMessageMap.get(getName()).poll() : null; case SEND: return hasMessageToSend() ? MessageDispatchManager.outboundMessageMap.get(getName()).poll() : null; } return null; ...
4
public boolean removeAll(Collection<?> c){ if(c.isEmpty() || c == null) return false; boolean modStatus = false; for(int i = 0; i < size; i++){ if(c.contains(elements[i])){ remove(i); i--; modStatus = true; } } return (modStatus)? true : false; }
6
private void replaceState(State state, State replacement) { if (states.remove(state)) { if (this.xorJoinState.containsValue(state)) { Set<XorJoin> keys = xorJoinState.keySet(); for (XorJoin key : keys) { if (xorJoinState.get(key).equals(state)) { xorJoinState.put(key, replacement); } } ...
8
Tuple<Markers, Markers> createMarkers(Chromosome chr, int numMarkers) { Markers markers = new Markers(); Markers markersCollapsed = new Markers(); int start = 0, startPrev = -1, end = 0, gap = 0; Marker m = null, mcol = null; for (int i = 0; i < numMarkers; i++) { // Interval size int size = rand.nextI...
4
public static void checkOverlap(OrderedList<Alignment> rankAlign, double overlapThresh) { int i=0, j=0, k=0; NodeOrdList<Alignment> aux=rankAlign.getMax(); HashSet<String> nodiOverlap=new HashSet<String>(); while(aux!=null) { Vector<String>[] mapping=aux.getInfo().getMapping(); double[] overlapping=new...
9
@Command(aliases = { "info" }, desc = "Gibt Informationen zu Votes von dir oder einen anderen Spieler aus", usage = "[spielername]", max = 1) @CommandPermissions("nextvote.info") public final void info(final CommandContext args, final CommandSender sender) throws CommandException { String playerName = s...
6
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); try{ Connection adaugareMembriConn = null; ResultSet adaugareMembriResult = null; Statement adaugareMembriStatement = null; PreparedS...
9
* @param mt the microtheory from which to delete the matched assertions * * @throws IOException if a communications error occurs * @throws UnknownHostException if the Cyc server cannot be found * @throws CycApiException if the Cyc server returns an error */ public void unassertMatchingAssertionsWithout...
5
@Override public void enterState(int id, Transition leave, Transition enter) { if (gui != null) { gui.setRootPane(emptyRootWidget); } super.enterState(id, leave, enter); }
1
public void actionPerformed(ActionEvent event) { //DB STUFF try { if (sendAuthentication()) { //dispose current panel dispose(); //You logged in as the manager ManagerMainMenu menu = new ManagerMainMenu(); menu.setVisible(true); } el...
2