|
see - it works... shows code - gets comments - resolved!!
@ Visoth
welcome. Well asked, I appreciate that. Feel free to ask more!
regards
Torsten
I never finish anyth...
|
|
|
|
|
Well, thanks. Are you a programmer?
Visoth
|
|
|
|
|
No - I'm a developer.
To my point of view there is a certain difference between programming and developing.
Programming is just a code based implementation of what is wanted. To me, there has been something planed by another person and one is just responsible for the code.
Developing means to make the whole thing by myself. I'm writing the system architecture (for my parts, some are discuss in the team), the documentation and all other stuff that's needed throughout the development process.
regards
Torsten
I never finish anyth...
|
|
|
|
|
Hi,
From this site[^], where is the JRE in the Notes installation folder? I've installed Lotus Notes 8.5
|
|
|
|
|
It means the folder where the JRE is installed, below the folder where you installed Lotus Notes. A quick view with Windows Explorer will find it for you.
I must get a clever new signature for 2011.
|
|
|
|
|
Under my "C:\Program Files\IBM\Lotus\Notes", there are folders
1.Data
2.framework
3.icc
4.jvm
5.license
6.MUI
7.ndext
8.properties
9.xmlschemas
10.xsp
Tried windows search, but there's no folder name with "JRE" under my Notes installation folder.
|
|
|
|
|
I guess it may be in the jvm subdirectory, you will need to check the content to see if it exists there. Alternatively go back to the site where you downloaded this and ask there.
I must get a clever new signature for 2011.
|
|
|
|
|
I have a Java application which was running on the console, but now this application will be called by a Utility. Is there any way by which the my application returns some value which the utility can understand ?
For eg if its 1: then successful
2:Failed
3:File Not found.
|
|
|
|
|
There is a difference between whether it could and whether it does.
The normal exit value that would indicate success from an application would be zero.
And value except that depends on the application.
An application can fail totally and still return zero unless it is specifically programmed to do differently.
If and only if the application uses the System.exit() method then it can return other values.
Other than that command line tools often use stdio and sometimes stderr. The contents of that would need to be interpreted by any containing application.
|
|
|
|
|
Thanks a lot for your answer.
Can you give me some details on stdio and stderr,like how are they used
|
|
|
|
|
|
hi
where i can find one telnet client source code for interactive with any telnet server ?
thanks
|
|
|
|
|
navidnmc wrote: where i can find one telnet client source code for interactive with any telnet server ?
All over the internet; a quick Google will yield many samples.
I must get a clever new signature for 2011.
|
|
|
|
|
On Google. I did a search for "telnet client source code" and got over 8 million hits. At least one of them must be relevant.
|
|
|
|
|
is Google down again?
Try "Java Telnet" for your search and you will find something like this:
JAVA SSH[^]
regards
Torsten
I never finish anyth...
|
|
|
|
|
|
You can find many article like this[^] one you can also go there[^]
|
|
|
|
|
I am having some issues the the implementation of the JScrollPane in my gui. I was wondering if anybody had any ideas?
For my GUI i the following
JFrame
>JPanel (nav bar)
>JPanel (gridlayout dynamic based on house size)
>> JPanel(each grid/cell)
>>> Componts (label etc)
>> JPanel (Stat bar)
This works fine to select and work with my rooms(part of the project) in each grid. I have the listener attached to the gridlayout panel, so i know where my mouse has clicked and therefore which grid it belongs to. The listener is the mouselistener on the JPanel.
But when i place a JScrollPane in here;
JFrame
>JPanel (nav bar)
>JPanel (gridlayout dynamic based on house size)
>>jScrollPane
>>>JPanel(each grid/cell)
>>>>Components (label etc)
>>>JPanel (Stat bar)
To give me the scroll bars for each room, my gui no longer accepts the mouse event (it does but not on the gridlayout JPanel as it did before). Does anybody know how i can overide the JScrollPane and let my JPanel underneath receive the event?
I am struggle to find a way to do this that will adhere to the MVC structure. As the code to check and prepare everything is in the controller which just hands the basic info over to the view to repaint it all.
Or i am just completely going in the wrong direction
|
|
|
|
|
This might get a bit complicated..
can you set up a Listerner object, which the parent JPanel hands down to the JScrollPanel underneath? That would make it a bit less confusing.
I'm not sure if you can get the well formated event you expect when clicking in the JScrollPanel[^], as this one is not a static view, but has a JViewport, which is just one part of the visual components included in this component. A JScrollPanel is a combination of different parts. Maybe you just have to deal with the JViewport[^]
regards
Torsten
I never finish anyth...
|
|
|
|
|
Cheers, I manged to find a different way, I added a couple of subs to a custom class of the scrollpane and used that to interact with the listener. Unfortunately it all happens in the view instead the controller but it works.
Thank you your help.
|
|
|
|
|
Unfortunately it all happens in the view instead the controller
..this was why I suggested an object for the command.
Did you use the JViewport or is it enough to let the fun happen in the JScrollPane?
regards
Torsten
I never finish anyth...
|
|
|
|
|
any idea how to do it , as i have a main Jframe and another data frame which previews and print the data in JTable ,now my problem is when i execute my code to print then flush the jtable data, it works vice-versa, as it flushes all the data in jtable then shows the preview frame.
it is as:
{
functionshow_print_preview();
functionflush_table_and_refresh();
}
|
|
|
|
|
Java will execute the code in the exact same order as you write it. So if you have the calls to those two functions below one and other like:
<br />
{<br />
functionshow_print_preview();<br />
functionflush_table_and_refresh();<br />
}<br />
then they will be called in the following order:
- functionshow_print_preview
- functionflush_table_and_refresh
The only thing I can think of is that you start a seperate thread somewhere within either of these two functions causing them to be executed out of sync.
|
|
|
|
|
see that is the problem , i know it has to be this way but priview shows as a blank jtable as the number 2 executes while first is in middle of execution (taking the jtable data of mainframe), any solution??......
|
|
|
|
|
you're right - and not right.
The methods are called in this order, but the printer job takes some more time. In the meanwhile the table is deleted.
@ Alok
try to return a value from the print job, a signal to mark when the job is done. Set up a loop (or use another thread) which interrupts the code as long as the print job takes.
regards
Torsten
I never finish anyth...
|
|
|
|