text
stringlengths
14
410k
label
int32
0
9
public State parseState(CharSequence content) { boolean isDoubled = false; Matcher doubledMatcher = DOUBLED.matcher(content); if(doubledMatcher.matches()) { isDoubled = true; content = doubledMatcher.group(1); } Map<String, String> styles = new HashMap<St...
3
public void run() { ArrayList<ClientThread> clientTheads = this.clientThreads; try { /* * Create input and output streams for this client. */ inputStream = new BufferedReader( new InputStreamReader(clientSocket.getInputStream())); outputStream = new PrintStream(clientSocket.getOutputStream()); ...
7
public RectControls(Redrawable redrawable, Rectangle rect) { super(); this.rectangle = rect; this.redrawable = redrawable; setPadding(new Insets(10,10,10,10)); setVgap(5); int line = 0; //W add(new Label("Width"),0,line); width = new Slider(1, 200, rect.getW()); add(width,1,line);...
7
@Test public void testDeity(){ Connection conn; try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "root", ""); System.out.println("success"); } catch (ClassNotFoundException...
4
private String[][] getContent(int teamNumber) { FileScanner teamFileScanner = new FileScanner(); Extracter extract = new Extracter(); String currentDir = Main.currentDir; String workspaceFolderName = Main.workspaceFolderName; String teamFolderName = Main.teamFolderName; ...
5
@Override public void onPluginMessageReceived(String channel, Player player, byte[] message) { if (this.permissionsManager == null) return; ReplicatedPermissionsContainer query = null; try { query = ReplicatedPermissionsContainer.fromBytes(message); } catch (Exception ex) {} if (query != nul...
6
public Populator() throws SQLException { this.generators = new Generators(); this.metaDataDao = new MetaDataDao(); }
0
public int read(List<String> buf) { if (buf == null) { return 0; } buf.clear(); if (exists()) { BufferedReader bfReader = null; try { FileReader flReader = new FileReader(this); bfReader = new BufferedReader(flReader); String line = null; while ((line = bfReader.readLine()) != null) { ...
6
public void testPropertyPlusNoWrapSecond() { LocalTime test = new LocalTime(10, 20, 30, 40); LocalTime copy = test.secondOfMinute().addNoWrapToCopy(9); check(test, 10, 20, 30, 40); check(copy, 10, 20, 39, 40); copy = test.secondOfMinute().addNoWrapToCopy(29); che...
2
public int getCantidad() { return cantidad; }
0
public int getAttributeSize(String name) { Attrib a = attrib(name); return a != null ? a.size : -1; }
1
public User connect(List<User> users) { // User input. List<String> words = this.getParser().getInput(); if (words.size() > 1) { for (User u : users) { // If the user is in the list, the connection succeed. if (u.getFirstName().equalsIgnoreCase(wor...
4
public static void make(String path,String[] files){ try { byte data[] = new byte[BUFFER]; FileOutputStream dest = new FileOutputStream(path); BufferedOutputStream buff = new BufferedOutputStream(dest); ZipOutputStream out = new ZipOutputStream(buff); out.setMethod(ZipOutputStream.DEFLATED); ou...
4
public void processClick(int x, int y) { Node p = getNode(x, y); if (p != null) { if (p.getPlayer() == getTurn() || p.getPlayer() == 0) { if (getGridValue(p) != 0) { if (getSelectedNode() != null) { if (!hasInAttack()) { addChangedGuti(selectedNode, p); deSelectNode(selectedNode); ...
9
private boolean jj_2_30(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_30(); } catch(LookaheadSuccess ls) { return true; } finally { jj_save(29, xla); } }
1
private CucaDiagramFileMakerResult createPng(OutputStream os, List<String> dotStrings, FileFormatOption fileFormatOption) throws IOException, InterruptedException { final StringBuilder cmap = new StringBuilder(); double supX = 0; double supY = 0; try { final GraphvizMaker dotMaker = populateImagesAndCrea...
7
public void query(String query) { boolean col=true; int colNum = 0; rowCount = 0; try { String date; Statement st = con.createStatement(); ResultSet rs = st.executeQuery(query); ResultSetMetaData rsmd = rs.getMetaData(); numberOfColumns = rsmd.getCo...
7
public Row getChild(int index) { return index >= 0 && index < getChildCount() ? mChildren.get(index) : null; }
2
public static <T extends Comparable<T>, E> void print(Map<String, String> content, String testName, Node<T,E> root, boolean printHeader, boolean printFooter){ if(printHeader) printHeader(testName); if(content!=null) for(String str : content.keySet()){ System.out.print(str); for(int i=0; i<(30 -s...
6
public String GetActionToBeTaken() { return action; }
0
public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken()); int m = Integer.parseInt(st.nextToken()); int p = ...
8
public static Stella_Class nativeStorageSlotHome(StorageSlot slot, Stella_Class renamed_Class) { { StorageSlot slotwithknowntype = null; loop000 : for (;;) { if (Surrogate.unknownTypeP(slot.type())) { break loop000; } slotwithknowntype = slot; renamed_Class = Surroga...
8
public static int sizeOfRawVarLong(final long value) { if ((value & (0xffffffffffffffffL << 7)) == 0) { return 1; } if ((value & (0xffffffffffffffffL << 14)) == 0) { return 2; } if ((value & (0xffffffffffffffffL << 21)) == 0) { return 3; } if ((value & (0xffffffffffffffffL << 28)) == 0) { retu...
9
public String getURLString() throws UnsupportedEncodingException { StringBuilder sb = new StringBuilder(); for (Entry<String,String> entry : data.entrySet()){ if(entry.getKey() != null && entry.getValue() != null && entry.getKey().length() > 0 && entry.getValue().length() > 0 ) encoding.encodeDataPair(s...
6
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
private static void isAnagram(String first, String second) { if (first.length() == second.length()) { int[] charCount = new int[NUMBER_OF_ASCII]; for (int i = 0; i < first.length(); i++) { charCount[(int)first.charAt(i)]++; charCount[(int)second.charAt(i)]--; } for (int i = 0; i < char...
4
protected void setFoodLevel(int foodLevel) { this.foodLevel = foodLevel; }
0
public static String join(Iterable<?> items, String glue) { StringBuilder sb = new StringBuilder(); boolean first = true; for (Object item : items) { if (!first) { sb.append(glue); } first = false; sb.append(item); } ...
3
public static void addNewRow(JTable table, Container controlsContainer) throws Exception { Object[] row = new Object[controlsContainer.getComponentCount()]; Component comp; String item = null; Object objItem; JTextField textField; JComboBox comboBox; for (int i =...
7
private String getDigEmptySpace(BoardViewer board, String digIndex) { if (digIndex.equals("\\")) { for (int relativePosition=0; relativePosition < board.getBoardSize(); relativePosition++) { String position = Integer.toString(relativePosition * (board.getBoardSize() + 1)); ...
6
public int divide(int _a, int _b) throws DivideByZeroException { if(_b == 0) { throw new DivideByZeroException("Simple.java: Tried to divide by 0."); } return _a / _b; }
1
@Override public boolean propertyDefaultExists(String key) { return default_values.containsKey(key); }
0
public Object pop() { if (this.top == null) { return null; } else { Object item = top.getHead(); this.top = top.getTail(); return item; } }
1
public void testForFields_time_m() { DateTimeFieldType[] fields = new DateTimeFieldType[] { DateTimeFieldType.millisOfSecond(), }; int[] values = new int[] {40}; List types = new ArrayList(Arrays.asList(fields)); DateTimeFormatter f = ISODateTimeFormat.forFields(t...
2
public OutputFile(String fileName) { //set the config file filename this.fileName = fileName; //open the file for output OpenFile(); }
0
public void setTokenType(int newTokenType) { boolean isValidType = 0<newTokenType && 10>newTokenType; if(isValidType) { this.tokenType = newTokenType; } }
2
@Override public User findUser(String name) { // TODO Auto-generated method stub for (User user : fdb.getUsers()) { if (user.getName().equals(name)){ return user; } } return null; }
2
@Override public Iterable<PlanTicket> filter(Iterable<PlanTicket> source, final TicketPoolQueryArgs args) throws Exception { return Queries.query(source).where(new Predicate<PlanTicket>(){ @Override public boolean evaluate(PlanTicket ticket) throws Exception { long t1 = ticket.getSeat().getSeatTyp...
0
public MemorySourceJavaFileObject(String name, String code) { super(createUriFromName(name), Kind.SOURCE); if (code == null) { throw new NullPointerException("code"); } this.code = code; }
1
private void readLuminance() { int type = sourceImage.getType(); if (type == BufferedImage.TYPE_INT_RGB || type == BufferedImage.TYPE_INT_ARGB) { int[] pixels = (int[]) sourceImage.getData().getDataElements(0, 0, width, height, null); for (int i = 0; i < picsize; i++) { int p = pixels[i]; int...
9
private void generateLabyrinth(Node2 node) { node.visit(); int x = node.getX(); int y = node.getY(); ArrayList<Node2> surroundingNodes = new ArrayList<Node2>(); if (x > 0) surroundingNodes.add(nodeNetwork[x-1][y]); if (y > 0) surroundingNodes.add(nodeNetwork[x][y-1]); if (x < width - 1) surroundingNodes.a...
6
public void setNazwisko(String nazwisko) { this.nazwisko = nazwisko; }
0
private Trainer getTrainerFromCurrentRow(ResultSet results) { Integer id = extractNumber(results,"idEntity"); String valueEntity = extractString(results, "valueEntity"); Trainer t = new Trainer(valueEntity); t.setId(id); ResultSet rs = this.getResultsOfQuery("SELECT ...
6
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 1155, 900); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setLayout(null); ImageIcon refreshImage = new ImageIcon(getClass().getResource("ref.png")); JButton btn_Refresh = new JButton("", refreshImage); btn_Refr...
8
public static void main(String[] args) { CFG.INTERNET = Assistant.isInternetReachable(); Settings.loadSettings(); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e1) { e1.printStackTrace(); } // -- UniVersion & Reporter initialization -- // UniV...
6
static final String encode(final String s) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c == '\\') { sb.append("\\\\"); } else if (c < 0x20 || c > 0x7f) { sb.append("\\u"); if (c < 0x10) { sb.append("000"); } else if (c < 0x10...
7
private int countCharacterInNumber(int pN){ int count = 0; int lastTwo = pN%100; int hundreds = (pN%1000-lastTwo) / 100; int thou = (pN%10000 - hundreds - lastTwo) / 1000; if(lastTwo < 20 && lastTwo > 9){ int toTranslate = lastTwo%10; System.out.println(lastTwo); count+=teens[toTranslate]; } else {...
7
public static void main(String[] args) throws IOException { DataTuple[] trainingData = DataSaverLoader.LoadPacManData(); // We have 10 input neurons double[][] pacmanTrainingInput = new double[trainingData.length][]; /* * We'll have four outputs, each for one of possible movement. * The order of ...
9
public static void setSize(int width, int height) { System.out.println("Target: " +width +", " +height); //get preset screen size int nw = Display.getDesktopDisplayMode().getWidth(); int nh = Display.getDesktopDisplayMode().getHeight(); System.out.println("Native: " +nw +", " +nh); try { //derive big...
5
private boolean outOfBounds(int var1, int var2) { return var1 < 0 || var1 >= 32 || var2 < 0 || var2 >= 32; }
3
public ArrayList<Element> arrangeElement() { ArrayList<Element> operator = new ArrayList<Element>(); int max = elementArray.size(); int Eleindex = 0; int opeindex = 0; for(int i = 0; i < max; i++){ if(elementArray.get(i).elementTrue == true){ arrangeElementArray.add(elementArray.get(i)); Eleindex++...
5
@Override public void endElement(String uri, String localName, String qName) throws SAXException { if (qName.equals("currentTime")) getResponse().setCurrentTime(getDate()); else if (qName.equals("cachedUntil")) getResponse().setCachedUntil(getDate()); else if (qName.equals("error")) error.setError(getSt...
3
public void doReply(InputStream in, OutputStream out, String cmd) throws IOException, BadHttpRequest { if (cmd.startsWith("POST /rmi ")) processRMI(in, out); else if (cmd.startsWith("POST /lookup ")) lookupName(cmd, in, out); else super.doReply(in,...
2
@Test public void testDescendingIterator() { ThriftyList<Integer> list = new ThriftyList<Integer>(); Iterator<Integer> ri = list.descendingIterator(); Assert.assertFalse(ri.hasNext()); try { ri.next(); Assert.fail(); } catch (NoSuchElementException e) { } try { ri.remove...
7
public ArrayList<Integer> searchOR(String str){ int lg = str.length(); int indexOfAnd = str.indexOf(" OR "); String firstElement = str.substring(0 , indexOfAnd); String secondElement = str.substring(indexOfAnd+4,lg); ArrayList<Integer> rs1 = search(firstElement); ArrayLi...
8
public int[] bytesEnInt(byte[] octets){ int aRetourner[] = new int[octets.length*8]; int curseurInt = 0; for(int i = 0;i<octets.length;i++){ for(int j=0;j<8;j++){ aRetourner[curseurInt] = recupererBit(octets[i],j); curseurInt++; } } return aRetourner; }
2
private void _initStreamsterApiInterfaceProxy() { try { streamsterApiInterface = (new com.novativa.www.ws.streamsterapi.StreamsterApiLocator()).getStreamsterApiPort(); if (streamsterApiInterface != null) { if (_endpoint != null) ((javax.xml.rpc.Stub)streamsterApiInterface)._setProperty...
3
private static void hamilton(int node, int level) { // Add the current node in the cycle currentCycle[level] = node + 1; if ((START_NODE == node) && (level > 0)) { if (level == GRAPH_SIZE) { // the cycle is hamilton with min sum minSum = curSum; ...
8
public static void insert(Node currentNode, JoeTree tree, OutlineLayoutManager layout) { // Abort if node is not editable if (!currentNode.isEditable()) { return; } tree.clearSelection(); Node newNode = new NodeImpl(tree,""); int newNodeIndex = currentNode.currentIndex() + 1; Node newNodeParent = c...
1
public void paintComponent(Graphics aGraphics) { int width = this.getWidth(); int height = this.getHeight(); aGraphics.setColor(Color.white); aGraphics.fillRect(0,0,width,height); BufferedImage picture = (BufferedImage)this.createImage(width,height); Graphics aGraphicsBuffer = picture.getGraphics(); aGr...
5
public int[] nextInts(int n) throws IOException { int[] res = new int[n]; for (int i = 0; i < n; ++i) { res[i] = nextInt(); } return res; }
1
@Override protected Void doInBackground() throws Exception { Client loginClient = new Client(4096 * 2, 4096 * 2); loginClient.getKryo().register(PacketLogin.class); loginClient.getKryo().register(PacketLoginResponse.class); loginClient.getKryo().register(PacketRequestCaptcha.class);...
3
private final int method433(Class39_Sub2 class39Sub2, int i, short word0) { int j = class39Sub2.xPositions[i]; int k = class39Sub2.yPositions[i]; int l = class39Sub2.zPositions[i]; for (int i1 = 0; i1 < anInt2818; i1++) { if (j == xPositions[i1] && k == yPositions[i1] && l ==...
5
public LogisticRegression(PdfFeatureAwareLogisticRegression pdf, double[] instanceWeights, double[][] featureValues, int[] labels, String type, //Bijection featureMapping, Bijection labelMapping, double[] regularizationWeights, double[] regularizationBiases, double LBFGS_TOLERANCE, int L...
9
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); JLPaciente = new javax.swing.JLabel(); JTFPaciente = new javax.swing.JTextField(); JLPerio...
4
public void setEspecialidad(String especialidad) { this.especialidad = especialidad; }
0
@Override public State nextState(Random random) { State newState; int value = random.nextInt(100); if (Utils.isBetween(value, 0, P_MU)) { newState = new Unmodified(); } else if (Utils.isBetween(value, P_MU, P_MD)) { newState = new Deleted(); } else { newState = new Modified(); } return new...
2
public void actionPerformed(ActionEvent ae) { String act = ae.getActionCommand(); this.repaint(); if (act.compareTo("Start") == 0) { b2.setBackground(Color.red); b1.setVisible(false); b2.setVisible(true); b1.setDisplayedMnemonicIndex(0); t = new webserver(); if (t.isRuning()) { t.setRuning...
7
@Override public void mousePressed(MouseEvent event) { if (isEnabled() && !event.isPopupTrigger() && event.getButton() == 1) { mInMouseDown = true; mPressed = true; repaint(); MouseCapture.start(this, Cursor.getDefaultCursor()); } }
3
public static void main(String[] args) { //Bonus problem is worked out below all commented text //Part 1a: Experimenting with if /*Scanner keyboard = new Scanner(System.in); System.out.print("Please enter your age: "); int age = keyboard.nextInt();*/ /* if (age > 20) // no semicolon here!!! { ...
5
public void testNegated() { Months test = Months.months(12); assertEquals(-12, test.negated().getMonths()); assertEquals(12, test.getMonths()); try { Months.MIN_VALUE.negated(); fail(); } catch (ArithmeticException ex) { // expected ...
1
public void getEntitiesOfTypeWithinAAAB(Class par1Class, AxisAlignedBB par2AxisAlignedBB, List par3List) { int var4 = MathHelper.floor_double((par2AxisAlignedBB.minY - World.MAX_ENTITY_RADIUS) / 16.0D); int var5 = MathHelper.floor_double((par2AxisAlignedBB.maxY + World.MAX_ENTITY_RADIUS) / 16.0D); ...
8
@Override public String execute() throws Exception { try { Map session = ActionContext.getContext().getSession(); Campaign camp = (Campaign) session.get("campa"); CampaignDemography campdemo = new CampaignDemography(); campdemo.setCampaign(camp); ...
3
public void checkMailFiles() { // Order, in dem die Mails liegen File mailDirectory = Proxy.MAIL_STORAGE_PATH.toFile(); // Ordner und Datein im Mailordner File[] mailFiles = mailDirectory.listFiles(); // Auswerten, ob die Dateien, die direkt im Mailordner liegen, bereits // bekannt sind, sonst hinzufuegen. ...
2
private void chooseStartingTile(Match match, int number) throws RuntimeException { // whoops - must set tile Tile[][] tiles = match.getTiles(); int height = tiles.length; int width = tiles[0].length; if (number == 0) { tile = tiles[0][0]; } else if (number == ...
4
@Override public boolean equals( Object other ) { if ( other == this ) { return true; } if ( !( other instanceof TDoubleList ) ) return false; if ( other instanceof TDoubleArrayList ) { TDoubleArrayList that = ( TDoubleArrayList )other; if ( that....
9
int checkFitness(RoomScheme chromo){ Subject subject; int fitness = 0; ArrayList<Integer> subjectsChecked = new ArrayList<>(); //Check conditions for 1 Subjects for(int a=0; a<5; a++){ for(int b=0; b<6; b++){ subject = chromo.rooms[a][b]; if(subj...
3
public void reserveBook(int idNumber, String userName) { int numberOfBooksChecked = 0; for (Book item : books) { numberOfBooksChecked++; if ( item.getIdNumber() == idNumber) { AddBookIdAndUserToReservedList(idNumber,userName); myView.th...
3
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); String FirstName = request.getParameter("FirstName"); String LastName = request.getParameter("LastName"); String Pho...
1
private String addOptionalsToLaTex() { String palautettava = ""; if (volume != 0) { palautettava += "VOLUME = {" + volume + "},\n"; } if (series != null) { palautettava += "SERIES = {" + parser.parse(series) + "},\n"; } if (address != null) { ...
7
public String nextToken() throws JSONException { char c; char q; StringBuffer sb = new StringBuffer(); do { c = next(); } while (Character.isWhitespace(c)); if (c == '"' || c == '\'') { q = c; for (; ;) { c = next(); ...
9
public String find(int n) { int ans = 0; int a; while(true){ a = find_f(n); if(a == n)break; ans++; n = n - a; } if(ans % 2 == 1){ return "John"; }else{ return "Brus"; } }
3
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final StockPK other = (StockPK) obj; if (!Objects.equals(this.Pcode, other.Pcode)) { return false; ...
4
private static void show_Statistics(War war) { int hit = 0; int damage = 0; int launched = 0; int intercept = 0; int destroyed_launcher = 0; for (EnemyMissile missile : war.getAllMissiles()) { if (missile.getMode() == EnemyMissile.Mode.Hit) { hit += 1; launched += 1; damage += missile.getDama...
8
@Override public int loadGame(String name) throws IOException{ XStream xstream = new XStream(); File file = new File("saves/" + name + ".xml"); ServerModel game = (ServerModel) xstream.fromXML(file); ArrayList<Road> roads = game.getMap().getRoads(); ArrayList<Settlement> settlements = game.getMap().getSet...
9
public Display getActiveDisplay() { for(Display display : displays) { if(display.isActive()) { return display; } } return null; }
2
public boolean quizTaken(int week, User user) { PreparedStatement statement = null; Connection connection = null; try { try { connection = data.getConnection(); statement = connection.prepareStatement("SELECT week FROM UserQuiz WHERE week = ? AND userName = ?")...
4
public boolean getOpenHr(int i, int j){ return openHr[i][j]; }
0
@Override public boolean execute(MOB mob, List<String> commands, int metaFlags) throws java.io.IOException { Vector<String> origCmds=new XVector<String>(commands); if(CMLib.flags().isSleeping(mob)) { CMLib.commands().doCommandFail(mob,origCmds,L("You are already asleep!")); return false; } final Roo...
9
private void push(JSONObject jo) throws JSONException { if (this.top >= maxdepth) { throw new JSONException("Nesting too deep."); } this.stack[this.top] = jo; this.mode = jo == null ? 'a' : 'k'; this.top += 1; }
2
public boolean PerformTestNav() { if (AboutUsTest() && TestImage(0)) { driver.get(baseUrl); if (MenuTest() && TestImage(1)) { driver.get(baseUrl); if (ServicesTest() && TestImage(2)) { driver.get(baseUrl); if (ContactTest() && TestImage(3)) { driver.get(baseUrl); return true; ...
8
@Override public void setPlayers(PlayerInfo[] value) { //set header label indicating how many players are still needed String labelText = ""; if(value.length == NUMBER_OF_PLAYERS){ labelText = "This game is ready to go!"; //addAiButton.setEnabled(false); } else{ labelText = ("Waiting for Players: Ne...
2
public static RenderMaster getRenderMaster() { if(renderMaster != null) { return renderMaster; } try{ Display.setDisplayMode(new DisplayMode(800, 600)); Display.create(); } catch (Exception e) { System.out.println("RenderMasterFactory Failing hardcore " + e); System.exit(-1); } i...
5
@Override public void keyTyped(KeyEvent e) { if(keyBind[0]){ SubTerra.getLevel().p.move(0, -1); } if(keyBind[1]){ SubTerra.getLevel().p.move(0, 1); } if(keyBind[2]){ SubTerra.getLevel().p.move(1, 0); } if(keyBind[3]){ ...
4
public boolean checkFields(JTextField name, JTextField direction, JTextField speed, JTextField rowField, JTextField columnField) { if (name.getText().equals("") || direction.getText().equals("") || speed.getText().equals("") || rowField.getText().equals("") || columnField.getText().equals("")) { ...
7
public boolean setShutdownmenuButtonHeight(int height) { boolean ret = true; if (height < 0) { this.buttonShutdownmenu_Height = UISizeInits.SHDMENU_BTN.getHeight(); ret = false; } else { this.buttonShutdownmenu_Height = height; } somethingCha...
1
public void setCompany(Company company) { this.company = company; }
0
private void initializeFilter() throws CustomFilterException { String regExFilter = this.configuration.getRegExFilter(); if (regExFilter == null) { String[] customFilter = this.configuration.getCustomFilter(); if (customFilter == null) { this.logger.setFilter(null); } else { CustomFactory filterFac...
2
public void afficherVisiteur(Visiteur unVisiteur){ this.vue.getjTextFieldNom().setText(unVisiteur.getNom()); this.vue.getjTextFieldPrenom().setText(unVisiteur.getPrenom()); this.vue.getjTextFieldAdresse().setText(unVisiteur.getAdresse()); this.vue.getjTextFieldCP().setText(unVisiteur.get...
1
private void jButtonGuardarNovoFornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarNovoFornecedorActionPerformed // BOTAO GUARDAR NOVO FORNECEDOR -> JANELA NOVO FORNECEDOR String nome = jTextFieldNomeFornecedor.getText(); String morada = jTextFieldMoradaFor...
7