Jonathan Johansen

Greenhorn
+ Follow
since Aug 04, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jonathan Johansen

Hello everyone! I will try to explain myself and I apologize ahead of time in case I don't accomplish it(English is not my first language).
Well, I am trying to create a component which can be rotated, re-sized and dragged (almost got it working). The problem is the following, I re-size it and it re-sizes as much as I drag it, however, it need to re-size to the size of the diagonal so when it rotates is still visible. If you were so kind to compile the code I have attached and see it working so you get a better idea of I am saying. Thanks everyone for your time and help!


This is my main class



This is the class definition of the component that is rotated



This is the MouseListener

12 years ago
Hello everyone, I apologize in advance if I am asking this question here. I would like to know if anyone could tell me if it is possible to change some of the behavior of my cell phone using Java, if so how.
Thanks to everyone!!!
13 years ago
I think I did not explain myself very well. Say I have a package named cassi.DynamicTable under H:
so it would look something like this
H:---
cassi---
DynamicTable

Now suppose that I have another package named DynamicContainer under H: also
so it would look like this
H:---
cassi---
DynamicContainer


Both are under H:\\cassi . How can I import DynamicContainer into DynamicTable.

13 years ago
I know how to create a package, however I dont know how to make imports between packages. For instance if I have two packages named "first" and "second" how do I make imports from the first to the second or viceversa. Thanks in advance to everyone for your helpl!!!
13 years ago
I think you need to be more specific, you say you need a GUI. What exactly do you need? You need buttons, fields or what.
Also I think that in order to get help, you need to provide some sort of an attempt.
13 years ago
Hello everyone, I apologize if I am not making things the right way, although I registered a long time ago this is my first post at this forum. I have a little problem here, it work almost perfect except that when I drag from bottom to top it does not do it. I put print lines and it says that it 's doing everything correctly. If you may wonder why I am doing it this way when I could be using new StringSelection(), the the reason is because I am planing to extend Vector class to create a class Row and put info in it, so when I drag I drag the whole row, because my Row class will contain Components and Objects.
Thanks in advance for your help!!!

13 years ago
I am new to this forum, I apologize in advance for any error I may make.

Well, I am trying to save the zone Hashtable<String, JPanel> however when I try to save it, it saves the the whole calling object and the whole UIMap class.
I only want to save the Hashtable but intead it saves everything. Could anyone tell me why is this happening.

13 years ago
The idea of this code is the following: when user clicks on Move Tables button ActionListener should be removed and MouseMotionListener
should be added , when the user clicks back on the Move Tables button it should add ActionListener back and remove MouseMotionListener.
I tried removeMouseMotionListener, but it does not work. I checked that the Move Tables button was working properly but still does not work.
Please tell me what Iam missing or what needs tro be done to remove MouseMotionListener

public void addMouseDragHandlerListener(boolean on)
{
if(on)
{
for(int dm = 0;dm<buttonList.size();dm++)
{
buttonList.get(dm).setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));
buttonList.get(dm).addMouseMotionListener(new DragHandler());
}
}
else if(on==false)
{
for(int dm = 0;dm<buttonList.size();dm++)
{
buttonList.get(dm).setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
buttonList.get(dm).removeMouseMotionListener(new DragHandler());
}

}
}
14 years ago