Igor Stojanovic

Ranch Hand
+ Follow
since Feb 18, 2005
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 Igor Stojanovic

Thx a lot !

I solved my problem .
16 years ago
Hi,

I writing my text editor in Java, something very similar to Notepad but with more funcionality...i would like to have floatable toolbars which behave same as in other aplications like in Word,so far i have created 3 toolbars and the problem is when user selects and drags out 1 of them for example 2. one in middle last 2 toolbars move to the left end, and now when user closes opened (2. toolbar) he gets back under menu bar but on last postion...I am not sure if I explained it right but I will try to "draw it" down:


---------------------MENU BAR------------------------
|1.FIRST_TOOLBAR_HERE|2.TOOLBAR_HERE|3.TOOLBAR_HERE|


now i take out (drag it) second toolbar

and it looks like this now

---------------------MENU BAR------------------------
|1.FIRST_TOOLBAR_HERE|3.TOOLBAR_HERE|


|2.TOOLBAR_HERE|
-this one somewhere on screen


-after I close my second tool bar it looks like this

---------------------MENU BAR------------------------
|1.FIRST_TOOLBAR_HERE|3.TOOLBAR_HERE||2.TOOLBAR_HERE|


Problem is that now 3. toolbar is infront of 2. which has no sence


How can I fix this problem and keep toolbars floatable at same time?


Thx in advance


Igor Stojanovic
16 years ago
Hi,

you can check these links:

1.Collected Java Practices

2. javagalaxy

3. Source bank

4. REALS How To

5. Acknowledge Snippets

6. Java Programming Notes

7. Java Cookbook

8.KickJava




kind regards
Igor
[ March 10, 2005: Message edited by: Igor Stojanovic ]
16 years ago
Hi,

download aplication fromlink and look how to use source code for aplication.



kind regards
Igor
[ March 07, 2005: Message edited by: Igor Stojanovic ]
16 years ago
Hi,

Check out Java Service Wrapper. It's an open source product, hosted by SourceForge, that wraps a Java program with a Windows service.



kind regards
Igor
16 years ago
Thank you Pat,

I implemented your code and it works!
16 years ago

Originally posted by Tom Schuman:
Nice found them
But what are com, launcher and sunw can't find them in the API.
Also is there some way to hide comments in Eclipse, those source codes are so full with comments it's hard to read the code itself.



Check Help provided with Eclise, you should be able to find that option very easy.


kind regards
Igor
16 years ago
Hi all,

I am writing simple Text editor just to get familiar with basic swing components and to learn whats going on "under hood" when I use Eclipse Visual Editor...

Here is my problem: "Components are enabled initially by default. A component may be enabled or disabled by calling its setEnabled method. " I have several JMenuItems (Cut,Copy,Delete,Paste) in my JMenu "Edit" and they are enabled by default, but I want them to be disabled if user didn't select some text and after he select some part of text I want to enable these components? How to accomplish this kind of components behavior?

P.S. In my constructor I disable Cut,Copy,Paste and Delete because user should not be able to use them if there is no selected text but later when he selects something these components should be enabled for him,which kind of event I have to send after user selects part of text?

kind regards
Igor
16 years ago
On my computer source is located here:

c:\Program Files\Java\jdk1.5.0\src.zip


kind regards
Igor
16 years ago
Calendar.MILLISECOND

Calendar.SECOND


kind regards
Igor
16 years ago
Hi Tom,

In your main method you make String object "hello" and you assign "s" reference to "hello" object in memory; and now when you send "s" reference to your testString() method, reference is sent by value,so method makes her own copy of "s" and puts that copy value in "ss"; at this point both "s" and "ss" point to same object in memory; after that testString() method reassign "ss" reference to new String object "helloWorld",but "s" didn't change initial value so it still points to object "hello". "s" and "ss" can both have their values pointing to same object in memory or each could point to different object,changing "ss"'s value doesn't effect value stored in "s"'s reference because testString() work's with copy of "s" from main().


kind regards
Igor
[ February 24, 2005: Message edited by: Igor Stojanovic ]
16 years ago
Thx Stephen for posting that link.


P.S. Do you have more links in your bookmarks like the first one?


kind regards
Igor
16 years ago
This was my output :

190
220
160
191
150
170
160
231
170
170

Intel Pentium 4, 1600
512 Mb SDRAM
Radeon 9600 Pro, 256 Mb RAM
Resoulution, 1024*768


kind regards
Igor
16 years ago
Hi,
we need more info in order to help you ,what operating system are you using, which IDE and what is the current IDE version ?



kind regards
Igor
16 years ago