![]() Our PPG distributor couldn't find a code to match. Posted 18:31 (#6243870 - in reply to #6242979) Subject: RE: Old Steiger Green paint code Posted 17:09 (#6243717 - in reply to #6243706) Subject: RE: Old Steiger Green paint code Posted 17:03 (#6243706 - in reply to #6243377) Subject: RE: Old Steiger Green paint codeĬan't tell you how much I appreciate your help. I just got a quote a couple of months ago for ppg aue360 which is a single stage urethane and the number on the ticket is 920749, steiger green Posted 13:29 (#6243377 - in reply to #6242979) Subject: RE: Old Steiger Green paint code Want to paint my Panther with single stage urethane. Posted 10:14 (#6242979) Subject: Old Steiger Green paint codeĪnyone know what the PPG or Dupont paint code is for Steiger green (or whatever code I need to match color ). Old Steiger Green paint code Jump to page : 1 Now viewing page 1 Combining them in the same file has for sure nothing to do with it.You are logged in as a guest. I have gathered the two classes into one class file and the program stoped the lag. What does it run? And it is not a panel.Īny reason why you're not using the constants defined in JFrame? Why are you doing this on every mouse press? Also, if it does not do anything, why override it? This method seems to override a super method, yet misses the annotation. You should not declare multiple variables on the same line, it makes it easy to miss the declaration of variables. Personally I also don't like this column based alignment, it puts my brain into some sort of "column reading mode" which makes it hard for me to associate the value with the variable. Personally, I don't like such "structuring" comments, they do nothing and only clutter up the code and need to be manually moved when refactoring automatically. I'm sure you can find a more descriptive name for this class, like PaintablePanel or MousePaintablePanel. ![]() Your code formatting deviates from the default Java code formatting, just saying. ![]() What is causing this? You can see the code here. NOTE: I have gathered the two classes into one class file and the program stopped the lag. Maybe this is because I am drawing lines in between the positions, but drawing individual pixels look MUCH worse. But again, as I increase the mouse speed the lines/curves start the get jaggy and ugly. The program works fine, I can draw normal curves at low mouse speed. JFrame frame = new JFrame( "Run Panel" ) ("Mouse is being dragged at X: " + x1 + " Y: " + y1) Īnd the JFrame class with the main method: import java.awt.* ("Mouse is being pressed at X: " + x1 + " Y: " + y1) Private class MyMouseHandler extends MouseAdapter ![]() SetPreferredSize( new Dimension( DEFAULT_WIDTH, DEFAULT_HEIGHT ) ) Private final Color BACK_COLOR = Color.WHITE The custom JPanel class: import java.awt.* Then I switched to using a different approach (stored previous x and y locations and drew a line between the current position and the previous location). In my first try, I tried using Timer and an ActionListener with repaint() but that seemed very very laggy (I could not draw straight lines/curves, they would always be laggy when I dragged my mouse fast.) I have separated the program into two different class files one of them holds the JFrame and adds a custom panel (this custom panel being the second class file, extending JPanel). I have written a very basic paint program in java using AWT and Swing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |