« first day (2023 days earlier)      last day (2913 days later) » 

2:33 AM
Can you position an Image inside of an ImageView in JavaFX?
 
What do you mean by position?
 
2:49 AM
Err, it seems that when you insert an image in imageview, and the ImageView's FitHeight and FitWidth is set to 0, it floats to the topleft
Is there a way to shift it's position, or is that not possible?
 
Can you show an example?
 
fge
Milestone: SpaceX has successfully landed back a rocket on Earth after that same rocket delivered a satellite on a geostationary orbit (~36000 km altitude)
Kudos to Elon Musk
 
I like that man.
 
fge
Yep, he has what it takes to, well, just, do stuff
 
I'll see if I can
I think I just decided to do a "hacky" solution and reposition the ImageView instead of trying to manipulate the "image inside", since I didn't find anything in the API that would imply being able to shift anything inside
 
fge
3:05 AM
"There's a silly notion that failure's not an option at NASA. Failure is an option here. If things are not failing, you are not innovating enough." (link)
 
If there is not fitWidth and fitHeight set then the ImageView should take the size of the Image.
 
I'll try to be more specific with my language
My first problem was, that I was trying to animate something made up of different frames
However, each frame had a different size
Mainly because whoever ripped the image, did not rip the frames equally, rather just to the length/width of the figure
 
@Luiserebii That is a problem in itself
 
So, I was trying to animate the frames (which, in this case was a flower growing out)
 
You can resize images, if you want to.
 
3:08 AM
I managed to get it to work by just shifting the ImageView's position as the images changed, which seems to work out
 
Kool
K was closer to my right hand ;)
"Elon has really opened the checkbook for me," says Bob Reagan, the ponytailed, gravel-voiced VP of manufacturing. "All he ever asks me is, 'What do you need?' "
 
 
2 hours later…
4:57 AM
Got an object-oriented design question for anyone willing to answer
 
fge
@corbfon s,n object-oriented,, -- ask away
 
I've heard from several sources that it's better design to implement an interface than to use inheritance. Of course, that won't actually be all scenarios, but I'm wondering what would be best in my case
I've got a super class with a bunch of subclasses (obviously). I would like to be able to treat the subclasses as an instance of the superclass at some points. So I need inheretance
But would it be better to implement an interface in the super class, rather than use inheritance to do everything? Basically wondering about the advantages of composition over inheritance
Sorry, I feel like this is really vague...just trying to work through it. That's why I'm here not asking an official question XD
 
5:34 AM
Hello.
Could somebody please answer my question? I've been looking for a solution for three days now!
1
Q: Problems printing out a custom button and making MouseListener work

JavaNoobI want to make a custom button that consists of a big and a small square, which have these colors respectively: #2980b9 #3498db. The small square would be inside of the big one, and it would increment it's size when the cursor is placed above or if it's clicked, and at the same time the color wou...

Thanks.
 
@JavaNoob what exactly is at line : 59 ?
 
6:07 AM
Now it says 62 and 69.
62 and 92*
But actually, that is not the entire thing.
This is ALL what the console says:
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEnterExit(Unknown Source)
	at java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
And this is what is at line 62:
if (e.getX() > smallSquareXPosition && e.getX() < smallSquareXPosition + smallSquareXSize) {
It gets the cursor's x position and it compares it with the smalSquare's one.
I think that the problem has to do with the square having a position that depends on the frame's size, but I don't know what to do.
 
6:42 AM
I FIGURED OUT WHAT WAS CAUSING THE CONSOLE TO SAY WHAT IT SAID!
But things are printed in the same way and MouseListener is still not working.
It's an advance, though.
 
 
7 hours later…
1:48 PM
Hello Java
Question for whoever might be around: I have a swing table which is going to show different rows based on row selection in another table.
Should I just add all the rows and display/hide them based on the selection
or should I actually add and remove the rows based on the selection?
 
Neo
Hello
Has someone already used weblogic?
 
 
1 hour later…
2:57 PM
Morning, Java!
 
3:18 PM
@Michael Hello
 
Hey @DRich.
 
How's this weekend treating you?
 
Hey guys, new here - anyone around with experience using Grizzly?
 
@ideaz Hi, and welcome, and sorry- I don't have an experience with Grizzly
 
Thanks @DRich. For anyone who has, I am trying to understand setting up filters in conjunction with using a handler (ex:- Jaxwshandler) and having tough luck finding any such examples.
 
3:35 PM
@DRich Not bad, you?
 
Pretty well- getting to work on this project of mine
speaking of which, did you see my question from earlier by chance?
about hiding vs adding/removing rows in a JTable?
 
4:19 PM
Morning!
 
4:43 PM
Morning, @Uni!
@DRich And no. But it's been a while since I've worked with JTables, so I probably can't help you. xD
 
5:05 PM
Hello guys. I need a little help with something.
 
Hello Haris :)
 
Is there something called interactive java?
 
@Haris in your dreams.
 
Ok, I found this --> duckduckgo.com/…
does this even exist?
 
oh free music tonight
 
5:12 PM
Off to lunch, bye Java!
 
bye.
 
5:52 PM
Hi
I just learn coding in java
Now I want to start the web in java
Should I have to pick up jsp
 
no it's deprecated
 
So what should I have to use
 
hmm
how about not java
 
What do u mean
 
if you do web development, use Laravel - laravel.com
 
5:57 PM
PHP in 2016? You're going to make me cry.
 
I have expireance in php, asp
Now I want to learn java
I think Lavarvel is a php framework
!!!
I'm talking about javaaaaa
 
fge
Grrr, IDEA is acting up
 
 
2 hours later…
7:40 PM
@Markberg I will recommend you start with Servlets
 
 
1 hour later…
9:09 PM
!_!
 
9:53 PM
Hello guys i need to sort different objects with date
how can i do that?
 
 
1 hour later…
11:00 PM
okay i did with treemap thanks =)
 
11:46 PM
@Unihedron I develop all my websites in servlets with hard-coded HTML.
you mad bro?
 

« first day (2023 days earlier)      last day (2913 days later) »