I don't understand. I don't know how to do that.
When I double click on an icon, it should disappear from screen and from memory. So I thought the model object of the icon should get kicked from...
Type: Posts; User: Alice
I don't understand. I don't know how to do that.
When I double click on an icon, it should disappear from screen and from memory. So I thought the model object of the icon should get kicked from...
Mkay. :-/
Is there a way to test an object has been garbage collected? Or just a way to detect what references are linked to an object at runtime? There must be tools to check for memory leakage....
You are right. I forgot to clear that reference. (I feel so silly). The icon model is referenced from two places.
As a matter of fact, now that I took care of that reference, the model object...
Sweet of the both of you to reply so fast.
It's not that easy to post my code since the program does lots of other things I'd rather not divulge. If this post doesn't help make it clearer, I'll...
Sounds like the title of a spy novel, doesn't it? ;))
Actually I wrote a small MVC-type program that has icons (JLabel) on a screen (JPanel). The logic of the icons is managed by a model class....
There are hundreds of tutorials on that subject.
Here are the first three a Google search provided:
Creating a GUI With JFC/Swing
JAVA SWING GUI TUTORIAL
Complete Java GUI Tutorial - Beginner...
Ok, they basically reduce the picture to an array of color values for each pixel. And they ask you to manipulate the pixel values and restore them in the same array. This exercise is not about...
You paste your code in the body and you write the tags before and after the code.
You can preview your message to see if it turned out ok before you submit.
I don't want to sound rude, but you...
These perhaps?
FastFourierTransformer
FFT
Hey Nawaf,
I wrote a program like that a while ago, based on an online tutorial. I can't seem to find the tutorial anymore, but here is the original program: DragKing
I hope this helps.
...
Hello copeg, thanks so much for answering this. I've been watching this topic like a mother hen over her chicks. :o
At this point it is design. If you have a solution in another language or in...
Dear friends,
This is a big question. Please bear with me.
I'm working on a complex editor / simulator program that allows to manipulate and extend structures of shapes in a two dimentional...
I'm not sure I understand. What kind of application system?
If you're talking about a remote desktop (support) application (like the title says) I might have a neat idea for you:
What about...
A good idea is to create a sepatate directory where you store all your projects. A classic name for that would be work. Not only do you always know where your own files are, it's also handy to keep...
Ok. Well the graphical part is almost completed, but never mind.
Don't you worry about that.
Another idea, although not te be underestimate either, is a logistics manager:
You have a list of...
How about developing a simple board game interface?
I was going to start a thread in a few days about a problem I'm having with a project of mine. I need to create a kind of rule database that is...
Hello everyone,
I've got another question concerning MVC with a drag and drop interface. Let me recapitulate what I have so far:
I've got an MVC triad managing a simple JFrame in which mouse...
I finally found why I had a stack overflow error.
Since I have two controllers (one for the application and one for the individual dots), and both of them call a mouseListener method from their...
The way I see it there are three parts to this:
1. Which one will get you hired the easiest? In some markets any university degree will get you a job if you graduated. You could have a degree in...
Well, first thing is to find out where the problem occurs. Try to add a simple System.out.println(...) statement at different spots to do basic debugging.
You have to know that I am not very...
I never graduated from a university, so take this advice for what it's worth.
What you should find out is what kind of projects students have turned in the previous years, so you can estimate what...
I'm guessing here, but I remember vaguely some weird date old computers used as a reference date for all dates. If you didn't intialize the date properly, you would get a very old date. That wasn't...
#52. 8086 assembler using interrupts
org 100h
; set screen to text mode
mov ax, 3
int 10h
; init segment register
mov ax, 0b800h
Umm... well I added it to a JPanel.
I've uploaded the version that causes the Stack Overflow Error here.
This is the DotView code where the error originates from:
package...
The mouseListener solution worked like a charm. Thank you so much!
Actually I had more trouble getting the JPanel to behave. I keep having trouble with layered panels.
Anyway, I uploaded my...