bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private void parseBody() { if ( isParsed ) { return; } // Already read the header. int offset = 0; byte n = body[offset++]; short recordCount = (short)(n < 0 ? 256 + n : n); // parsing of port and ip is done on demand in getHostAddress() and ...
private void parseBody() { if ( isParsed ) { return; } // Already read the header. int offset = 0; byte n = body[offset++]; short recordCount = (short)(n < 0 ? 256 + n : n); // parsing of port and ip is done on demand in getHostAddress() and ...
1,116,730
public Dimensions calcDim(Dimensions l,Dimensions r) { if(l.equals(r) && l.is1D()) return Dimensions.ONE; else return null; }
public Dimensions calcDim(Dimensions l,Dimensions r) { if(l.equals(r) && l.is1D()) return Dimensions.ONE; return null; }
1,116,731
public Object dot(Object param1, Object param2) throws ParseException { if(param1 instanceof MVector && param2 instanceof MVector) return dot((MVector) param1,(MVector) param2); else return super.mul(param1,param2); }
public Object dot(Object param1, Object param2) throws ParseException { if(param1 instanceof MVector && param2 instanceof MVector) return dot((MVector) param1,(MVector) param2); else return super.mul(param1,param2); }
1,116,732
public int compare(Number a,Number b) { return ((Rational) a).compareTo((Rational) b); }
public int compare(Number a,Number b) { return ((Rational) a).compareTo(b); }
1,116,735
public boolean equals(Number a,Number b) { return ((Rational) a).compareTo((Rational) b) == 0; }
public boolean equals(Number a,Number b) { return ((Rational) a).compareTo(b) == 0; }
1,116,736
public void setStepEndTemp(int i, int t){ if (tempUnits.equals("C")) ((MashStep)steps.get(i)).setEndTemp(cToF(t)); else ((MashStep)steps.get(i)).setEndTemp(t); calcMashSchedule(); }
public void setStepEndTemp(int i, double t){ if (tempUnits.equals("C")) ((MashStep)steps.get(i)).setEndTemp(cToF(t)); else ((MashStep)steps.get(i)).setEndTemp(t); calcMashSchedule(); }
1,116,739
public void doAutoConnectCheck() { if ( !networkMgr.isNetworkJoined() || !networkMgr.isConnected() ) { return; } int hostCount; int requiredHostCount; if ( isAbleToBecomeUltrapeer() ) { // as a ultrapeer I'm primary searching for Ultrapeers o...
public void doAutoConnectCheck() { if ( !networkMgr.isNetworkJoined() || !networkMgr.isConnected() ) { return; } int hostCount; int requiredHostCount; if ( isAbleToBecomeUltrapeer() ) { // as a ultrapeer I'm primary searching for Ultrapeers o...
1,116,741
private void drag(int dragAmount, int dragFrom, SeismogramShapeIterator iterator){ double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); System.out.println("SeisPoint[0] forehand: " + seisPoints[0] + ...
private void drag(int dragAmount, int dragFrom, SeismogramShapeIterator iterator){ double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); System.out.println("SeisPoint[0] forehand: " + seisPoints[0] + ...
1,116,742
private void drag(int dragAmount, int dragFrom, SeismogramShapeIterator iterator){ double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); System.out.println("SeisPoint[0] forehand: " + seisPoints[0] + ...
private void drag(int dragAmount, int dragFrom, SeismogramShapeIterator iterator){ double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); System.out.println("SeisPoint[0] forehand: " + seisPoints[0] + ...
1,116,743
public void dragLeft(int dragAmount, SeismogramShapeIterator iterator){ System.out.println("Draggin left"); drag(dragAmount, -dragAmount, iterator); }
public void dragLeft(int dragAmount, SeismogramShapeIterator iterator){ drag(dragAmount, -dragAmount, iterator); }
1,116,744
public void dragRight(int dragAmount, SeismogramShapeIterator iterator){ System.out.println("Draggin right"); drag(dragAmount, 0, iterator); }
public void dragRight(int dragAmount, SeismogramShapeIterator iterator){ System.out.println("Draggin right"); drag(dragAmount, 0, iterator); }
1,116,745
public void plot(SeismogramShapeIterator iterator){ System.out.println("Plotting all points"); iterator.setSeisPoints(DisplayUtils.getSeisPoints(dss.getSeismogram(), iterator.getTime())); iterator.setBaseSeisPoint(); iterator.setPo...
public void plot(SeismogramShapeIterator iterator){ iterator.setSeisPoints(DisplayUtils.getSeisPoints(dss.getSeismogram(), iterator.getTime())); iterator.setBaseSeisPoint(); iterator.setPointsPerPixel(); iterator.setPoints(...
1,116,746
public Object atanh(Object param) throws ParseException { if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.atanh(); } else if (param instanceof Complex) { return ((Complex)param).atanh(); } throw new ParseException("Invalid parameter type"); }
public Object atanh(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).atanh(); } else if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.atanh(); } else if (param instanceof Complex) { return ((Complex)par...
1,116,747
public Object atanh(Object param) throws ParseException { if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.atanh(); } else if (param instanceof Complex) { return ((Complex)param).atanh(); } throw new ParseException("Invalid parameter type"); }
public Object atanh(Object param) throws ParseException { if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.atanh(); } else if (param instanceof Complex) { return ((Complex)param).atanh(); } throw new ParseException("Invalid parameter type"); }
1,116,748
private boolean evaluateHTTPRequest() throws IOException { String logMsg = "HTTP Request: " + httpRequest.buildHTTPRequestString(); NLogger.debug( UploadEngine.class, logMsg); uploadState.addToUploadLog( logMsg ); GnutellaRequest gRequest = httpRequest.getGnutellaRequest(); if ...
private boolean evaluateHTTPRequest() throws IOException { String logMsg = "HTTP Request: " + httpRequest.buildHTTPRequestString(); NLogger.debug( UploadEngine.class, logMsg); uploadState.addToUploadLog( logMsg ); GnutellaRequest gRequest = httpRequest.getGnutellaRequest(); if ...
1,116,749
private boolean evaluateHTTPRequest() throws IOException { String logMsg = "HTTP Request: " + httpRequest.buildHTTPRequestString(); NLogger.debug( UploadEngine.class, logMsg); uploadState.addToUploadLog( logMsg ); GnutellaRequest gRequest = httpRequest.getGnutellaRequest(); if ...
private boolean evaluateHTTPRequest() throws IOException { String logMsg = "HTTP Request: " + httpRequest.buildHTTPRequestString(); NLogger.debug( UploadEngine.class, logMsg); uploadState.addToUploadLog( logMsg ); GnutellaRequest gRequest = httpRequest.getGnutellaRequest(); if ...
1,116,750
private void sendBinaryData() throws IOException { NLogger.debug(UploadEngine.class, "About to send binary range: " + startOffset + " to " + endOffset); uploadState.addToUploadLog( "About to send binary range: " + startOffset + " to " + endOffset ); // the upload is a...
private void sendBinaryData() throws IOException { NLogger.debug(UploadEngine.class, "About to send binary range: " + startOffset + " to " + endOffset); uploadState.addToUploadLog( "About to send binary range: " + startOffset + " to " + endOffset ); // the upload is a...
1,116,752
public synchronized int getAvailableByteCount( boolean blockTillAvailable ) { updateWindow( blockTillAvailable ); int bytesAllowed = bytesRemaining; // If there is another controller we are chained to, call it. if( nextContollerInChain != null ) { bytesAllowed = Math...
public synchronized int getAvailableByteCount( int maxToRequest, boolean blockTillAvailable, boolean markBytesUsed ) throws IOException { updateWindow( blockTillAvailable ); int bytesAllowed = bytesRemaining; // If there is another controller we are chained to, call it. if( nextContol...
1,116,753
public synchronized int getAvailableByteCount( boolean blockTillAvailable ) { updateWindow( blockTillAvailable ); int bytesAllowed = bytesRemaining; // If there is another controller we are chained to, call it. if( nextContollerInChain != null ) { bytesAllowed = Math...
public synchronized int getAvailableByteCount( boolean blockTillAvailable ) { updateWindow( blockTillAvailable ); int bytesAllowed = Math.max( 0, Math.min( maxToRequest, bytesRemaining ) ); // If there is another controller we are chained to, call it. if( nextContollerInChain != null ...
1,116,754
public synchronized int getAvailableByteCount( boolean blockTillAvailable ) { updateWindow( blockTillAvailable ); int bytesAllowed = bytesRemaining; // If there is another controller we are chained to, call it. if( nextContollerInChain != null ) { bytesAllowed = Math...
public synchronized int getAvailableByteCount( boolean blockTillAvailable ) { updateWindow( blockTillAvailable ); int bytesAllowed = bytesRemaining; // If there is another controller we are chained to, call it. if( nextContollerInChain != null ) { bytesAllowed = Math...
1,116,755
public void actionPerformed(ActionEvent ev) { Object o = ev.getSource(); String font = fontComboModel.getSelectedItem().toString(); String fontSize = sizeSpin.getValue().toString(); String printOptions = " <PRINT FONTSIZE=\"" + fontSize + "pt\" FONTFACE=\"" + font + "\"/>\n"; if (o == prevButton) { File file =...
public void actionPerformed(ActionEvent ev) { Object o = ev.getSource(); String font = fontComboModel.getSelectedItem().toString(); String fontSize = sizeSpin.getValue().toString(); String printOptions = " <PRINT FONTSIZE=\"" + fontSize + "pt\" FONTFACE=\"" + font + "\"/>\n"; if (o == prevButton) { File file =...
1,116,757
public Complex getComplexValue() { return calculateComplexValue((Complex) group.getRootVal()); }
public Complex getComplexValue() { return calculateComplexValue(group.getRootVal()); }
1,116,758
public synchronized void pushData(SeisDataChangeEvent sdce) { AmpConfigData dssData = (AmpConfigData)ampData.get(sdce.getSource()); dssData.addSeismograms(sdce.getSeismos()); this.seismos = null; calculateAmp(); recalculateAmp(); ...
public synchronized void pushData(SeisDataChangeEvent sdce) { AmpConfigData dssData = (AmpConfigData)ampData.get(sdce.getSource()); dssData.addSeismograms(sdce.getSeismos()); this.seismos = null; calculateAmp(); recalculateAmp(); ...
1,116,759
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs) throws ParseException { if(!(res instanceof Scaler)) throw new ParseException("trace: result must be a scaler"); if(!(lhs instanceof Matrix)) throw new ParseException("trace: argument must be a matrix"); Matrix mat = (Matrix) lhs; if( mat.getNu...
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs) throws ParseException { if(!(res instanceof Scaler)) throw new ParseException("trace: result must be a scaler"); if(!(lhs instanceof Matrix)) throw new ParseException("trace: argument must be a matrix"); Matrix mat = (Matrix) lhs; if( mat.getNu...
1,116,760
public void testFindUserRole() { // write list List<UserRole> userRoleList = writeUserRole(); // read UserRole userRole = userRoleList.get((int) Math.random()*userRoleList.size()); assertEquals(userRole, authorizationDao.findUserRoleByNaturalId(userRole.getUser(), userRole.getSer...
public void testFindUserRole() { // write list List<UserRole> userRoleList = writeUserRole(); // read UserRole userRole = userRoleList.get((int) Math.random()*userRoleList.size()); assertEquals(userRole, authorizationDao.findUserRoleByNaturalId(userRole.getUserGroup(), userRole.g...
1,116,761
public void testPersistUserRole() { //write UserRole userRole = createAndPersistUserRole(authorizationDao); hibernateTemplate.flush(); //read assertEquals(userRole, authorizationDao.findUserRoleByNaturalId(userRole.getUser(), userRole.getService(), userRole.getServiceExtension())...
public void testPersistUserRole() { //write UserRole userRole = createAndPersistUserRole(authorizationDao); hibernateTemplate.flush(); //read assertEquals(userRole, authorizationDao.findUserRoleByNaturalId(userRole.getUserGroup(), userRole.getService(), userRole.getServiceExtensi...
1,116,762
public MatrixJep() { super(); nf = new MatrixNodeFactory(); symTab = new DSymbolTable(mvf); opSet = new MatrixOperatorSet(); this.parser.setInitialTokenManagerState(Parser.NO_DOT_IN_IDENTIFIERS); Operator tens = ((MatrixOperatorSet) opSet).getMList(); pv.addSpecialRule(tens,(PrintVisitor.PrintRulesI) tens.getPF...
public MatrixJep() { super(); nf = new MatrixNodeFactory(); symTab = new DSymbolTable(mvf); opSet = new MatrixOperatorSet(); this.parser.setInitialTokenManagerState(ParserConstants.NO_DOT_IN_IDENTIFIERS); Operator tens = ((MatrixOperatorSet) opSet).getMList(); pv.addSpecialRule(tens,(PrintVisitor.PrintRulesI) t...
1,116,763
public Object evaluate(Node node) throws ParseException { Object res = mev.evaluate((MatrixNodeI) node,this); if(res instanceof Scaler) return ((Scaler) res).getEle(0); else return res; }
public Object evaluate(Node node) throws ParseException { Object res = mev.evaluate((MatrixNodeI) node,this); if(res instanceof Scaler) return ((Scaler) res).getEle(0); else return res; }
1,116,764
public Object getValueAsObject() { try { Object res = mev.evaluate((MatrixNodeI) getTopNode(),this); if(res instanceof Scaler) return ((Scaler) res).getEle(0); else return res; } catch(Exception e) { this.errorList.addElement("Error during evaluation:"); this.errorList.addElement(e.getMessage());...
public Object getValueAsObject() { try { Object res = mev.evaluate((MatrixNodeI) getTopNode(),this); if(res instanceof Scaler) return ((Scaler) res).getEle(0); else return res; } catch(Exception e) { this.errorList.addElement("Error during evaluation:"); this.errorList.addElement(e.getMessage());...
1,116,765
public synchronized void doWs( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { File dir = getWorkspace().getLocal(); if(!dir.exists()) { // if there's no workspace, report a nice error message rsp.forward(this,"noWorkspace",req); } else { ...
public void doWs( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { File dir = getWorkspace().getLocal(); if(!dir.exists()) { // if there's no workspace, report a nice error message rsp.forward(this,"noWorkspace",req); } else { ser...
1,116,766
public void saveAsHTML(File f, String xslt, String options) throws Exception { // save file as xml, then transform it to html File tmp = new File("tmp.xml"); FileWriter out = new FileWriter(tmp); out.write(myRecipe.toXML(options)); out.close(); // find the xslt stylesheet in the classpath // URL xsltUrl = get...
public void saveAsHTML(File f, String xslt, String options) throws Exception { // save file as xml, then transform it to html File tmp = new File("tmp.xml"); FileWriter out = new FileWriter(tmp); out.write(myRecipe.toXML(options)); out.close(); // find the xslt stylesheet in the classpath // URL xsltUrl = get...
1,116,767
public void printIntroText() { println("DJep: differention in JEP. eg. diff(x^2,x)"); printStdHelp(); }
public void printIntroText() { println("DJep: differentation in JEP. eg. diff(x^2,x)"); printStdHelp(); }
1,116,768
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
public void processEquation(Node node) throws ParseException { DJep dj = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); ...
1,116,769
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(dj.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); ...
1,116,770
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = dj.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); ...
1,116,771
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(dj.toString(processed)); } Node simp = j.simplify(processed); ...
1,116,772
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = dj.simplify(processed); ...
1,116,773
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
1,116,774
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
1,116,775
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
public void processEquation(Node node) throws ParseException { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); i...
1,116,776
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
1,116,778
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
1,116,779
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
1,116,780
private void saveOptions() { // cost tab: opts.setProperty("optMiscCost", txtOtherCost.getText()); opts.setProperty("optBottleSize", txtBottleSize.getText()); opts.setProperty("optBottleU", (String) cmbBottleSize.getSelectedItem()); // Brewer tab: opts.setProperty("optBrewer", txtBrewerName.getText()); opts.set...
private void saveOptions() { // cost tab: opts.setProperty("optMiscCost", txtOtherCost.getText()); opts.setProperty("optBottleSize", txtBottleSize.getText()); opts.setProperty("optBottleU", (String) cmbBottleSize.getSelectedItem()); // Brewer tab: opts.setProperty("optBrewer", txtBrewerName.getText()); opts.set...
1,116,781
private void setOptions() { // new recipe tab: boilTempTxt.setText(opts.getProperty("optBoilTempF")); batchSizeTxt.setText(opts.getProperty("optPostBoilVol")); maltUnitsComboModel.addOrInsert(opts.getProperty("optMaltU")); hopsUnitsComboModel.addOrInsert(opts.getProperty("optHopsU")); volUnitsComboModel.addOrI...
private void setOptions() { // new recipe tab: batchSizeTxt.setText(opts.getProperty("optPostBoilVol")); maltUnitsComboModel.addOrInsert(opts.getProperty("optMaltU")); hopsUnitsComboModel.addOrInsert(opts.getProperty("optHopsU")); volUnitsComboModel.addOrInsert(opts.getProperty("optSizeU")); // cost tab:...
1,116,783
public static void main(String args[]) throws IOException { DJepApplet app = new DJepApplet(); app.init(); Frame mainFrame = new Frame("Wallpaper patterns"); mainFrame.setBounds(0,0,200,200); mainFrame.add(app); mainFrame.show(); }
public static void main(String args[]) { DJepApplet app = new DJepApplet(); app.init(); Frame mainFrame = new Frame("Wallpaper patterns"); mainFrame.setBounds(0,0,200,200); mainFrame.add(app); mainFrame.show(); }
1,116,785
private boolean calcChangeLog(Build build, List<String> changedFiles, File changelogFile, BuildListener listener) { if(build.getPreviousBuild()==null || changedFiles.isEmpty()) { // nothing to compare against, or no changes listener.getLogger().println("$ no changes detected"); ...
private boolean calcChangeLog(Build build, List<String> changedFiles, File changelogFile, BuildListener listener) { if(build.getPreviousBuild()==null || (changedFiles!=null && changedFiles.isEmpty())) { // nothing to compare against, or no changes listener.getLogger().println("$ no chan...
1,116,786
private boolean calcChangeLog(Build build, List<String> changedFiles, File changelogFile, BuildListener listener) { if(build.getPreviousBuild()==null || changedFiles.isEmpty()) { // nothing to compare against, or no changes listener.getLogger().println("$ no changes detected"); ...
private boolean calcChangeLog(Build build, List<String> changedFiles, File changelogFile, BuildListener listener) { if(build.getPreviousBuild()==null || changedFiles.isEmpty()) { // nothing to compare against, or no changes listener.getLogger().println("$ no changes detected"); ...
1,116,787
public boolean checkout(Build build, Launcher launcher, FilePath dir, BuildListener listener, File changelogFile) throws IOException { List<String> changedFiles = null; // files that were affected by update. null this is a check out if(canUseUpdate && isUpdatable(dir.getLocal())) { changedF...
public boolean checkout(Build build, Launcher launcher, FilePath dir, BuildListener listener, File changelogFile) throws IOException { List<String> changedFiles = null; // files that were affected by update. null this is a check out if(canUseUpdate && isUpdatable(dir.getLocal())) { changedF...
1,116,788
public String toXML() { StringBuffer sb = new StringBuffer(); sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"); sb.append("<STRANGEBREWRECIPE version = \"2.0A\">\n"); sb.append(" <DETAILS>\n"); sb.append(" <NAME>" + name + "</NAME>\n"); sb.append(" <NOTES>" + comments + "</NOTES>\n"); sb.append...
public String toXML() { StringBuffer sb = new StringBuffer(); sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"); sb.append("<STRANGEBREWRECIPE version = \"2.0A\">\n"); sb.append(" <DETAILS>\n"); sb.append(" <NAME>" + name + "</NAME>\n"); sb.append(" <NOTES>" + comments + "</NOTES>\n"); sb.append...
1,116,789
public boolean drawName(Graphics2D canvas, int xPosition, int yPosition){ if(visible){ canvas.setPaint(color); canvas.drawString(name, xPosition, yPosition); return true; } return false; }
public boolean drawName(Graphics2D canvas, int xPosition, int yPosition){ if(visible){ canvas.setPaint(color); canvas.drawString(getName(), xPosition, yPosition); return true; } return false; }
1,116,790
public String getName(){ return name; }
public String getName(){ return getSeismogram().getName(); }
1,116,791
public String toString(){ return name; }
public String toString(){ return getName(); }
1,116,792
public int countCredentialByPrincipal(String principal) { return ( (Integer) iterate(CREDENTIAL_QRY_CNT, principal).next() ).intValue(); }
public int countCredentialByPrincipal(String principal) { return find(CREDENTIAL_QRY, principal).size(); }
1,116,793
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};...
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};...
1,116,795
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};...
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};...
1,116,796
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};...
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};...
1,116,797
public void filterData(){ float[] fdata = seis.get_as_floats(); // remove the mean before filtering double mean = 0; for (int i=0; i<fdata.length; i++) { mean += fdata[i]; } // end of for (int i=0; i<fdata.length; i++) mean /= fdata.length; float fmean = (float)mean; for (int i=0; i<fdata.length; i++) { fda...
public void filterData(){ float[] fdata; if(seis.can_convert_to_float()) fdata = seis.get_as_floats(); else{ int[] idata = seis.get_as_longs(); fdata = new float[idata.length]; for(int i = 0; i < idata.length; i++) fdata[i] = idata[i]; idata = null; } // remove the mean before filtering double mean = 0; for (int i=...
1,116,798
public void readYeast(String path) { // read the yeast from the csv file try { File yeastFile = new File(path, "yeast.csv"); CSVReader reader = new CSVReader(new FileReader( yeastFile), ',', '\"', true, false); try { // get the first line and set up the index: String[] fields = reader.getAllFieldsInL...
public void readYeast(String path) { // read the yeast from the csv file try { File yeastFile = new File(path, "yeast.csv"); CSVReader reader = new CSVReader(new FileReader( yeastFile), ',', '\"', true, false); try { // get the first line and set up the index: String[] fields = reader.getAllFieldsInL...
1,116,800
public Collection find(String query, Object values) { if (logger.isDebugEnabled()) { logger.debug("\n Finding object with query "+query); } if (values instanceof Object[]) { return queryAssembler(query, values).list(); } return this.getHibernateTempla...
public Collection find(String query, Object... values) throws DataAccessException { if (logger.isDebugEnabled()) { logger.debug("\n Finding object with query "+query); } if (values instanceof Object[]) { return queryAssembler(query, values).list(); } ...
1,116,801
public Collection find(String query, Object values) { if (logger.isDebugEnabled()) { logger.debug("\n Finding object with query "+query); } if (values instanceof Object[]) { return queryAssembler(query, values).list(); } return this.getHibernateTempla...
public Collection find(String query, Object values) { if (logger.isDebugEnabled()) { logger.debug("** DAO finding ["+query+"] with "+values); } if (values instanceof Object[]) { return queryAssembler(query, values).list(); } return this.getHibernateTemplate(...
1,116,802
public Collection find(String query, Object values) { if (logger.isDebugEnabled()) { logger.debug("\n Finding object with query "+query); } if (values instanceof Object[]) { return queryAssembler(query, values).list(); } return this.getHibernateTempla...
public Collection find(String query, Object values) { if (logger.isDebugEnabled()) { logger.debug("\n Finding object with query "+query); } if (values instanceof Object[]) { return queryAssembler(query, values).list(); } return this.getHibernateTempla...
1,116,803
public Object findUnique(String query, Object values) throws DataAccessException { Collection list = find(query, values); if (logger.isDebugEnabled()) { logger.debug("\n Query result size is "+list.size()); } if (list.size()==1) { Object object = list.toArray()...
public Object findUnique(String query, Object values) throws DataAccessException { Collection list = find(query, values); if (logger.isDebugEnabled()) { logger.debug("\n Query result size is "+list.size()); } if (list.size()==1) { Object object = list.toArray()...
1,116,804
public Object load(Class clazz, Serializable key) throws DataAccessException { if (logger.isDebugEnabled()) { logger.debug("\n Loading "+clazz.toString() +" with id "+key.toString()); } return this.getHibernateTemplate().load(clazz, key); }
public Object load(Class clazz, Serializable key) throws DataAccessException { if (logger.isDebugEnabled()) { logger.debug("** DAO Loading "+clazz.toString() +" with id "+key.toString()); } return this.getHibernateTemplate().load(clazz, key); }
1,116,805
public void merge(Object object) { if (logger.isDebugEnabled()) { logger.debug("\n Merging "+object.toString()); } this.getHibernateTemplate().merge(object); }
public void merge(Object object) { if (logger.isDebugEnabled()) { logger.debug("** DAO Merging "+object.toString()); } this.getHibernateTemplate().merge(object); }
1,116,806
protected Query queryAssembler(String query, Object values) { try { Session session = getSession(true); Query result = session.createQuery(query); if (values != null) { if (values instanceof Object[]) { Object[] valueList = (Object[]) values;...
protected Query queryAssembler(String query, Object... values) { try { Session session = getSession(true); Query result = session.createQuery(query); if (values != null) { if (values instanceof Object[]) { Object[] valueList = (Object[]) valu...
1,116,808
protected Query queryAssembler(String query, Object values) { try { Session session = getSession(true); Query result = session.createQuery(query); if (values != null) { if (values instanceof Object[]) { Object[] valueList = (Object[]) values;...
protected Query queryAssembler(String query, Object values) { try { Session session = this.getHibernateTemplate().getSessionFactory().getCurrentSession(); Query result = session.createQuery(query); if (values != null) { if (values instanceof Object[]) { ...
1,116,809
protected Query queryAssembler(String query, Object values) { try { Session session = getSession(true); Query result = session.createQuery(query); if (values != null) { if (values instanceof Object[]) { Object[] valueList = (Object[]) values;...
protected Query queryAssembler(String query, Object values) { try { Session session = getSession(true); Query result = session.createQuery(query); if (values != null) { if (values instanceof Object[]) { Object[] valueList = (Object[]) values;...
1,116,810
protected Query queryAssembler(String query, Object values) { try { Session session = getSession(true); Query result = session.createQuery(query); if (values != null) { if (values instanceof Object[]) { Object[] valueList = (Object[]) values;...
protected Query queryAssembler(String query, Object values) { try { Session session = getSession(true); Query result = session.createQuery(query); if (values != null) { if (values instanceof Object[]) { Object[] valueList = (Object[]) values;...
1,116,811
public void refresh(Object object) throws DataAccessException { if (logger.isDebugEnabled()) { logger.debug("\n Refreshing "+object); } this.getHibernateTemplate().refresh(object); }
public void refresh(Object object) throws DataAccessException { if (logger.isDebugEnabled()) { logger.debug("** DAO Refreshing "+object); } this.getHibernateTemplate().refresh(object); }
1,116,812
public void remove(Object object) { if (object instanceof String) { remove(find(object.toString(), null)); } else if (object instanceof Collection) { Collection collection = (Collection) object; if (logger.isDebugEnabled()) { logger.debug("\n Dele...
public void remove(Object object) { if (object instanceof String) { remove(find(object.toString())); } else if (object instanceof Collection) { Collection collection = (Collection) object; if (logger.isDebugEnabled()) { logger.debug("\n Deleting c...
1,116,813
public void remove(Object object) { if (object instanceof String) { remove(find(object.toString(), null)); } else if (object instanceof Collection) { Collection collection = (Collection) object; if (logger.isDebugEnabled()) { logger.debug("\n Dele...
public void remove(Object object) { if (object instanceof String) { remove(find(object.toString(), null)); } else if (object instanceof Collection) { Collection collection = (Collection) object; if (logger.isDebugEnabled()) { logger.debug("** DAO Deletin...
1,116,814
public void remove(Object object) { if (object instanceof String) { remove(find(object.toString(), null)); } else if (object instanceof Collection) { Collection collection = (Collection) object; if (logger.isDebugEnabled()) { logger.debug("\n Dele...
public void remove(Object object) { if (object instanceof String) { remove(find(object.toString(), null)); } else if (object instanceof Collection) { Collection collection = (Collection) object; if (logger.isDebugEnabled()) { logger.debug("\n Dele...
1,116,815
public UserLog createAndPersistUserLog(User user) { if (userLogList==null) { userLogList = new ArrayList<UserLog>(); } UserLog userLog = new UserLog(); userLog.setUser(user); userLog.setLastLogin(lastLogin); userLogList.add(userLog...
public UserLog createAndPersistUserLog(User user) { if (userLogList==null) { userLogList = new ArrayList<UserLog>(); } UserLog userLog = new UserLog(); userLog.setUser(user); userLog.setLastLogin(lastLogin); userLogList.add(userLog...
1,116,816
public UserLog findLastUserLog(String principal) { return null; }
public UserLog findLastUserLog(String principal) { return lastUserLog; }
1,116,817
private boolean isInputValidAndUpdated() { final String localFilename = filenameTF.getText().trim(); if ( localFilename.length() == 0 ) { GUIUtils.showErrorMessage( this, Localizer.getString( "NoFileName" ) ); filenameTF.requestFocus(); return ...
private boolean isInputValidAndUpdated() { final String localFilename = filenameTF.getText().trim(); if ( localFilename.length() == 0 ) { GUIUtils.showErrorMessage( this, Localizer.getString( "NoFileName" ) ); filenameTF.requestFocus(); return ...
1,116,819
private boolean isInputValidAndUpdated() { final String localFilename = filenameTF.getText().trim(); if ( localFilename.length() == 0 ) { GUIUtils.showErrorMessage( this, Localizer.getString( "NoFileName" ) ); filenameTF.requestFocus(); return ...
private boolean isInputValidAndUpdated() { final String localFilename = filenameTF.getText().trim(); if ( localFilename.length() == 0 ) { GUIUtils.showErrorMessage( this, Localizer.getString( "NoFileName" ) ); filenameTF.requestFocus(); return ...
1,116,820
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet op = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); int nchild = node.jjtGetNumChildren(); if(nchild==2) return nf.buildOperatorNode(op.getAdd(), nf.buildOp...
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet opset = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); int nchild = node.jjtGetNumChildren(); if(nchild==2) return nf.buildOperatorNode(op.getAdd(), nf.buil...
1,116,821
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet op = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); int nchild = node.jjtGetNumChildren(); if(nchild==2) return nf.buildOperatorNode(op.getAdd(), nf.buildOp...
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet op = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); int nchild = node.jjtGetNumChildren(); if(nchild==2) return nf.buildOperatorNode(op.getAdd(), nf.buildOp...
1,116,823
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet op = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); int nchild = node.jjtGetNumChildren(); if(nchild==2) return nf.buildOperatorNode(op.getAdd(), nf.buildOp...
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet op = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); int nchild = node.jjtGetNumChildren(); if(nchild==2) return nf.buildOperatorNode(op.getAdd(), nf.buildOp...
1,116,824
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals("preferredWidth")) { TableColumnModel tcm = tblHops.getColumnModel(); TableColumnModel tcmt = tblHopsTotals.getColumnModel(); int columnCount =...
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals("preferredWidth")) { TableColumnModel tcm = tblHops.getColumnModel(); TableColumnModel tcmt = tblHopsTotals.getColumnModel(); int columnCount =...
1,116,826
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[] {0...
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[] {0...
1,116,828
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[] {0...
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[] {0...
1,116,829
public void actionPerformed(ActionEvent evt) { String u = (String) cmbMaltUnitsModel.getSelectedItem(); int i = tblMalt.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); f2.setUnitsFull(u); myRecipe.calcMal...
public void actionPerformed(ActionEvent evt) { Fermentable f = (Fermentable) cmbMaltModel .getSelectedItem(); int i = tblMalt.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); f2.setUnitsFull(u); myRecipe.c...
1,116,831
public void actionPerformed(ActionEvent evt) { String u = (String) cmbMaltUnitsModel.getSelectedItem(); int i = tblMalt.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); f2.setUnitsFull(u); myRecipe.calcMal...
public void actionPerformed(ActionEvent evt) { String u = (String) cmbMaltUnitsModel.getSelectedItem(); int i = tblMalt.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); f2.setUnitsFull(u); myRecipe.calcMal...
1,116,832
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { Fermentable f = new Fermentable(myRecipe.getMaltUnits()); myRecipe.addMalt(f); tblMalt.updateUI(); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { Fermentable f = new Fermentable(myRecipe.getMaltUnits()); myRecipe.addMalt(f); tblMalt.updateUI(); displayRecipe(); } }
1,116,833
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { int i = tblMalt.getSelectedRow(); myRecipe.delMalt(i); tblMalt.updateUI(); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { int i = tblMalt.getSelectedRow(); myRecipe.delMalt(i); tblMalt.updateUI(); displayRecipe(); } }
1,116,834
public void actionPerformed(ActionEvent evt) { String u = (String) cmbHopsUnitsModel.getSelectedItem(); int i = tblHops.getSelectedRow(); if (myRecipe != null && i != -1) { Hop h = (Hop) myRecipe.getHop(i); h.setUnitsFull(u); myRecipe.calcHopsTotals(); ...
public void actionPerformed(ActionEvent evt) { Hop h = (Hop) cmbHopsModel.getSelectedItem(); int i = tblHops.getSelectedRow(); if (myRecipe != null && i != -1) { Hop h = (Hop) myRecipe.getHop(i); h.setUnitsFull(u); myRecipe.calcHopsTotals(); //...
1,116,835
public void actionPerformed(ActionEvent evt) { String u = (String) cmbHopsUnitsModel.getSelectedItem(); int i = tblHops.getSelectedRow(); if (myRecipe != null && i != -1) { Hop h = (Hop) myRecipe.getHop(i); h.setUnitsFull(u); myRecipe.calcHopsTotals(); ...
public void actionPerformed(ActionEvent evt) { String u = (String) cmbHopsUnitsModel.getSelectedItem(); int i = tblHops.getSelectedRow(); if (myRecipe != null && i != -1) { Hop h = (Hop) myRecipe.getHop(i); h.setUnitsFull(u); myRecipe.calcHopsTotals(); ...
1,116,836
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { Hop h = new Hop(myRecipe.getHopUnits()); myRecipe.addHop(h); tblHops.updateUI(); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { Hop h = new Hop(myRecipe.getHopUnits()); myRecipe.addHop(h); tblHops.updateUI(); displayRecipe(); } }
1,116,837
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { Hop h = new Hop(myRecipe.getHopUnits()); myRecipe.addHop(h); tblHops.updateUI(); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { Hop h = new Hop(myRecipe.getHopUnits()); myRecipe.addHop(h); tblHops.updateUI(); displayRecipe();
1,116,838
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { int i = tblHops.getSelectedRow(); myRecipe.delHop(i); tblHops.updateUI(); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { int i = tblHops.getSelectedRow(); myRecipe.delHop(i); tblHops.updateUI(); displayRecipe(); } }
1,116,839
public void actionPerformed(ActionEvent evt) { // This is just a test right now to see that // stuff is changed. myRecipe = new Recipe(); attachRecipeData(); displayRecipe(); }
public void actionPerformed(ActionEvent evt) { // This is just a test right now to see that // stuff is changed. myRecipe = new Recipe(); attachRecipeData(); displayRecipe(); }
1,116,840
public void actionPerformed(ActionEvent evt) { // Show open dialog; this method does // not return until the dialog is closed int returnVal = fileChooser.showOpenDialog(jMenuBar1); if (returnVal == JFileChooser.APPROVE_OPTION) { File file = fileChooser.getSelectedFile(...
public void actionPerformed(ActionEvent evt) { // Show open dialog; this method does // not return until the dialog is closed int returnVal = fileChooser.showOpenDialog(jMenuBar1); if (returnVal == JFileChooser.APPROVE_OPTION) { File file = fileChooser.getSelectedFile(...
1,116,841
public void actionPerformed(ActionEvent evt) { if (DEBUG){ // This is just a test right now to see that // stuff is changed. System.out.print(myRecipe.toXML()); } // Show save dialog; this method does // not return until the dialog is closed int...
public void actionPerformed(ActionEvent evt) { if (DEBUG){ // This is just a test right now to see that // stuff is changed. System.out.print(myRecipe.toXML()); } // Show save dialog; this method does // not return until the dialog is closed int...
1,116,842
public void actionPerformed(ActionEvent evt) { if (DEBUG){ // This is just a test right now to see that // stuff is changed. System.out.print(myRecipe.toXML()); } // Show save dialog; this method does // not return until the dialog is closed int...
public void actionPerformed(ActionEvent evt) { if (DEBUG){ // This is just a test right now to see that // stuff is changed. System.out.print(myRecipe.toXML()); } // Show save dialog; this method does // not return until the dialog is closed int...
1,116,843
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed fileChooser.setSelectedFile(new File(myRecipe.getName()+".html")); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal ...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed fileChooser.setSelectedFile(new File(myRecipe.getName()+".html")); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal ...
1,116,844
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed fileChooser.setSelectedFile(new File(myRecipe.getName()+".txt")); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal == JFileCho...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed fileChooser.setSelectedFile(new File(myRecipe.getName()+".html")); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal == JFileCh...
1,116,845
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed fileChooser.setSelectedFile(new File(myRecipe.getName()+".txt")); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal == JFileCho...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed fileChooser.setSelectedFile(new File(myRecipe.getName()+".txt")); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal == JFileCho...
1,116,846
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed fileChooser.setSelectedFile(new File(myRecipe.getName()+".txt")); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal == JFileCho...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed fileChooser.setSelectedFile(new File(myRecipe.getName()+".txt")); int returnVal = fileChooser.showSaveDialog(jMenuBar1); if (returnVal == JFileCho...
1,116,847