bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
MessageReference reference(Routable r); | MessageReference reference(Message m); | 28,588 |
public void read(InputStream in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in, "UTF-8")); read_main_section(getMainAttributes(), br); read_individual_sections(getEntries(), br); } | public void read(InputStream in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in, "UTF-8")); read_main_section(getMainAttributes(), br); read_individual_sections(getEntries(), br); } | 28,589 |
public void write(OutputStream out) throws IOException { BufferedOutputStream bos = out instanceof BufferedOutputStream ? (BufferedOutputStream) out : new BufferedOutputStream(out, 4096); write_main_section(getMainAttributes(), bos); bos.write(CRLF... | public void write(OutputStream out) throws IOException { BufferedOutputStream bos = out instanceof BufferedOutputStream ? (BufferedOutputStream) out : new BufferedOutputStream(out, 4096); write_main_section(getMainAttributes(), bos); bos.write(CRLF... | 28,590 |
public boolean isVisited(Object e) { return uac.isVisited(nsh.getLinkUri((Element) e)); } | public boolean isVisited(Object e) { return isLink(e) && uac.isVisited(nsh.getLinkUri((Element) e)); } | 28,592 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | 28,593 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | 28,594 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | 28,595 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | 28,596 |
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fmt_index); if (... | 28,597 |
public CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { //First insert a row in the db long id = getNextId(); Topic topic = (Topic)getCoreDestinationInternal... | public CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { //First insert a row in the db long id = getNextId(); Topic topic = (Topic)getCoreDestinationInternal... | 28,598 |
public CoreDestination getCoreDestination(JBossDestination jbDest) { CoreDestination cd = getCoreDestinationInternal(jbDest.isQueue(), jbDest.getName()); return cd; } | public CoreDestination getCoreDestination(JBossDestination jbDest) { CoreDestination cd = getCoreDestinationInternal(jbDest.isQueue(), jbDest.getName()); return cd; } | 28,599 |
protected CoreDestination getCoreDestinationInternal(boolean isQueue, String destName) { Map m = isQueue ? queues : topics; CoreDestination dest = (CoreDestination)m.get(destName); return dest; } | protected CoreDestination getCoreDestinationInternal(boolean isQueue, String destName) { Map m = isQueue ? queues : topics; CoreDestination dest = (CoreDestination)m.get(destName); return dest; } | 28,600 |
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... | public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } ImportWorkf... | 28,602 |
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... | public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... | 28,603 |
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... | public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... | 28,604 |
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... | public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } File inputF... | 28,605 |
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... | 28,606 |
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... | 28,607 |
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { //Sanity check if (!(in instanceof JBossObjectInputStream)) { throw new IllegalStateException("InputStream must be an JBossObjectInputStream"); } JBossObjectInputStream ois = (JBossObject... | 28,608 |
public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... | public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... | 28,609 |
public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... | public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... | 28,610 |
public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... | public void write(Object obj, OutputStream out) throws IOException { // sanity check if (!(out instanceof JBossObjectOutputStream)) { log.error("out is a " + out.getClass()); throw new IllegalStateException("OutputStream must be a JBossObjectOutputStream"); } JBo... | 28,611 |
private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); for (String line = r.readLine(); line != null; line = r.readLine()) { int index =... | private static void copyHeader(InputStream in, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); for (String line = r.readLine(); line != null; line = r.readLine()) { int ind... | 28,613 |
private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); for (String line = r.readLine(); line != null; line = r.readLine()) { int index =... | private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(in)); for (String line = r.readLine(); line != null; line = r.readLine()) { int index = line.indexOf("<i... | 28,614 |
private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); for (String line = r.readLine(); line != null; line = r.readLine()) { int index =... | private static void copyHeader(URL srcURL, PrintWriter out) throws IOException { StringBuffer buf = new StringBuffer(); BufferedReader r = new BufferedReader(new InputStreamReader(srcURL.openStream())); for (String line = r.readLine(); line != null; line = r.readLine()) { int index =... | 28,615 |
public PrintWriter(OutputStream out) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; } | public PrintWriter(Writer wr) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; } | 28,618 |
public PrintWriter(OutputStream out) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; } | public PrintWriter(OutputStream out) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; } | 28,619 |
public static void parse(URL xmlURL, URL schema, DefaultHandler handler, LexicalHandler lHandler) throws SAXException, IOException, ParserConfigurationException { InputStream xmlStream = null; InputStream schemaStream = null; try { if (schema != null) { schemaStream = ... | public static void parse(URL xmlURL, URL schema, DefaultHandler handler, LexicalHandler lHandler) throws SAXException, IOException, ParserConfigurationException { InputStream xmlStream = null; InputStream schemaStream = null; try { if (schema != null) { schemaStream = ... | 28,620 |
static List getChildContentList(LayoutContext c, Content parent) { List inlineList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element par... | static List getChildContentList(LayoutContext c, Content parent) { List inlineList = new ArrayList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; CascadedStyle parentStyle = parent.getStyle(); Element pare... | 28,621 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JSplitPane.DIVIDER_SIZE_PROPERTY)) { int newSize = splitPane.getDividerSize(); int[] tmpSizes = layoutManager.getSizes(); dividerSize = tmpSizes[2]; Component left = splitPane.getLeftComponent(); Component ri... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JSplitPane.DIVIDER_SIZE_PROPERTY)) { int newSize = splitPane.getDividerSize(); int[] tmpSizes = layoutManager.getSizes(); dividerSize = tmpSizes[2]; Component left = splitPane.getLeftComponent(); Component ri... | 28,622 |
public void setDividerLocation(JSplitPane jc, int location) { setLastDragLocation(getDividerLocation(splitPane)); splitPane.setLastDividerLocation(getDividerLocation(splitPane)); int[] tmpSizes = layoutManager.getSizes(); tmpSizes[0] = location - layoutManager.getInitialLocation(splitPan... | public void setDividerLocation(JSplitPane jc, int location) { setLastDragLocation(getDividerLocation(splitPane)); splitPane.setLastDividerLocation(getDividerLocation(splitPane)); int[] tmpSizes = layoutManager.getSizes(); tmpSizes[0] = location - layoutManager.getInitialLocation(splitPan... | 28,623 |
private int validLocation(int location) { if (location < getMinimumDividerLocation(splitPane)) return getMinimumDividerLocation(splitPane); if (location > getMaximumDividerLocation(splitPane)) return getMaximumDividerLocation(splitPane); return location; } | private int validLocation(int location) { if (location < getMinimumDividerLocation(splitPane)) return getMinimumDividerLocation(splitPane); if (location > getMaximumDividerLocation(splitPane)) return getMaximumDividerLocation(splitPane); return location; } | 28,624 |
private void paintTextDecoration(RenderingContext c) { Graphics graphics = c.getGraphics(); Color oldColor = graphics.getColor(); graphics.setColor(getStyle().getCalculatedStyle().getColor()); Rectangle edge = getContentAreaEdge(getAbsX(), getAbsY(), c); c.getGraph... | private void paintTextDecoration(RenderingContext c) { Graphics graphics = c.getGraphics(); Color oldColor = graphics.getColor(); graphics.setColor(getStyle().getCalculatedStyle().getColor()); Rectangle edge = getContentAreaEdge(getAbsX(), getAbsY(), c); c.getGraph... | 28,625 |
public static boolean isDecoratable(Context c, Node node) { if (!LayoutUtil.isReplaced(c, node)) { if (!LayoutUtil.isFloatedBlock(node, c)) { return true; } } return false; } | public static boolean isDecoratable(Context c, Node node) { if (!LayoutUtil.isReplaced(c, node)) { if (!LayoutUtil.isFloatedBlock(node, c)) { return true; } } return false; } | 28,626 |
public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover arg1=" + arg1 + " " + this); } return new Xid[0]; } | public Xid[] recover(int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover arg1=" + arg1 + " " + this); } return new Xid[0]; } | 28,627 |
public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover arg1=" + arg1 + " " + this); } return new Xid[0]; } | public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover flags=" + flags + " " + this); } return new Xid[0]; } | 28,628 |
public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover arg1=" + arg1 + " " + this); } return new Xid[0]; } | public Xid[] recover(int arg1) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover arg1=" + arg1 + " " + this); } return rm.recover(flags, connection); } | 28,629 |
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... | public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... | 28,630 |
public static void paintBackground(Context c, LineBox line, InlineBox inline, int padX) { //Uu.p("painting border: " + inline.border); // paint the background //int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle())... | public static void paintBackground(Context c, LineBox line, InlineBox inline, int padX) { //Uu.p("painting border: " + inline.border); // paint the background //int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle())... | 28,631 |
public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, in... | public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, in... | 28,632 |
public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, in... | public static void paintLeftPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, in... | 28,633 |
public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, i... | public static void paintRightPadding(Context c, LineBox line, InlineBox inline, int padX, int padWidth) { int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; LineMetrics lm = FontUtil.getLineMetrics(c, i... | 28,634 |
protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); doExpandParents(path, state); } | protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; doExpandParents(path, state); } | 28,635 |
public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... | public DefaultTreeCellRenderer() { setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForeground")); setTextSelectionColor(defaults.getColor(... | 28,636 |
public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... | public DefaultTreeCellRenderer() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForegro... | 28,637 |
public Icon getDefaultClosedIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.closedIcon"); } | public Icon getDefaultClosedIcon() { return UIManager.getIcon("Tree.closedIcon"); } | 28,638 |
public Icon getDefaultLeafIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.leafIcon"); } | public Icon getDefaultLeafIcon() { return UIManager.getIcon("Tree.leafIcon"); } | 28,639 |
public Icon getDefaultOpenIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.openIcon"); } | public Icon getDefaultOpenIcon() { return UIManager.getIcon("Tree.openIcon"); } | 28,640 |
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI... | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI... | 28,641 |
public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getLookAndFeelDefaults().getBorder( ... | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getLookAndFeelDefaults().getBorder( ... | 28,642 |
public Image getImage(String uri) { Image img = null; InputStream is = getInputStream(uri); if (is != null) { try { img = ImageIO.read(is); } catch (Exception e) { XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "... | public Image getImage(String uri) { Image img = null; InputStream is = getInputStream(uri); if (is != null) { try { img = ImageIO.read(is); } catch (Exception e) { XRLog.exception("Can't read image file; unexpected problem for URI '" + uri + "... | 28,643 |
public InputStream getInputStream(String uri) { InputStream is = null; uri = resolveURI(uri); if (uri.startsWith("file://")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace... | public InputStream getInputStream(String uri) { InputStream is = null; uri = resolveURI(uri); if (uri.startsWith("file://")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace... | 28,644 |
public boolean isVisited(String uri) { return false; } | public boolean isVisited(String uri) { uri = resolveURI(uri); return history.contains(uri); } | 28,645 |
public String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { background-col... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 28,647 |
public void layoutContainer(Container parent) { JRootPane rp = (JRootPane) parent; JLayeredPane layeredPane = rp.getLayeredPane(); Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPane.getCom... | public void layoutContainer(Container parent) { JRootPane rp = (JRootPane) parent; JLayeredPane layeredPane = rp.getLayeredPane(); Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPane.getCom... | 28,648 |
public Dimension preferredLayoutSize(Container parent) { JRootPane rp = (JRootPane) parent; JLayeredPane layeredPane = rp.getLayeredPane(); Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPa... | public Dimension preferredLayoutSize(Container parent) { JRootPane rp = (JRootPane) parent; JLayeredPane layeredPane = rp.getLayeredPane(); Component contentPane = layeredPane.getComponent(0); Component titlePane = layeredPane.getComponent(1); Component menuBar = null; if (layeredPa... | 28,649 |
private void installListeners() { Window window = SwingUtilities.getWindowAncestor(rootPane); window.addWindowFocusListener(new WindowFocusListener() { public void windowGainedFocus(WindowEvent ev) { repaint... | private void installListeners() { Window window = SwingUtilities.getWindowAncestor(rootPane); window.addWindowFocusListener(new WindowFocusListener() { public void windowGainedFocus(WindowEvent ev) { repaint... | 28,651 |
private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should have a contentPane already"; rp.getLayeredPane().add(new ... | private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); MetalTitlePane titlePane = new MetalTitlePane(rp); rp.setLayout(new MetalRootLayout(titlePane)); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should ... | 28,652 |
private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should have a contentPane already"; rp.getLayeredPane().add(new ... | private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() > 0 : "We should have a contentPane already"; rp.getLayeredPane().add(new M... | 28,653 |
private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should have a contentPane already"; rp.getLayeredPane().add(new ... | private void installWindowDecorations(JRootPane rp) { rp.setBorder(new MetalFrameBorder()); rp.setLayout(new MetalRootLayout()); // We should have a contentPane already. assert rp.getLayeredPane().getComponentCount() == 1 : "We should have a contentPane already"; rp.getLayeredPane().add(new ... | 28,654 |
private void uninstallWindowDecorations(JRootPane rp) { rp.setBorder(null); rp.getLayeredPane().remove(1); } | private void uninstallWindowDecorations(JRootPane rp) { rp.setBorder(null); JLayeredPane lp = rp.getLayeredPane(); for (int i = lp.getComponentCount() - 1; i >= 0; --i) { if (lp.getComponent(i) instanceof MetalTitlePane) { lp.remove(i); break; } } } | 28,656 |
protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... | protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... | 28,657 |
protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... | protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... | 28,658 |
protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... | protected void sendMessage(JBossMessage m, Transaction tx) throws JMSException { // The JMSDestination header must already have been set for each message JBossDestination jbDest = (JBossDestination)m.getJMSDestination(); if (jbDest == null) { throw new IllegalStateException("JMSDestinat... | 28,659 |
protected void dequeueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } | protected void dequeueKeyEvents (long after, Component untilFocused) { throw new Error("not implemented"); } | 28,660 |
protected void dequeueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } | protected void dequeueKeyEvents(long after, Component comp) { if (after < 0) { int size = delayRequests.size (); if (size > 0) delayRequests.remove (delayRequests.first ()); } else { EventDelayRequest template = new EventDelayRequest (after, untilFocused); if (delayRequests.contains (template)) { EventDelayReques... | 28,661 |
protected void discardKeyEvents(Component comp) { throw new Error("not implemented"); } | protected void discardKeyEvents(Component comp) { Iterator i = delayRequests.iterator (); while (i.hasNext ()) { EventDelayRequest request = (EventDelayRequest) i.next (); if (request.focusedComp == comp || (comp instanceof Container && ((Container) comp).isAncestorOf (request.focusedComp))) request.discardEven... | 28,662 |
public boolean dispatchEvent(AWTEvent e) { throw new Error("not implemented"); } | public boolean dispatchEvent(AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (target); else if (e.id != WindowEvent.WINDOW_LOST... | 28,663 |
public boolean dispatchKeyEvent(KeyEvent e) { throw new Error("not implemented"); } | public boolean dispatchKeyEvent(KeyEvent e) { Component focusOwner = getGlobalPermanentFocusOwner (); focusOwner.dispatchEvent (e); Iterator i = getKeyEventPostProcessors().iterator(); while (i.hasNext ()) { KeyEventPostProcessor processor = (KeyEventPostProcessor) i.next (); if (processor.postProcessKeyEven... | 28,664 |
public void downFocusCycle(Container cont) { throw new Error("not implemented"); } | public void downFocusCycle(Container cont) { if (cont == null) return; if (cont.isFocusCycleRoot (cont)) { FocusTraversalPolicy policy = cont.getFocusTraversalPolicy (); Component defaultComponent = policy.getDefaultComponent (cont); defaultComponent.requestFocusInWindow (); setGlobalCurrentFocusCycleRoot (cont)... | 28,666 |
protected void enqueueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } | protected void enqueueKeyEvents (long after, Component untilFocused) { throw new Error("not implemented"); } | 28,667 |
protected void enqueueKeyEvents(long after, Component comp) { throw new Error("not implemented"); } | protected void enqueueKeyEvents(long after, Component comp) { delayRequests.add (new EventDelayRequest (after, untilFocused)); } | 28,668 |
public void focusNextComponent(Component comp) { throw new Error("not implemented"); } | public void focusNextComponent(Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component next = policy.getComponentAfter (focusCycleR... | 28,669 |
public void focusPreviousComponent(Component comp) { throw new Error("not implemented"); } | public void focusPreviousComponent(Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component previous = policy.getComponentBefore (fo... | 28,670 |
public boolean postProcessKeyEvent(KeyEvent e) { throw new Error("not implemented"); } | public boolean postProcessKeyEvent(KeyEvent e) { int modifiers = e.getModifiers (); if ((modifiers & KeyEvent.CTRL_MASK) != 0 || (modifiers & KeyEvent.CTRL_DOWN_MASK) != 0) { Window focusedWindow = getGlobalFocusedWindow (); if (focusedWindow instanceof Frame) { MenuBar menubar = ((Frame) focusedWindow).getMenuBa... | 28,671 |
public void processKeyEvent(Component comp, KeyEvent e) { throw new Error("not implemented"); } | public void processKeyEvent(Component comp, KeyEvent e) { AWTKeyStroke eventKeystroke = AWTKeyStroke.getAWTKeyStrokeForEvent (e); AWTKeyStroke oppositeKeystroke = AWTKeyStroke.getAWTKeyStroke (e.getKeyCode (), e.getModifiers (), !(e.id == KeyEvent.KEY_RELEASED)); Set forwardKeystrokes = comp.getFocusTraversa... | 28,673 |
public void upFocusCycle(Component comp) { throw new Error("not implemented"); } | public void upFocusCycle(Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); if (focusCycleRoot instanceof Window) { FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component defaultCom... | 28,675 |
private void startInVMDatabase() throws Exception { HsqlProperties props = new HsqlProperties(); props.setProperty("server.database.0", "mem:test"); props.setProperty("server.dbname.0", "memtest"); props.setProperty("server.trace", "false"); props.setProperty("server.silent", "true"); ... | private void startInVMDatabase() throws Exception { HsqlProperties props = new HsqlProperties(); props.setProperty("server.database.0", "mem:test"); props.setProperty("server.dbname.0", "memtest"); props.setProperty("server.trace", "false"); props.setProperty("server.silent", "true"); ... | 28,678 |
private void startInVMDatabase() throws Exception { HsqlProperties props = new HsqlProperties(); props.setProperty("server.database.0", "mem:test"); props.setProperty("server.dbname.0", "memtest"); props.setProperty("server.trace", "false"); props.setProperty("server.silent", "true"); ... | private void startInVMDatabase() throws Exception { HsqlProperties props = new HsqlProperties(); props.setProperty("server.database.0", "mem:test"); props.setProperty("server.dbname.0", "memtest"); props.setProperty("server.trace", "false"); props.setProperty("server.silent", "true"); ... | 28,679 |
private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception { LocalManagedConnectionFactory mcf = new... | private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception { LocalManagedConnectionFactory mcf = new... | 28,680 |
private void startRemoting(boolean multiplex) throws Exception { RemotingJMXWrapper mbean; String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "serializationtype=jboss&" + ... | private void startRemoting(boolean multiplex) throws Exception { log.info("********* STARTING MULTIPLEX"); RemotingJMXWrapper mbean; String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + ... | 28,681 |
private void stopInVMDatabase() throws Exception { log.debug("stopping " + hsqldbServer); Class.forName("org.hsqldb.jdbcDriver" ); Connection conn = DriverManager.getConnection("jdbc:hsqldb:mem:test", "sa", ""); Statement stat = conn.createStatement(); stat.executeUpdate("SHUTDOWN"); ... | private void stopInVMDatabase() throws Exception { log.debug("stopping " + hsqldbServer); Class.forName("org.hsqldb.jdbcDriver" ); Connection conn = DriverManager.getConnection("jdbc:hsqldb:mem:test", "sa", ""); Statement stat = conn.createStatement(); stat.executeUpdate("SHUTDOWN"); ... | 28,683 |
public Quit() { putValue(SHORT_DESCRIPTION, "Exit designer"); putValue(NAME, "Exit"); putValue(LONG_DESCRIPTION, "Exit the designer application"); } | public Quit() { putValue(SHORT_DESCRIPTION, "Exit designer"); putValue(NAME, "Exit"); putValue(LONG_DESCRIPTION, "Exit the designer application"); } | 28,685 |
public void paint(Graphics g) { int b = borderWidth; Graphics2D g2 = (Graphics2D)g; Dimension d = getSize(); boolean tmp = selected; if(super.isOpaque()) { g.setColor(super.getBackground()); g.fillOval(b - 1, b - 1, d.width - b, d.height - b); } try { setBorder(null); s... | public void paint(Graphics g) { int b = borderWidth; Graphics2D g2 = (Graphics2D)g; Dimension d = getSize(); boolean tmp = selected; if(super.isOpaque()) { g.setColor(super.getBackground()); g.fillOval(b - 1, b - 1, d.width - b, d.height - b); } try { setBorder(null); s... | 28,686 |
public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (client == null) { //We shouldn't have to do this programmatically - it should pick it up from the params //on the locator uri, but that doe... | 28,687 |
public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | 28,688 |
public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | 28,689 |
public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | 28,690 |
public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | public Object invoke(Invocation invocation) throws Throwable { Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (log.isTraceEnabled()) { log.trace("In RemotingClientInterceptor"); } if (client == null) { //We shouldn't have to do this programmatically - it shou... | 28,691 |
private static short guessType( String value ) { short type = CSS_STRING; if ( value != null && value.length() > 1 ) { if ( value.endsWith( "%" ) ) { type = CSS_PERCENTAGE; } else if ( value.startsWith( "rgb" ) || value.startsWith( "#" ) ) { type = C... | private static short guessType( String value ) { short type = CSS_STRING; if ( value != null && value.length() > 1 ) { if ( value.endsWith( "%" ) ) { type = CSS_PERCENTAGE; } else if ( value.startsWith( "rgb" ) || value.startsWith( "#" ) ) { type = C... | 28,693 |
public static IRandom getSystemInstance() throws ClassNotFoundException, MalformedURLException, NumberFormatException { CSPRNG instance = new CSPRNG(); HashMap attrib = new HashMap(); attrib.put(BLOCKING, new Boolean(getProperty(BLOCK))); String s = null; // Get each file source "gnu.crypto.csprn... | public static IRandom getSystemInstance() throws ClassNotFoundException, MalformedURLException, NumberFormatException { CSPRNG instance = new CSPRNG(); HashMap attrib = new HashMap(); attrib.put(BLOCKING, Boolean.valueOf(getProperty(BLOCK))); String s = null; // Get each file source "gnu.crypto.c... | 28,694 |
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null //Uu.p("deepest hover = " + ib); if (prev == ib) { ... | 28,695 |
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 28,696 |
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 28,697 |
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 28,698 |
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 28,699 |
private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 28,700 |
public static boolean isJustified(Context c, Element containing_block) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align != null && text_align.equals("justify")) { return true; } return false; } | public static boolean isJustified(Context c, Element containing_block) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align != null && text_align.equals("justify")) { return true; } return false; } | 28,701 |
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); inspector = new D... | public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); inspector = new D... | 28,702 |
public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel = new XHTMLPanel(); panel.setPreferredSize( new Dimension( text_width, text_width ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( scroll.VERTICAL_SCROLLBAR_... | public HTMLTest( String[] args ) throws Exception { super( BASE_TITLE ); panel = new XHTMLPanel(); int width = 360; int height = 500; panel.setPreferredSize( new Dimension( width, height ) ); JScrollPane scroll = new JScrollPane( panel ); scroll.setVerticalScrollBarPolicy( ... | 28,703 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.