java Programming Glossary: color.blue
Java Bouncing Ball http://stackoverflow.com/questions/13022754/java-bouncing-ball ballcolor red color Color.red else if ballcolor blue color Color.blue else if ballcolor black color Color.black else if ballcolor.. red color Color.red else if ballcolor blue color Color.blue else if ballcolor black color Color.black else if ballcolor..
Swing animation running extremely slow http://stackoverflow.com/questions/14886232/swing-animation-running-extremely-slow Yellow Color.yellow Red Color.red Green Color.green Blue Color.blue Orange Color.orange Pink Color.pink private final Color color..
Draw a circle with a radius and points around the edge http://stackoverflow.com/questions/2508704/draw-a-circle-with-a-radius-and-points-around-the-edge Math.abs m r 2 g2d.drawOval a r b r 2 r 2 r g2d.setColor Color.blue for int i 0 i n i double t 2 Math.PI i n int x int Math.round..
How to represent double values as circles in a 2d matrix in java http://stackoverflow.com/questions/2833482/how-to-represent-double-values-as-circles-in-a-2d-matrix-in-java RenderingHints.VALUE_ANTIALIAS_ON g2d.setColor Color.blue double v Double.valueOf this.getText int d int v SIZE int r..
GUI not working after rewriting to MVC http://stackoverflow.com/questions/3066590/gui-not-working-after-rewriting-to-mvc Color.black Color.white Color.red Color.yellow Color.green Color.blue new Color 7 254 250 public View String name int w int h Model.. hidden enum Piece Red Color.red Green Color.green Blue Color.blue public Color color private Piece Color color this.color color..
Variable Layout in Swing http://stackoverflow.com/questions/3174765/variable-layout-in-swing createPane 3 Two Color.green this.add createPane 10 Three Color.blue private JPanel createPane int n String s Color c JPanel outer..
Java - Transparent JScrollPane http://stackoverflow.com/questions/3517722/java-transparent-jscrollpane Graphics g super.paintComponent g g.setColor Color.blue g.fillRect TILE TILE 3 TILE 3 TILE private static class MyPanel..
Java2D Graphics anti-aliased http://stackoverflow.com/questions/4285464/java2d-graphics-anti-aliased fractional metrics settings. Addendum Using g2d.setColor Color.blue seems to produce the expected effect. Addendum On Mac OS X the.. Graphics2D g2d Graphics2D bi.getGraphics g2d.setColor Color.blue layout.draw g2d 0 r.y g2d.dispose return bi private void display..
Rotating a shape vertically around the x-axis http://stackoverflow.com/questions/5593066/rotating-a-shape-vertically-around-the-x-axis scale scale at.translate p3x 5 10 p3y 5 g2d.setPaint Color.blue g2d.fill at.createTransformedShape p3 public void start timer.start..
Draw a line in a JPanel with button click in Java http://stackoverflow.com/questions/5797862/draw-a-line-in-a-jpanel-with-button-click-in-java g Graphics2D g2d Graphics2D g g2d.setColor Color.blue g2d.setRenderingHint RenderingHints.KEY_ANTIALIASING RenderingHints.VALUE_ANTIALIAS_ON..
refreshing background color for a row in jtable http://stackoverflow.com/questions/6900628/refreshing-background-color-for-a-row-in-jtable 0 else comp.setForeground Color.blue if isCellEditable row column comp.setForeground Color.red..
Inconsistent performance applying ForegroundActions in a JEditorPane when reading HTML http://stackoverflow.com/questions/8523445/inconsistent-performance-applying-foregroundactions-in-a-jeditorpane-when-readin new StyledEditorKit.ForegroundAction set foreground red Color.blue bar.add editorPane.getActionMap .get font size 12 .setText 12.. bar.add new StyledEditorKit.ForegroundAction Blue Color.blue bar.add new StyledEditorKit.FontSizeAction 12 12 bar.add new..
Nice looking progress bar in java http://stackoverflow.com/questions/8884297/nice-looking-progress-bar-in-java JProgressBar jpb.setUI new MyProgressUI jpb.setForeground Color.blue jpb.setIndeterminate true this.add jpb private static class..
How do I move my JMenuBar to the screen menu bar on Mac OS X? http://stackoverflow.com/questions/8955638/how-do-i-move-my-jmenubar-to-the-screen-menu-bar-on-mac-os-x 320 240 dm.setBorder BorderFactory.createLineBorder Color.blue 10 frame.setDefaultCloseOperation JFrame.EXIT_ON_CLOSE frame.add..
rotating coordinate plane for data and text in Java http://stackoverflow.com/questions/9371961/rotating-coordinate-plane-for-data-and-text-in-java blueTop blueWidth blueHeight g.setColor Color.blue g.drawRect leftStartPlotWindow blueTop blueWidth blueHeight..
Dynamic Graphics Object Painting In Java http://stackoverflow.com/questions/10628492/dynamic-graphics-object-painting-in-java 40 Graphics g surface.getGraphics if drawArc g.setColor Color.BLUE int xx random.nextInt 60 int yy random.nextInt 40 drawArc x..
How do I use GridBayLayout in Java (Swing) to generate this particular image in my frame? http://stackoverflow.com/questions/11165323/how-do-i-use-gridbaylayout-in-java-swing-to-generate-this-particular-image-in JPanel portrait1.setOpaque true portrait1.setBackground Color.BLUE portrait1.setBorder BorderFactory.createMatteBorder 2 2 2.. JPanel portrait3.setOpaque true portrait3.setBackground Color.BLUE portrait3.setBorder BorderFactory.createMatteBorder 2 2 2.. JPanel portrait2.setOpaque true portrait2.setBackground Color.BLUE portrait2.setBorder BorderFactory.createMatteBorder 2 2 2..
Custom List Field click event http://stackoverflow.com/questions/11483128/custom-list-field-click-event new XYRect graphics.setGlobalAlpha 150 graphics.setColor Color.BLUE getFocusRect rect drawHighlightRegion graphics HIGHLIGHT_FOCUS.. XYRect rect new XYRect g.setGlobalAlpha 150 g.setColor Color.BLUE getFocusRect rect drawHighlightRegion g HIGHLIGHT_FOCUS true..
Threads with Key Bindings http://stackoverflow.com/questions/13999506/threads-with-key-bindings g2.setColor Color.YELLOW break case blue g2.setColor Color.BLUE break case orange g2.setColor Color.ORANGE break case cyan..
How to add JPanel by clicking JButton? http://stackoverflow.com/questions/14011397/how-to-add-jpanel-by-clicking-jbutton Panel1 extends JPanel public Panel1 this.setBackground Color.BLUE a lot of drawing stuff going on here @Override public Dimension.. Panel1 extends JPanel public Panel1 this.setBackground Color.BLUE a lot of drawing stuff going on here @Override public Dimension..
Create a autocompleting textbox in Java with a dropdown list http://stackoverflow.com/questions/14186955/create-a-autocompleting-textbox-in-java-with-a-dropdown-list new AutoSuggestor f frame null Color.WHITE.brighter Color.BLUE Color.RED 0.75f @Override boolean wordTyped String typedWord..
Collision detection with complex shapes http://stackoverflow.com/questions/14574045/collision-detection-with-complex-shapes RenderingHints.VALUE_ANTIALIAS_ON g.setColor Color.BLUE g.fillRect 0 0 img.getWidth img.getHeight x xDelta y yDelta..
Providing white space in a Swing GUI http://stackoverflow.com/questions/17874717/providing-white-space-in-a-swing-gui cardPanel.setBackground Color.WHITE cardPanel.add getPanel Color.BLUE cardPanel.add getPanel Color.GREEN contentPane.add cardPanel..
Highlights subString in the TableCell(s) which is using for JTable filetering http://stackoverflow.com/questions/6410839/highlights-substring-in-the-tablecells-which-is-using-for-jtable-filetering new Font Serif Font.BOLD 28 filterCpText.setForeground Color.BLUE filterCpText.setBackground Color.LIGHT_GRAY JPanel filterCpPanel..
Getting fonts, sizes, bold,…etc http://stackoverflow.com/questions/6965038/getting-fonts-sizes-bold-etc setColor Color.BLACK else if color.equals Blue setColor Color.BLUE else if color.equals Red setColor Color.red Font font new..
How can I change the shape of a JTabbedPane tab? http://stackoverflow.com/questions/7054466/how-can-i-change-the-shape-of-a-jtabbedpane-tab new GradientPaint x y new Color 100 100 255 x y h Color.BLUE break case TOP default xp new int x x x 3 x w inclTab 6 x..
JTable how to change BackGround Color http://stackoverflow.com/questions/8197261/jtable-how-to-change-background-color createShadow new Color 250 150 150 shadow createShadow Color.BLUE shadowBottom private void createShadow Color color BufferedImage.. createShadow new Color 250 150 150 shadowRed createShadow Color.BLUE shadowBlue final JTable table JTable com viewport.addChangeListener..
Drawing rectangle on a JPanel http://stackoverflow.com/questions/9258890/drawing-rectangle-on-a-jpanel Color.red else if shape.selectedcolor blue g2.setColor Color.BLUE else if shape.selectedcolor yellow g2.setColor Color.yellow.. Color.red else if shape.selectedcolor blue g2.setColor Color.BLUE else if shape.selectedcolor yellow g2.setColor Color.yellow..
Adding JPanels from other classes to the cardLayout http://stackoverflow.com/questions/9322474/adding-jpanels-from-other-classes-to-the-cardlayout JLabel textLabel new JLabel Window3 setBackground Color.BLUE add textLabel BorderLayout.CENTER JButton nextButton new JButton..
Minimizing Jinternal Frame without clicking the button http://stackoverflow.com/questions/9414728/minimizing-jinternal-frame-without-clicking-the-button 2 Color.GREEN desktop.add createInternalFrame 3 Color.BLUE private JInternalFrame createInternalFrame int number Color..
How to change text color in the JtextArea? http://stackoverflow.com/questions/9650992/how-to-change-text-color-in-the-jtextarea appendToPane tPane I wish I could be ONE of THE BEST on Color.BLUE appendToPane tPane Stack Color.DARK_GRAY appendToPane tPane..
|