bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { boolean userAdde...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { boolean userAdded = super.init(aut...
1,119,831
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { boolean userAdde...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { boolean userAdde...
1,119,832
public void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { LocalSeismogramImpl seis = hseis.getSeismogram(); ChannelId[] channelIds = ((edu.sc.seis.fissuresUtil.xml.XMLData...
public void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { LocalSeismogramImpl seis = hseis.getSeismogram(); ChannelId[] channelIds = ((edu.sc.seis.fissuresUtil.xml.XMLData...
1,119,833
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = getReqPar(request, "cal"); boolean calid = idstr != null; if (!calid) { idstr = getReqPar(request, "event"); } if ...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = getReqPar(request, "cal"); boolean calid = idstr != null; if (!calid) { idstr = getReqPar(request, "event"); } if ...
1,119,834
private MainFrame() { super(EVI.TITLE); setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); addWindowListener(new WindowListener() { public void windowActivated(WindowEvent arg0) { } public void windowClosed(WindowEvent arg0) { } public void windowClosing(WindowEvent arg0) { Util.askToExit()...
private MainFrame() { super(EVI.TITLE); setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); addWindowListener(new WindowListener() { public void windowActivated(WindowEvent arg0) { } public void windowClosed(WindowEvent arg0) { } public void windowClosing(WindowEvent arg0) { Util.askToExit()...
1,119,835
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch...
1,119,837
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch...
1,119,838
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch...
1,119,839
private JPanel makeProfileConnectPanel() { JPanel p = new JPanel(); p.setBorder(new TitledBorder("Connect Profile")); p.setLayout(new GridLayout(2, 0)); Profile[] profiles = Profile.getProfiles(); String lastProfile = Configuration.getLastProfile(); int selected = 0; for (int i = 0; i < profiles.length; i++) ...
private JPanel makeProfileConnectPanel() { JPanel p = new JPanel(); p.setBorder(new TitledBorder("Connect Profile")); p.setLayout(new GridLayout(2, 0)); Profile[] profiles = Profile.getProfiles(); String lastProfile = Configuration.getLastProfile(); int selected = -1; for (int i = 0; i < profiles.length; i++)...
1,119,840
private JPanel makeProfileConnectPanel() { JPanel p = new JPanel(); p.setBorder(new TitledBorder("Connect Profile")); p.setLayout(new GridLayout(2, 0)); Profile[] profiles = Profile.getProfiles(); String lastProfile = Configuration.getLastProfile(); int selected = 0; for (int i = 0; i < profiles.length; i++) ...
private JPanel makeProfileConnectPanel() { JPanel p = new JPanel(); p.setBorder(new TitledBorder("Connect Profile")); p.setLayout(new GridLayout(2, 0)); Profile[] profiles = Profile.getProfiles(); String lastProfile = Configuration.getLastProfile(); int selected = 0; for (int i = 0; i < profiles.length; i++) ...
1,119,841
public int doEndTag() throws JspException { try { CalendarTag cal = (CalendarTag) findAncestorWithClass(this, CalendarTag.class); if (cal == null) return Tag.EVAL_PAGE; // can't use this String content = null; if (day != null && day >= 1 && day <= 31) { BodyContent body = getBodyCo...
public int doEndTag() throws JspException { try { CalendarTag cal = (CalendarTag) findAncestorWithClass(this, CalendarTag.class); if (cal == null) return Tag.EVAL_PAGE; // can't use this String content = null; if (day != null && day >= 1 && day <= 31) { BodyContent body = getBodyCo...
1,119,842
private boolean executeQueries(SQLQuery query, QueryToSQLBridge bridge, List executedSQLQueries) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, executedSQLQueries); // check if everything is fine if (queryResult == null || queryResult.isEmpty()) { // nothing to do return false; ...
private boolean executeQueries(SQLQuery query, QueryToSQLBridge bridge, List executedSQLQueries) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, executedSQLQueries); // check if everything is fine if (queryResult == null || queryResult.isEmpty()) { // nothing to do return false; ...
1,119,843
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("AclVO{"); if (!empty()) { sb.append("encoded=["); rewind(); while (hasMore()) { sb.append(getChar()); } sb.append("] "); rewind(); try { if (aces == null) { decode(getEncoded(...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Acl{"); if (!empty()) { sb.append("encoded=["); rewind(); while (hasMore()) { sb.append(getChar()); } sb.append("] "); rewind(); try { if (aces == null) { decode(getEncoded())...
1,119,844
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { String userId = request.getParameter("userid"); BwUser user; CalSvcI svci = form.getCalSvcI(); if (userId != null) { user = svci.findUser(userId); if (user == null) { form.getE...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { String userId = request.getParameter("userid"); BwUser user; CalSvcI svci = form.getCalSvcI(); if (userId != null) { user = svci.findUser(userId); if (user == null) { form.getE...
1,119,846
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { String userId = request.getParameter("userid"); BwUser user; CalSvcI svci = form.getCalSvcI(); if (userId != null) { user = svci.findUser(userId); if (user == null) { form.getE...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { String userId = request.getParameter("userid"); BwUser user; CalSvcI svci = form.getCalSvcI(); if (userId != null) { user = svci.findUser(userId); if (user == null) { form.getE...
1,119,847
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { String userId = request.getParameter("userid"); BwUser user; CalSvcI svci = form.getCalSvcI(); if (userId != null) { user = svci.findUser(userId); if (user == null) { form.getE...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { String userId = request.getParameter("userid"); BwUser user; CalSvcI svci = form.getCalSvcI(); if (userId != null) { user = svci.findUser(userId); if (user == null) { form.getE...
1,119,848
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ logger.debug("creating an i...
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ begin = new Date(); syn...
1,119,849
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ logger.debug("creating an i...
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ logger.debug("creating an i...
1,119,850
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ logger.debug("creating an i...
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ logger.debug("creating an i...
1,119,851
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ logger.debug("creating an i...
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ logger.debug("creating an i...
1,119,852
public ATObject meta_eval(ATContext ctx) { // TODO Auto-generated method stub return super.meta_eval(ctx); }
public ATObject meta_eval(ATContext ctx) { // TODO Auto-generated method stub return null; }
1,119,853
public ATAbstractGrammar meta_quote(ATContext ctx) { // TODO Auto-generated method stub return super.meta_quote(ctx); }
public ATAbstractGrammar meta_quote(ATContext ctx) { // TODO Auto-generated method stub return null; }
1,119,854
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; }...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; }...
1,119,855
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; }...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; }...
1,119,856
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; }...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; }...
1,119,857
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; }...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; }...
1,119,858
public void testBasics() { try { // Make sonme test objects BwUser unauth = new BwUser(); BwUser owner = new BwUser("anowner"); BwUser auser = new BwUser("auser"); BwUser auserInGroup = new BwUser("auseringroup"); BwGroup agroup = new BwGroup("agroup"); BwGroup bgroup = new BwGro...
public void testBasics() { try { // Make sonme test objects BwUser unauth = new BwUser(); BwUser owner = new BwUser("anowner"); BwUser auser = new BwUser("auser"); BwUser auserInGroup = new BwUser("auseringroup"); BwGroup agroup = new BwGroup("agroup"); BwGroup bgroup = new BwGro...
1,119,859
public void testBasics() { try { // Make sonme test objects BwUser unauth = new BwUser(); BwUser owner = new BwUser("anowner"); BwUser auser = new BwUser("auser"); BwUser auserInGroup = new BwUser("auseringroup"); BwGroup agroup = new BwGroup("agroup"); BwGroup bgroup = new BwGro...
public void testBasics() { try { // Make sonme test objects BwUser unauth = new BwUser(); BwUser owner = new BwUser("anowner"); BwUser auser = new BwUser("auser"); BwUser auserInGroup = new BwUser("auseringroup"); BwGroup agroup = new BwGroup("agroup"); BwGroup bgroup = new BwGro...
1,119,860
private void tryEvaluateAccess(BwPrincipal who, BwPrincipal owner, Privilege[] how,char[] encoded, boolean expected, String title) throws Throwable { CurrentAccess ca = new Acl().evaluateAccess(who, owner.getAccount(), how, ...
private void tryEvaluateAccess(BwPrincipal who, BwPrincipal owner, Privilege[] how,char[] encoded, boolean expected, String title) throws Throwable { CurrentAccess ca = new Acl().evaluateAccess(who, owner.getAccount(), how, ...
1,119,862
public void addDisplayKey(String key) { this.displayKeys.add(key); }
public void addDisplayKey(String key) { if(!this.displayKeys.contains(key)) { this.displayKeys.add(key); } }
1,119,863
public OffsetMeanAmpConfig(LocalSeismogram aSeis, MicroSecondTimeRange range){ LocalSeismogramImpl seis = (LocalSeismogramImpl)aSeis; int beginIndex = SeisPlotUtil.getPixel(seis.getNumPoints(), seis.getBeginTime(), seis.getE...
public OffsetMeanAmpConfig(LocalSeismogram aSeis, MicroSecondTimeRange range){ LocalSeismogramImpl seis = (LocalSeismogramImpl)aSeis; int beginIndex = SeisPlotUtil.getPixel(seis.getNumPoints(), seis.getBeginTime(), seis.getE...
1,119,864
public static boolean allNull(Object[] array){ boolean nonNull = false; for (int i = 0; i < array.length && !nonNull; i++ ) { if(array[i] != null){ nonNull = true; } } return nonNull; }
public static boolean allNull(Object[] array){ boolean nonNull = false; for (int i = 0; i < array.length && !nonNull; i++ ) { if(array[i] != null){ nonNull = true; } } return nonNull; }
1,119,866
public static boolean allNull(Object[] array){ boolean nonNull = false; for (int i = 0; i < array.length && !nonNull; i++ ) { if(array[i] != null){ nonNull = true; } } return nonNull; }
public static boolean allNull(Object[] array){ boolean nonNull = false; for (int i = 0; i < array.length && !nonNull; i++ ) { if(array[i] != null){ allNull = false; } } return nonNull; }
1,119,867
public static boolean allNull(Object[] array){ boolean nonNull = false; for (int i = 0; i < array.length && !nonNull; i++ ) { if(array[i] != null){ nonNull = true; } } return nonNull; }
public static boolean allNull(Object[] array){ boolean nonNull = false; for (int i = 0; i < array.length && !nonNull; i++ ) { if(array[i] != null){ nonNull = true; } } return allNull; }
1,119,868
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage; numLeft = requests.size(); while(numLeft > 0){ synchronized(this){ currentPatron = ((BasicSeismogramDisplay.ImagePainter)requests.getFirst()); currentRequ...
public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage; numLeft = requests.size(); while(numLeft > 0){ synchronized(this){ currentPatron = ((BasicSeismogramDisplay.ImagePainter)requests.getFirst()); currentRequ...
1,119,869
public static boolean getBoolProperty(String name) throws CalEnvException { String val = getProperty(name); val = val.toLowerCase(); return "true".equals(val) || "yes".equals(val); }
public boolean getBoolProperty(String name) throws CalEnvException { String val = getProperty(name); val = val.toLowerCase(); return "true".equals(val) || "yes".equals(val); }
1,119,870
public static boolean getGlobalBoolProperty(String name) throws CalEnvException { return getBoolProperty(globalPrefix + name); }
public boolean getGlobalBoolProperty(String name) throws CalEnvException { return getBoolProperty(globalPrefix + name); }
1,119,871
public static int getGlobalIntProperty(String name) throws CalEnvException { return getIntProperty(globalPrefix + name); }
public int getGlobalIntProperty(String name) throws CalEnvException { return getIntProperty(globalPrefix + name); }
1,119,872
public static Object getGlobalObject(String name, Class cl) throws CalEnvException { try { String className = getGlobalProperty(name); Object o = Class.forName(className).newInstance(); if (o == null) { throw new CalEnvException("Class " + className + " not found"); } if (!cl.isInst...
public Object getGlobalObject(String name, Class cl) throws CalEnvException { try { String className = getGlobalProperty(name); Object o = Class.forName(className).newInstance(); if (o == null) { throw new CalEnvException("Class " + className + " not found"); } if (!cl.isInstance(o)...
1,119,873
public static String getGlobalProperty(String name) throws CalEnvException { return getProperty(globalPrefix + name); }
public String getGlobalProperty(String name) throws CalEnvException { return getProperty(globalPrefix + name); }
1,119,874
public static int getIntProperty(String name) throws CalEnvException { String val = getProperty(name); try { return Integer.valueOf(val).intValue(); } catch (Throwable t) { throw new CalEnvException("Invalid property " + name + " = " + val); } }
public int getIntProperty(String name) throws CalEnvException { String val = getProperty(name); try { return Integer.valueOf(val).intValue(); } catch (Throwable t) { throw new CalEnvException("Invalid property " + name + " = " + val); } }
1,119,875
public static String getOptProperty(String name) throws CalEnvException { String val = getPr().getProperty(name); return val; }
public String getOptProperty(String name) throws CalEnvException { String val = getPr().getProperty(name); return val; }
1,119,876
public static Properties getProperties() throws CalEnvException { return getPr(); }
public Properties getProperties() throws CalEnvException { return getPr(); }
1,119,877
public static String getProperty(String name) throws CalEnvException { String val = getPr().getProperty(name); if (val == null) { throw new CalEnvException("Missing property " + name); } return val; }
public String getProperty(String name) throws CalEnvException { String val = getPr().getProperty(name); if (val == null) { throw new CalEnvException("Missing property " + name); } return val; }
1,119,878
private void getSingleQueryView(IWBundle bundle, IWResourceBundle resourceBundle, String action, IWContext iwc) throws RemoteException { String errorMessage = null; QueryService queryService = getQueryService(); int currentQueryId = ((Integer) parameterMap.get(CURRENT_QUERY_ID)).intValue(); QueryHelper queryHelp...
private void getSingleQueryView(IWBundle bundle, IWResourceBundle resourceBundle, String action, IWContext iwc) throws RemoteException { String errorMessage = null; QueryService queryService = getQueryService(); int currentQueryId = ((Integer) parameterMap.get(CURRENT_QUERY_ID)).intValue(); QueryHelper queryHelp...
1,119,879
private void doNodeNsProperties(WebdavNsNode node) throws WebdavException { Enumeration en = getNsIntf().getProperties(node); WebdavNsIntf intf = getNsIntf(); while (en.hasMoreElements()) { WebdavProperty prop = (WebdavProperty)en.nextElement(); intf.generatePropValue(node, prop); } }
private void doNodeNsProperties(WebdavNsNode node) throws WebdavException { Iterator it = getNsIntf().iterateProperties(node); WebdavNsIntf intf = getNsIntf(); while (en.hasMoreElements()) { WebdavProperty prop = (WebdavProperty)en.nextElement(); intf.generatePropValue(node, prop); } }
1,119,880
private void doNodeNsProperties(WebdavNsNode node) throws WebdavException { Enumeration en = getNsIntf().getProperties(node); WebdavNsIntf intf = getNsIntf(); while (en.hasMoreElements()) { WebdavProperty prop = (WebdavProperty)en.nextElement(); intf.generatePropValue(node, prop); } }
private void doNodeNsProperties(WebdavNsNode node) throws WebdavException { Enumeration en = getNsIntf().getProperties(node); WebdavNsIntf intf = getNsIntf(); while (en.hasMoreElements()) { WebdavProperty prop = (WebdavProperty)en.nextElement(); intf.generatePropValue(node, prop); } }
1,119,881
public PropRequest parseProps(Node nd) throws WebdavException { PropRequest pr = new PropRequest(PropRequest.reqProp); pr.props = new ArrayList(); Element[] children = getChildren(nd); for (int i = 0; i < children.length; i++) { Element propnode = children[i]; WebdavProperty prop = new WebdavPro...
public PropRequest parseProps(Node nd) throws WebdavException { PropRequest pr = new PropRequest(PropRequest.reqProp); pr.props = new ArrayList(); Element[] children = getChildren(nd); for (int i = 0; i < children.length; i++) { Element propnode = children[i]; WebdavProperty prop = new WebdavPro...
1,119,882
public void addUser(BwUser user) throws CalFacadeException { addNewUser(user); calendars.addNewCalendars(); }
public void addUser(BwUser user) throws CalFacadeException { addNewUser(user); calendars.addNewCalendars(user); }
1,119,883
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb...
1,119,884
private CompFilter parseCompFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { throw new WebdavBadRequest(); } CompFilter cf = new CompFilter(name); Element[] children = getChildren(nd); try { for (int i = 0; i < children.length; i++) { ...
private CompFilter parseCompFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { throw new WebdavBadRequest(); } CompFilter cf = new CompFilter(name); Element[] children = getChildren(nd); try { for (int i = 0; i < children.length; i++) { ...
1,119,885
private CompFilter parseCompFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { throw new WebdavBadRequest(); } CompFilter cf = new CompFilter(name); Element[] children = getChildren(nd); try { for (int i = 0; i < children.length; i++) { ...
private CompFilter parseCompFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { throw new WebdavBadRequest(); } CompFilter cf = new CompFilter(name); Element[] children = getChildren(nd); try { for (int i = 0; i < children.length; i++) { ...
1,119,886
private CompFilter parseCompFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { throw new WebdavBadRequest(); } CompFilter cf = new CompFilter(name); Element[] children = getChildren(nd); try { for (int i = 0; i < children.length; i++) { ...
private CompFilter parseCompFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { throw new WebdavBadRequest(); } CompFilter cf = new CompFilter(name); Element[] children = getChildren(nd); try { for (int i = 0; i < children.length; i++) { ...
1,119,887
private ParamFilter parseParamFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { status = HttpServletResponse.SC_BAD_REQUEST; return null; } // Only one child - either is-defined | text-match Element child = getOnlyChild(nd); if (debug) {...
private ParamFilter parseParamFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { status = HttpServletResponse.SC_BAD_REQUEST; return null; } // Only one child - either is-defined | text-match Element child = getOnlyChild(nd); if (debug) {...
1,119,888
private PropFilter parsePropFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { status = HttpServletResponse.SC_BAD_REQUEST; return null; } PropFilter pf = new PropFilter(name); Element[] children = getChildren(nd); boolean idTrTm = false;...
private PropFilter parsePropFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { status = HttpServletResponse.SC_BAD_REQUEST; return null; } PropFilter pf = new PropFilter(name); Element[] children = getChildren(nd); boolean idTrTm = false;...
1,119,889
private PropFilter parsePropFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { status = HttpServletResponse.SC_BAD_REQUEST; return null; } PropFilter pf = new PropFilter(name); Element[] children = getChildren(nd); boolean idTrTm = false;...
private PropFilter parsePropFilter(Node nd) throws WebdavException { String name = getOnlyAttrVal(nd, "name"); if (name == null) { status = HttpServletResponse.SC_BAD_REQUEST; return null; } PropFilter pf = new PropFilter(name); Element[] children = getChildren(nd); boolean idTrTm = false;...
1,119,890
public LongShortTrigger[] calcTriggers(LocalSeismogramImpl seis) throws FissuresException { LinkedList out = new LinkedList(); float[] seisData = seis.get_as_floats(); // establish number of points in LTA and STA windows // as well as in trgdly float dt = (float)seis.getSampl...
public LongShortTrigger[] calcTriggers(LocalSeismogramImpl seis) throws FissuresException { LinkedList out = new LinkedList(); float[] seisData = seis.get_as_floats(); // establish number of points in LTA and STA windows // as well as in trgdly float dt = (float)seis.getSampl...
1,119,894
public LongShortTrigger[] calcTriggers(LocalSeismogramImpl seis) throws FissuresException { LinkedList out = new LinkedList(); float[] seisData = seis.get_as_floats(); // establish number of points in LTA and STA windows // as well as in trgdly float dt = (float)seis.getSampl...
public LongShortTrigger[] calcTriggers(LocalSeismogramImpl seis) throws FissuresException { LinkedList out = new LinkedList(); float[] seisData = seis.get_as_floats(); // establish number of points in LTA and STA windows // as well as in trgdly float dt = (float)seis.getSampl...
1,119,895
public LongShortTrigger[] calcTriggers(LocalSeismogramImpl seis) throws FissuresException { LinkedList out = new LinkedList(); float[] seisData = seis.get_as_floats(); // establish number of points in LTA and STA windows // as well as in trgdly float dt = (float)seis.getSampl...
public LongShortTrigger[] calcTriggers(LocalSeismogramImpl seis) throws FissuresException { LinkedList out = new LinkedList(); float[] seisData = seis.get_as_floats(); // establish number of points in LTA and STA windows // as well as in trgdly float dt = (float)seis.getSampl...
1,119,896
public LongShortTrigger[] calcTriggers(LocalSeismogramImpl seis) throws FissuresException { LinkedList out = new LinkedList(); float[] seisData = seis.get_as_floats(); // establish number of points in LTA and STA windows // as well as in trgdly float dt = (float)seis.getSampl...
public LongShortTrigger[] calcTriggers(LocalSeismogramImpl seis) throws FissuresException { LinkedList out = new LinkedList(); float[] seisData = seis.get_as_floats(); // establish number of points in LTA and STA windows // as well as in trgdly float dt = (float)seis.getSampl...
1,119,897
public void testBinaryIndexSum() throws Exception { // JUnitDoclet begin method binaryIndexSum for ( int i = 0; i<stat.length; i++) { int n=stat[i].getLength()-1; assertEquals("stat["+i+"]", n*(n+1)*(2*n+1)/6, (int)stat[i].binaryIndexSum(0, stat[i].getLength())); } // end ...
public void testBinaryIndexSum() throws Exception { // JUnitDoclet begin method binaryIndexSum for ( int i = 0; i<stat.length; i++) { int n=stat[i].getLength()-1; double sumSquare = 1.0*n*(n+1)*(2*n+1)/6; assertEquals("stat["+i+"]", sumSquare, stat[i].binaryIndexSum(0, stat[i].ge...
1,119,898
public void testBinarySum() throws Exception { for ( int i = 0; i<stat.length; i++) { int n=stat[i].getLength()-1; double out = stat[i].binarySum(0, intTestData.length); assertEquals("BinarySum", n*(n+1)/2, out, 0.0000001); } // end of for () }
public void testBinarySum() throws Exception { for ( int i = 0; i<stat.length; i++) { int n=stat[i].getLength()-1; double out = stat[i].binarySum(0, stat[i].getLength()); assertEquals("BinarySum", n*(n+1)/2, out, 0.0000001); } // end of for () }
1,119,899
public void testLinearLeastSquares() throws Exception { // JUnitDoclet begin method linearLeastSquares for ( int i = 0; i<stat.length; i++) { double[] out = stat[i].linearLeastSquares(); assertEquals("stat["+i+"]", 0, out[0], 0.0000001); assertEquals("stat["+i+"]", 1, ...
public void testLinearLeastSquares() throws Exception { // JUnitDoclet begin method linearLeastSquares for ( int i = 0; i<stat.length; i++) { double[] out = stat[i].linearLeastSquares(); assertEquals("stat["+i+"]", 0, out[0], 0.0000001); assertEquals("stat["+i+"]", 1, ...
1,119,900
public void send_request(ClientRequestInfo info) throws ForwardRequest { ServiceContext context = new ServiceContext(id, propBytes); info.add_request_service_context(context, true); }
public void send_request(ClientRequestInfo info) throws ForwardRequest { ServiceContext context = new ServiceContext(ID, propBytes); info.add_request_service_context(context, true); }
1,119,902
protected void checkForLegacySeismograms() { //this supports loading of classic seismogram datasets that were //created before dataset seismograms if(getDataSetSeismogramNames().length == 0) { String[] names = getSeismogramNames(); logger.info("No DataSetSeismograms in da...
protected void checkForLegacySeismograms() { //this supports loading of classic seismogram datasets that were //created before dataset seismograms if(getDataSetSeismogramNames().length == 0) { String[] names = getSeismogramNames(); logger.info("No DataSetSeismograms in da...
1,119,903
protected void checkForLegacySeismograms() { //this supports loading of classic seismogram datasets that were //created before dataset seismograms if(getDataSetSeismogramNames().length == 0) { String[] names = getSeismogramNames(); logger.info("No DataSetSeismograms in da...
protected void checkForLegacySeismograms() { //this supports loading of classic seismogram datasets that were //created before dataset seismograms if(getDataSetSeismogramNames().length == 0) { String[] names = getSeismogramNames(); logger.info("No DataSetSeismograms in da...
1,119,904
public void end(String ns, String name) throws Exception { BwFilter entity = (BwFilter)pop(); globals.filters++; globals.filtersTbl.put(entity); try { if (globals.from2p3px) { /* We are converting filter definitions into calendar definitions. */ BwCalendar cal = new BwCalendar()...
public void end(String ns, String name) throws Exception { BwFilter entity = (BwFilter)pop(); globals.filters++; globals.filtersTbl.put(entity); try { if (globals.from2p3px) { /* We are converting filter definitions into calendar definitions. */ BwCalendar cal = new BwCalendar()...
1,119,905
private void initializeDocument(String name) { _designDoc = new DesignDocument(name); // set A 4 paper size _designDoc.setPageWidth(595); _designDoc.setPageHeight(842); _designDoc.setColumnWidth(540); _designDoc.setColumnSpacing(15); _designDoc.setLeftMargin(20); _designDoc.setRightMargin(20); _designDoc.set...
private void initializeDocument(String name) { _designDoc = new DesignDocument(name); // set A 4 paper size _designDoc.setPageWidth(595); _designDoc.setPageHeight(842); _designDoc.setColumnWidth(540); _designDoc.setColumnSpacing(15); _designDoc.setLeftMargin(20); _designDoc.setRightMargin(20); _designDoc.set...
1,119,906
private void initializeDocument(String name) { _designDoc = new DesignDocument(name); // set A 4 paper size _designDoc.setPageWidth(595); _designDoc.setPageHeight(842); _designDoc.setColumnWidth(540); _designDoc.setColumnSpacing(15); _designDoc.setLeftMargin(20); _designDoc.setRightMargin(20); _designDoc.set...
private void initializeDocument(String name) { _designDoc = new DesignDocument(name); // set A 4 paper size _designDoc.setPageWidth(595); _designDoc.setPageHeight(842); _designDoc.setColumnWidth(540); _designDoc.setColumnSpacing(15); _designDoc.setLeftMargin(20); _designDoc.setRightMargin(20); _designDoc.set...
1,119,907
public void setIsBlankWhenNull(boolean value){ this.setAttribute(ATTRIBUTE_IS_BLANK_WHEN_NULL, Boolean.toString(value)); }
public void setIsBlankWhenNull(boolean value){ this.setAttribute(ATTRIBUTE_IS_BLANK_WHEN_NULL, String.valueOf(value)); }
1,119,908
public void setIsStretchWithOverflow(boolean value){ this.setAttribute(ATTRIBUTE_IS_STRETCH_WITH_OVERFLOW, Boolean.toString(value)); }
public void setIsStretchWithOverflow(boolean value){ this.setAttribute(ATTRIBUTE_IS_STRETCH_WITH_OVERFLOW, String.valueOf(value)); }
1,119,909
public void setIsPrintRepeatedValues(boolean value){ this.setAttribute(ATTRIBUTE_IS_PRINT_REPEATED_VALUES,Boolean.toString(value)); }
public void setIsPrintRepeatedValues(boolean value){ this.setAttribute(ATTRIBUTE_IS_PRINT_REPEATED_VALUES,String.valueOf(value)); }
1,119,910
public void setIsRemoveLineWhenBlank(boolean value){ this.setAttribute(ATTRIBUTE_IS_REMOVE_LINE_WHEN_BLANK,Boolean.toString(value)); }
public void setIsRemoveLineWhenBlank(boolean value){ this.setAttribute(ATTRIBUTE_IS_REMOVE_LINE_WHEN_BLANK,String.valueOf(value)); }
1,119,911
public void setIsPrintInFirstWholeBand(boolean value){ this.setAttribute(ATTRIBUTE_IS_PRINT_IN_FIRST_WHOLE_BAND,Boolean.toString(value)); }
public void setIsPrintInFirstWholeBand(boolean value){ this.setAttribute(ATTRIBUTE_IS_PRINT_IN_FIRST_WHOLE_BAND,String.valueOf(value)); }
1,119,912
public void setIsPrintWhenDetailOverflows(boolean value){ this.setAttribute(ATTRIBUTE_IS_PRINT_WHEN_DETAIL_OVERFLOWS,Boolean.toString(value)); }
public void setIsPrintWhenDetailOverflows(boolean value){ this.setAttribute(ATTRIBUTE_IS_PRINT_WHEN_DETAIL_OVERFLOWS,String.valueOf(value)); }
1,119,913
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ...
1,119,914
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ...
1,119,915
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ...
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ...
1,119,916
private void storeAuthorizationEntry(String encodedCardnumber, Object parentDataPK, Hashtable properties, String authorizationType) throws IDOLookupException, CreateException { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEn...
private void storeAuthorizationEntry(String encodedCardnumber, Object parentDataPK, Hashtable properties, String authorizationType) throws IDOLookupException, CreateException { KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEn...
1,119,917
public IdeaView(Idea anIdea) { this(anIdea, true); }
public IdeaView(Idea anIdea) { this(anIdea, true); }
1,119,919
public void paint(Graphics g) { paint(g, new Point(0, 0), this); }
public void paint(Graphics g) { paint(g, new Point(0, 0), this, getAngle()); }
1,119,920
private Collection getCategoryCollection(int kind) { try { if (kind == publicEntity) { return calsvci.getPublicCategories(); } if (kind == ownersEntity) { return calsvci.getCategories(); } if (kind == editableEntity) { return calsvci.getEditableCategories(); } ...
private Collection getCategoryCollection(int kind) { try { if (kind == publicEntity) { return calsvci.getPublicCategories(); } if (kind == ownersEntity) { return calsvci.getCategories(); } if (kind == editableEntity) { return calsvci.getEditableCategories(); } ...
1,119,921
public Collection getCurrentSubscriptions() { if (currentSubscriptions == null) { currentSubscriptions = new Vector(); } return currentSubscriptions; }
public Collection getCurrentSubscriptions() { if (currentSubscriptions == null) { currentSubscriptions = new ArrayList(); } return currentSubscriptions; }
1,119,922
public Collection getInstanceOwners() { try { return fetchSvci().getInstanceOwners(); } catch (Throwable t) { err.emit(t); return new Vector(); } }
public Collection getInstanceOwners() { try { return fetchSvci().getInstanceOwners(); } catch (Throwable t) { err.emit(t); return new ArrayList(); } }
1,119,923
private Collection getSponsorCollection(int kind) { try { if (kind == publicEntity) { return calsvci.getPublicSponsors(); } if (kind == ownersEntity) { return calsvci.getSponsors(); } if (kind == editableEntity) { return calsvci.getEditableSponsors(); } // Wo...
private Collection getSponsorCollection(int kind) { try { if (kind == publicEntity) { return calsvci.getPublicSponsors(); } if (kind == ownersEntity) { return calsvci.getSponsors(); } if (kind == editableEntity) { return calsvci.getEditableSponsors(); } // Wo...
1,119,924
public Collection getSubscriptions() { if (subscriptions == null) { subscriptions = new Vector(); } return subscriptions; }
public Collection getSubscriptions() { if (subscriptions == null) { subscriptions = new ArrayList(); } return subscriptions; }
1,119,925
public Collection getSysStats() { if (sysStats == null) { sysStats = new Vector(); } return sysStats; }
public Collection getSysStats() { if (sysStats == null) { sysStats = new ArrayList(); } return sysStats; }
1,119,926
public static void gotoDateView(BwCalAbstractAction action, BwActionForm form, String date, int newViewTypeI, boolean debug) throws Throwable { /* We get a new view if either the date...
public static void gotoDateView(BwCalAbstractAction action, BwActionForm form, String date, int newViewTypeI, boolean debug) throws Throwable { /* We get a new view if either the date...
1,119,927
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca...
1,119,928
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g; if (copy != null) { try { ...
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { t...
1,119,929
private double getNewAngle(final IdeaView parentView, final IdeaView previousView, final IdeaView view, final IdeaView nextView) { final List<IdeaView> views = parentView.getSubViews(); final double v = view.getV(); double minDiffAngle = Math.PI / 2 / views.size(); ...
private double getNewAngle(final IdeaView parentView, final IdeaView previousView, final IdeaView view, final IdeaView nextView) { final List<IdeaView> views = parentView.getSubViews(); final double v = view.getV(); double minDiffAngle = Math.PI / 2 / views.size(); ...
1,119,930
private double getNewAngle(final IdeaView parentView, final IdeaView previousView, final IdeaView view, final IdeaView nextView) { final List<IdeaView> views = parentView.getSubViews(); final double v = view.getV(); double minDiffAngle = Math.PI / 2 / views.size(); ...
private double getNewAngle(final IdeaView parentView, final IdeaView previousView, final IdeaView view, final IdeaView nextView) { final List<IdeaView> views = parentView.getSubViews(); final double v = view.getV(); double minDiffAngle = Math.PI / 2 / views.size(); ...
1,119,931
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) String urlString = "NONE"; NodeList nList = evalNodeList(conf...
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) String urlString = "NONE"; NodeList nList = evalNodeList(conf...
1,119,932
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) String urlString = "NONE"; NodeList nList = evalNodeList(conf...
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { return (LocalSeismogramImpl)seismogramCache.get(name); } // end of if (seismogramCache.containsKey(name)) String urlString = "NONE"; NodeList nList = evalNodeList(conf...
1,119,933
public void dumpSection(Iterator it) throws Throwable { boolean taggedStart = false; boolean annotations = false; while (it.hasNext()) { BwEvent e = (BwEvent)it.next(); if (!taggedStart) { if (e instanceof BwEventAnnotation) { tagStart(sectionEventAnnotations); annota...
public void dumpSection(Iterator it) throws Throwable { boolean taggedStart = false; boolean annotations = false; while (it.hasNext()) { BwEvent e = (BwEvent)it.next(); if (!taggedStart) { if (e instanceof BwEventAnnotation) { tagStart(sectionEventAnnotations); annota...
1,119,934
public void dumpSection(Iterator it) throws Throwable { boolean taggedStart = false; boolean annotations = false; while (it.hasNext()) { BwEvent e = (BwEvent)it.next(); if (!taggedStart) { if (e instanceof BwEventAnnotation) { tagStart(sectionEventAnnotations); annota...
public void dumpSection(Iterator it) throws Throwable { boolean taggedStart = false; boolean annotations = false; while (it.hasNext()) { BwEvent e = (BwEvent)it.next(); if (!taggedStart) { if (e instanceof BwEventAnnotation) { tagStart(sectionEventAnnotations); annota...
1,119,935
public static void main(String[] args) throws SQLException, IOException { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); ConnectionCreator connCreator = new ConnectionCreator(props); Connection conn = connCreator.createConnection(); JDBCSeismog...
public static void main(String[] args) throws SQLException, IOException { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); ConnectionCreator connCreator = new ConnectionCreator(props); Connection conn = connCreator.createConnection(); JDBCSeismog...
1,119,936
public static void main(String[] args) throws SQLException, IOException { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); ConnectionCreator connCreator = new ConnectionCreator(props); Connection conn = connCreator.createConnection(); JDBCSeismog...
public static void main(String[] args) throws SQLException, IOException { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); ConnectionCreator connCreator = new ConnectionCreator(props); Connection conn = connCreator.createConnection(); JDBCSeismog...
1,119,937
public int doStartTag() throws JspException { if (!PortletServlet.isPortletRequest(pageContext.getRequest())) { return super.doStartTag(); } String urlStr = null; BodyContent bodyContent = pageContext.pushBody(); try { super.doStartTag(); URL url = new URL(bodyContent.getString()); ...
public int doStartTag() throws JspException { if (!PortletServlet.isPortletRequest(pageContext.getRequest())) { return super.doStartTag(); } String urlStr = null; BodyContent bodyContent = pageContext.pushBody(); try { super.doStartTag(); URL url = new URL(bodyContent.getString()); ...
1,119,938
private String chooseOutputFile() { final JFileChooser fc = new JFileChooser(); String extensions[] = new String[1]; extensions[0] = "pdf"; fc.setFileFilter(new FileNameFilter(extensions)); fc.setDialogTitle("SAVE as PDF"); fc.setSelectedFile(new File("output.pdf")); int returnVal...
private String chooseOutputFile() { final JFileChooser fc = new JFileChooser(); String extensions[] = new String[1]; extensions[0] = "pdf"; fc.setFileFilter(new FileNameFilter(extensions)); fc.setDialogTitle("SAVE as PDF"); fc.setSelectedFile(new File("output.pdf")); int returnVal...
1,119,939