Carey Brown

Saloon Keeper
+ Follow
since Nov 19, 2001
Carey likes ...
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows ChatGPT
Merit badge: grant badges
Forum Moderator
Carey Brown currently moderates these forums:
For More
Colorado, USA
Cows and Likes
Cows
Total received
83
In last 30 days
0
Total given
9
Likes
Total received
1987
Received in last 30 days
3
Total given
393
Given in last 30 days
6
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Carey Brown

What data type is cornflower? Where is it loaded?

You have a loop loading 30 images but those are not being added to the JScrollPane.

What is the program doing? What are you expecting it to do?
12 minutes ago
Welcome to The Ranch!

We would prefer that you cut and paste your code into a post rather than a screen snapshot.
25 minutes ago
In your screen snapshot the path starts with "first:". What is that? Is that specific to Visual Studio?

What is the absolute path to your symbolic link (shortcut)? What path does the link refer to?
28 minutes ago
This has been enlightening. Here's both together with some timing.

Output:

23 hours ago
This might be an example of an anonymous class with a field, though it also has a lambda feature.

Fikri Harlov wrote:Whenever I need a class with fields rather than a simple function like a lambda.


@Fikri, I think you may have a valid point but I'm having a hard time coming up with a legitimate example. Could you please provide one?
Although... I was trying to find an example in my source code archive and only came up with examples like this. This was NOT implemented as an ANONYMOUS class because the constructor takes a parameter so it could be used in more than one place.

2 days ago
I might suggest a different approach.  The problem with your approach is that if there was something beneath the circle  you drew then that would be erased also. If you drew the circle on it's own buffered image and then have paint() display the combined buffer images then you could just remove the one BufferedImage or effectively use the alpha value and set the pixels to transparent.
3 days ago
I suspect this:
Grafica.tela.repaint();
because it is called after you do the erase.

Can you show us the code for this?
3 days ago
Does your product look like this:
Product@6a9cbbe

If so, the you are missing the Product.toString() method.
3 days ago
I can't compile this without the Product source code.
3 days ago
Preferred size is the starting point for the size a layout manager will use if possible. This size may be reduced due to constraints placed by other components but should not be reduced below Minimum size.
6 days ago
You'd need to start with a clear specification as to what constitutes a valid String. Only then can you decide on a technique for implementation and test cases.
6 days ago
"Close" is the last menu item in what would have been the "File" menu.
1 week ago