|
More site info...
|
|
Forum profile page for Java 2D
on http://www.sun.com.
This report page is the aggregated overview from a single forum: Java 2D
, located on the Message Board at http://www.sun.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "Java 2D
" on the Message Board at http://www.sun.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on Java 2D
:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
34
|
131
|
352
|
|
Post:
|
79
|
286
|
851
|
|
|
Java 2D
Posting activity graph:
|
Top authors during last week:
user's latest post:
graphics2d 4 drawings for four...
Published (2009-12-04 09:05:00)
Lil_chidya wrote: now nothing appears when i click the jButton1 And when do you actually call that method? Without the SSCCE we asked for, I can't help you any more.
user's latest post:
need help displaying shapes...
Published (2009-11-30 19:11:00)
To try to code graphics without doing this is about as useful as groping about in the dark. But groping about in the dark is so much fun ;-) ;-) Oh wait, we're talking about programming here :( db
user's latest post:
repainting correctly without...
Published (2009-11-30 09:39:00)
That black part is part of your image. The condition for using the code in my reply above was that the image has an alpha channel. Your image has no alpha channel . Use one of either TYPE_INT_ARGB, TYPE_4BYTE_ABGR, TYPE_INT_ARGB_PRE, TYPE_4BYTE_ABGR_PRE, or GraphicsConfiguration#createCompatibleImage(int width, int height, Transparency.BITMASK)
user's latest post:
Cut polygon from image
Published (2009-12-04 09:40:00)
I have just used wikipedia to see what the hell now "rhetorical" means and I can say only: no, no, no, it is not rhetorical, please answer my post! :) Let me try to make it more simple: I have 2 images (BufferedImage) and both images have colored content and black areas. I'd like to join those 2 images into 1 image (draw one over the other) and to make black areas disappear, because where first image has black area where the...
user's latest post:
Cut polygon from image
Published (2009-12-04 10:53:00)
milantomic123 wrote: I have just used wikipedia to see what the hell now "rhetorical" means and I can say only: no, no, no, it is not rhetorical, please answer my post! :) I already gave you the answer, but since it seems you have no interest in reading / pursuing my /our advice, I can only assume that all of this is just a log to yourself.
user's latest post:
Load images without flickering
Published (2009-12-03 23:03:00)
Raja.Sivagurunathan wrote: ..Here is my code snippet. How do you know the problem is in the snippet? Maybe it is some other part of the code you did not post. Either way, I do not have time to pore over code snippets, in the hope they are the right parts of the code, looking for solutions. ... Please help me to solve this problem. I will look further into the code if you post an SSCCE (<- link). Note that if you reply to me and post...
user's latest post:
when button clicked image is...
Published (2009-12-03 21:41:00)
Dear sir my code is very big..so I m posting only the part of a code...plz tell me where I should make a change??? ..plz help me .My problem is when the button 4 is clicked i.e submit button the image should be displayed in the same form with all data..only photo is added... JPanel theButtonPanel = new JPanel( new BorderLayout()); JButton button1 = new JButton( "Cancel" ); JButton button2 = new JButton(...
user's latest post:
graphics2d 4 drawings for four...
Published (2009-12-04 09:01:00)
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { JScrollPane listScroller = new JScrollPane(jPanel1); listScroller.setPreferredSize(jPanel1.getPreferredSize()); listScroller.setAlignmentX(LEFT_ALIGNMENT); comonent= new NoElement(); comonent.setSize( new Dimension(11,8)); comonent.setAlignmentX(LEFT_ALIGNMENT); comonent.setMinimumSize( new Dimension(20, 20)); comonent.setPreferredSize( new Dimension(20,20));...
user's latest post:
when button clicked image is...
Published (2009-12-03 07:05:00)
Then you need to go back and read the tutorial on graphics, post some code--a short working model showing your problem. When you make a GUI and use a JPanel to show your image, you override the paintComponent to show the image, it will not affect your layout.
|
|
|
|
Latest active threads on Java 2D
::
Started 2 days, 2 hours ago (2009-12-04 05:50:00)
by tjacobs01
Check out Area. Create an Area for you whole area and an Area for your cutout, and use Area. subtract(? check out the API)
You can then set this as the graphics clipping and voila
Started 1 day, 16 hours ago (2009-12-04 15:44:00)
by slowmotion
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import javax.swing.JFrame;
public class PlatnoRx extends Canvas {
private static final long serialVersionUID = 4741063338633439424L;
public BufferedImage bi;
public WritableRaster wr;
public PlatnoRx() {
this....
Started 1 week, 6 days ago (2009-11-23 05:09:00)
by Lil_chidya
i didnt mention one thing the output should be like in a horizontal window
Started 2 days, 2 hours ago (2009-12-04 05:56:00)
by kevinaworkman
LankanSniper wrote:
I need to recognize and print coordinates of the black pixels present in a threshold image which means image only consist of Black and White pixels. Please somebody help me with the implementation. (Sample threshold-ed image is attached)
Code: http://www.java-forums.org/attachments/java-2d/665 d1259905778-recognize-black-pixel-threshold-image- 1.jpg
public ...
Started 2 days, 4 hours ago (2009-12-04 03:22:00)
by StanislavL
You should use one of the rotation
if text orientation should be from up to down of rotated page use the first approach
if (orientation == ORIENTATION_DOWN_UP) {
g2d.rotate( -Math.PI / 2, 0, 0);
g2d.translate( -w, 0);
}
else {
g2d.rotate(Math.PI / 2, 0, 0);
g2d.translate(0, -h);
}
w and h ...
Started 2 days, 9 hours ago (2009-12-03 22:39:00)
by AndrewThompson64
Raja.Sivagurunathan wrote:
...I have a folder contains 100 numbers of images like Jpeg0.jpeg, Jpeg1.jpeg, Jpeg2.jpeg......Jpeg99.jpeg.
My question is, how can i navigate to the next or previous images without flickering?
Fix the code.
Started 3 days, 19 hours ago (2009-12-02 13:04:00)
by morgalr
Use a JPanel and layout manager and you'll need another JPanel too. To do this right, you need to use components for each result you want shown and it is possible by using the appropriate layout.
You can do all of this in just the JFrame using absolute layout, but I do not recommend it.
Started 2 days, 14 hours ago (2009-12-03 18:01:00)
by slowmotion
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.font.*;
import java.awt.geom.*;
import javax.swing.*;
import javax.swing.event.MouseInputAdapter;
public class DAL extends JPanel {
Line2D.Double[] lines = new Line2D.Double[0];
Rectangle2D.Double[] rects = new Rectangle2D.Double[0];
boolean showRects = ...
Started 5 days, 12 hours ago (2009-11-30 19:11:00)
by DarrylBurke
To begin with, you don't paint 'on' a Graphics2D object, you paint with a Graphice object on a painting surface which is usually some subclass of Component.
If you're using AffineTransform, read the API for createTransformedShape.
db
|
|
Hot threads for last week on Java 2D
::
Started 2 days, 2 hours ago (2009-12-04 05:50:00)
by tjacobs01
Check out Area. Create an Area for you whole area and an Area for your cutout, and use Area. subtract(? check out the API)
You can then set this as the graphics clipping and voila
Started 5 days, 20 hours ago (2009-11-30 11:49:00)
by DarrylBurke
1. Do you claim to be running that uncompilable code?
2. Do custom painting in an extended JPanel or JCOmponent, not in a top level window.
3. Performing Custom Painting
db
Started 1 week, 6 days ago (2009-11-23 05:09:00)
by Lil_chidya
i didnt mention one thing the output should be like in a horizontal window
Started 6 days, 2 hours ago (2009-11-30 05:20:00)
by kevinaworkman
toki78 wrote:
Hi,
is it possible to load all frames of an animated gif ?
Best Regards
Thorsten
What happened when you tried?
Started 3 days, 19 hours ago (2009-12-02 13:04:00)
by morgalr
Use a JPanel and layout manager and you'll need another JPanel too. To do this right, you need to use components for each result you want shown and it is possible by using the appropriate layout.
You can do all of this in just the JFrame using absolute layout, but I do not recommend it.
Started 1 week, 1 day ago (2009-11-27 23:25:00)
by DarrylBurke
I don't get the desired results.
Perhaps you'd like to tell us what results you do get? Also, why construct a FileInputStream when there is a form of createFont that accepts a File?
And please correct your indenting, it's very difficult to follow code with mismatching indents and outdents. And posting meaningless IDE-generated comments, and that too wrongly located, is yet another ...
Started 1 week, 4 days ago (2009-11-24 18:37:00)
by tjacobs01
it's all a combination of calling repaint and revalidate, either on the affected panel or its parent
Started 5 days, 12 hours ago (2009-11-30 19:11:00)
by DarrylBurke
To begin with, you don't paint 'on' a Graphics2D object, you paint with a Graphice object on a painting surface which is usually some subclass of Component.
If you're using AffineTransform, read the API for createTransformedShape.
db
Started 2 days, 9 hours ago (2009-12-03 22:39:00)
by AndrewThompson64
Raja.Sivagurunathan wrote:
...I have a folder contains 100 numbers of images like Jpeg0.jpeg, Jpeg1.jpeg, Jpeg2.jpeg......Jpeg99.jpeg.
My question is, how can i navigate to the next or previous images without flickering?
Fix the code.
Started 6 days ago (2009-11-30 07:46:00)
by morgalr
Graphics Addressing Remapping Table? (GART) or Golden Valley Agricultural Research Trust (GART) or German American Research Trust (GART). Perhaps you could explain what it is that you want. If it's the remapping table, then please explain a bit about what you want to do with it, because as far as I can see, it's not going to have any bearing on Java programming.
|
|