|
I was successful implimenting drag and drop from a JTree to Native NT system, used David Woods code he posted here to give me a leg up, thanks Dave, helped alot. I still need to determine the path the object was dropped into the native system though, and have not found a way to pull it out. Anyone have some suggestions ?
|
|
|
|
|
Dear Bob,
i need the code for drag and drop in tree using swing.
i will appreciate if you will forward that code to me.
thanks for your earlier attention.
Avnish.
Avnish
|
|
|
|
|
Dear Bob,
i need the code for drag and drop in tree using swing.
i will appreciate if you will forward that code to me.
thanks for your earlier attention.
Avnish.
Avnish
|
|
|
|
|
Dear Bob,
kindly send me the code of drag and drop
on avnish158@usa.net.
thanks for your earlier attention.
Regards,
Avnish.
Avnish.
|
|
|
|
|
Hi Everybody,
I am new to this foroum..
well i need to implement image in my frame... can anybody help me out in this..
If someone can explain with the example it would be really nice..
naveen
|
|
|
|
|
The java Tutorial!
http://java.sun.com/docs/books/tutorial/uiswing/painting/usingImages.html
|
|
|
|
|
//in the constructor
Image img = getImage(getCodeBase(),"yourimg.jpg");
//override paint in Frame
public void paint(Graphics g)
{
if(img!=null)
g.drawImage(img,0,0,null);
}
Qapla
|
|
|
|
|
Also you can try to use a ImageIcon wich you set on the same color as your background.
|
|
|
|
|
Hi! Is there a possibity of growing or shrinking java-arrays at runtime similar to CObArray in MFC (with Add() or Remove()...) ?
After writing
int array[] = new int[5];
how can I change the size of this array?
Thank you.
Gregor Mitsch
E-Mail: abacus-@gmx.de
|
|
|
|
|
Why not use Vector?
http://java.sun.com/j2se/1.3/docs/api/java/util/Vector.html
|
|
|
|
|
Use the Vector class!
Qapla
|
|
|
|
|
To resize your array you need to create a new one and then copy with System.Arraycopy
It's the same a realloc in c, but you have to write down the code.
realloc(in[] a, int size)
{
int[] newArray = new in[size];
System.arraycopy(a,0,newArray,0,a.length());
a = newArray;
}
Nicolas
|
|
|
|
|
If you have an unknown number of items an array probably isn't your best choice of container. There's a whole subtree of container classes in the java libraries, which one will most suit depends on the way you are accessing the elements. You should consider Vector (if you really need to acces by index) or one of the List classes, e.g. ArrayList if your processing is usually sequential.
|
|
|
|
|
|
Java i capable of overload function names when there are diffrent in parameters. ex.
class DataRenderer {
void draw(String s) {
. . .
}
void draw(int i) {
. . .
}
void draw(float f) {
. . .
}
}
BUT what if you want the reverse;
class DataRenderer {
void String draw() {
. . .
}
void Integer draw() {
. . .
}
void Document draw() {
. . .
}
}
The beautiful language C++ has no problem whit this. Is it because all objects inherit from Object ??
/Glenn
|
|
|
|
|
> class DataRenderer {
> void String draw() {
> . . .
> }
> void Integer draw() {
> . . .
> }
> void Document draw() {
> . . .
> }
> }
What you posted is not the beautiful language C++! Your draw methods have two return types, void and some other class.
Secondly, return types are not considered in overload resolution. If the spurious 'void' is removed from your function signatures, they are still invalid. The standard does allow covariant return types in overridden functions, but that's a different thing altogether.
|
|
|
|
|
how to display statistic graph in JSP?
by APPLET or JAVABEAN?
is there any public code to perform this function?
thanks.
cattle
|
|
|
|
|
Hi,
May i know how do i call from Java Applet, the Index Server Searching option.
Its a web applet application runs on IIS Server. For Searching Purposes, i use Index Server.
How do i retrieve the ASP results from Index ServeR?
How does WFC Supports Indexing?
Mail me your valuable suggestions?
Thanks,
Sun
|
|
|
|
|
I want to write an applet that can do as embedded rich-text editor on Hotmail and Yahoo.
If you know about this, may you help me? Thank you very much
|
|
|
|
|
I want to make a minesweeper in java but i can't do the recursive algorythum(when we click in the board and the board "explode" and then only stay the houses with bombs and some others)
|
|
|
|
|
Would anyone help me write a java program for a calculator to perform following functions:addition, subtraction, multiplication, division, set ceiling and floor, power, and average. I will need the menu and the program. Appreciate your help.
|
|
|
|
|
Hi, I recently wrote a calculator program. Are you doing this for a class? What problems are you having, maybe I can help.
|
|
|
|
|
I have an applet which has more then one class file, There is no problem to control public function in the applet from javascript when the functions are in the main class, but when I try to call a function which is located in another file, it gives me an error.
Any idea ????
|
|
|
|
|
Can you give me full detail of problem.
upto my knowledge it is due to that you have to declare
the instance variables of the other files and then use that
instance variable to access the function u want by using the
scope operator or the dot operator.
if u can give me more detail of the problem i can help u.
Good luck
Rajiv
|
|
|
|
|
I have an applet which has more then one class file, There is no problem to control public function in the applet from javascript when the functions are in the main class, but when I try to call a function which is located in another file, it gives me an error.
Any idea ????
|
|
|
|