AT Commands , Hyper Terminal and java
Hi,
I have following problem, i have PCMCIA Type -11 Wireless modem.its installed on my system COM4 port.
Now first problem is that when i try to connect with hyper terminal to COM4 there is no response from it .It become Idle.but when i connect with COM3 which is my Dialup modem port it works fine with all AT commands.
Now 2nd things is that same with below code i tried to send sms using AT command on COM4 its has same behaviour as it was in Hyper terminal mean no response. no Data Available event occour
Please help me in this regard and suggest me a solution.
package serialio;
import javax.comm.*;
import java.io.*;
import java.util.*;
public class SimpleWrite
implements Runnable, SerialPortEventListener
public void run()
static Enumeration portList;
static CommPortIdentifier portId;
static String dest = "0517111930";
static String messageString = "Hello";
InputStream inputStream;
static SerialPort serialPort;
static OutputStream outputStream;
public void serialEvent(SerialPortEvent event)
switch (event.getEventType())
case SerialPortEvent.BI:
case SerialPortEvent.OE:
case SerialPortEvent.FE:
case SerialPortEvent.PE:
case SerialPortEvent.CD:
case SerialPortEvent.CTS:
case SerialPortEvent.DSR:
case SerialPortEvent.RI:
case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
break;
case SerialPortEvent.DATA_AVAILABLE:
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
String line = "";
try
while ( (line = reader.readLine()) != null)
System.out.println(line);
catch (IOException e)
System.err.println("Error while reading Port " + e);
break;
} //switch
public SimpleWrite(SerialPort serial)
try
inputStream = serial.getInputStream();
try
serial.addEventListener(this);
catch (TooManyListenersException e)
System.out.println("Exception in Adding Listener" + e);
serial.notifyOnDataAvailable(true);
catch (Exception ex)
System.out.println("Exception in getting InputStream" + ex);
public static void main(String[] args)
// String line1="AT+CMGF=1\r\n";
// String line2="AT+CMGS=\""+ dest+"\"\r\n";
// String line3=messageString+"\r\n";
// String line4="\u001A";
String line1 = "AT+CMGF=1\r\n";
String line2 = "AT+CMGS=" + dest + "\r\n";
String line3 = messageString + "^Z\r\n";
// String line4 = "\u001A";
portList = CommPortIdentifier.getPortIdentifiers();
while (portList.hasMoreElements())
portId = (CommPortIdentifier) portList.nextElement();
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL)
System.out.println("SMS Sending........");
if ( portId.getName().equals("COM4"))
System.out.println("SMS Sending....Port Found");
try
serialPort = (SerialPort) portId.open("SimpleWriteApp", 2000);
SimpleWrite wr = new SimpleWrite(serialPort);
catch (PortInUseException e)
System.out.println("Port In Use " + e);
try
outputStream = serialPort.getOutputStream();
catch (IOException e)
System.out.println("Error writing to output stream " + e);
try
serialPort.setSerialPortParams(
2400,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
catch (UnsupportedCommOperationException e)
try
outputStream.write(line1.getBytes());
outputStream.write(line2.getBytes());
outputStream.write(line3.getBytes());
outputStream.flush();
catch (IOException e)
System.out.println("Error writing message " + e);
/** show text in the text window
* @param Text text string to show on the display
public static void showText(String Text)
System.out.println(Text);
}
* SerialWrite.java
* Created on September 10, 2008, 2:51 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package com.sms;
import javax.comm.*;
import java.io.*;
import java.util.*;
public class SerialWrite implements Runnable, SerialPortEventListener
static String output="";
public void run()
static Enumeration portList;
static CommPortIdentifier portId;
static String dest = "+91999999999";
static String messageString = "Hello Testing11";
InputStream inputStream;
static SerialPort serialPort;
static OutputStream outputStream;
public void serialEvent(SerialPortEvent event)
switch (event.getEventType())
case SerialPortEvent.BI:
case SerialPortEvent.OE:
case SerialPortEvent.FE:
case SerialPortEvent.PE:
case SerialPortEvent.CD:
case SerialPortEvent.CTS:
case SerialPortEvent.DSR:
case SerialPortEvent.RI:
case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
System.out.println("Error");
break;
case SerialPortEvent.DATA_AVAILABLE:
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
String line = "";
try
while ( (line = reader.readLine()) != null)
if(line.equalsIgnoreCase("OK") || (line.indexOf("+CMGS") != -1))
output=line;
Thread.sleep(10);
catch (Exception e)
System.err.println("Error while reading Port " + e);
break;
} //switch
public SerialWrite(SerialPort serial)
try
inputStream = serial.getInputStream();
try
serial.addEventListener(this);
catch (TooManyListenersException e)
System.out.println("Exception in Adding Listener" + e);
serial.notifyOnDataAvailable(true);
catch (Exception ex)
System.out.println("Exception in getting InputStream" + ex);
public static void main(String[] args) throws Exception
int i=0;
String line0 = "ATZ\r\n";
String line1 = "AT+CMGF=1\r\n";
String line2 = "AT+CSCA=\"+919888888\"\r\n";
//String line3 = "AT+CMGS="+"\""+ dest + "\""+"\r\n";
String line3 = "AT+CMGS="+"\""+ args[0] + "\""+"\r\n";
//String line4 = messageString;
String line4 = args[1];
portList = CommPortIdentifier.getPortIdentifiers();
while (portList.hasMoreElements())
portId = (CommPortIdentifier) portList.nextElement();
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL)
System.out.println("SMS Sending........");
if ( portId.getName().equals("/dev/ttyACM0"))
System.out.println("SMS Sending....Port Found");
try
serialPort = (SerialPort) portId.open("SerialTestApp", 2000);
SerialWrite wr = new SerialWrite(serialPort);
catch (PortInUseException e)
System.out.println("Port In Use " + e);
try
outputStream = serialPort.getOutputStream();
catch (IOException e)
System.out.println("Error writing to output stream " + e);
try
serialPort.setSerialPortParams(
115200,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
catch (UnsupportedCommOperationException e)
try
outputStream.write(line0.getBytes());
Thread.sleep(10);
while(!output.equalsIgnoreCase("ok"))
Thread.sleep(10);
output="";
outputStream.write(line1.getBytes());
while(!output.equalsIgnoreCase("ok"))
Thread.sleep(10);
output="";
outputStream.write(line2.getBytes());
while(!output.equalsIgnoreCase("ok"))
Thread.sleep(10);
output="";
for(i=0;i<3;i++)
outputStream.write(line3.getBytes());
Thread.sleep(10);
outputStream.write(line4.getBytes());
Thread.sleep(10);
outputStream.write(26);
outputStream.write("\r\n".getBytes());
outputStream.flush();
while(!output.equalsIgnoreCase("ok"))
Thread.sleep(10);
output="";
System.out.println("Message Sent !!!!!!!!!1");
catch (IOException e)
System.out.println("Error writing message " + e);
/** show text in the text window
* @param Text text string to show on the display
public static void showText(String Text)
System.out.println("TEXT "+Text);
}
Similar Messages
-
Permission problems with command line CVS and Java CVS App
Greetings,
I'm part of a moderately sized website development team which recently upgraded to MacBook Pros (dual core) running OS 10.4.9. One of the primary tools we use in our day to day work is the open source concurrent versioning system (CVS). We've noticed a distressing issue running CVS on our macbook pros: there seems to be a problem with the way these new machines handle permissions on the directories/files that CVS uses to manage files.
The error occurs when the CVS application, in this case both command line CVS and GUI CVS application named SmartCVS, tries to rename a temporary file named Entries~ to its new name Entries (no ~). It looks like this:
java.io.IOException: Could not rename file
/Users/[USER]/Sites/[MODULE]/lib/CVS/Entries~ to
/Users/[USER]/Sites/[MODULE]/lib/CVS/Entries
at smartcvs.JP.a(SourceFile:125)
at smartcvs.JP.a(SourceFile:113)
We've noticed that if we open up a get info window on the directory we're downloading, and choose "Apply to enclosed items" right when we start the download process, the issue will be resolved, presumably because the permissions are being set on the subdirectories as the download is taking place.
We've checked the permissions on the overall ~/Sites/ directory numerous times, and they always seem to be set correctly as drwxr-xr-x. It's within this folder that CVS creates a directory with the CVS module name and downloads all the contained files, so we don't see why it would be having issues completing this successfully. We also checked to ensure the GUI CVS application is running under the current user on the machine: it does.
Has anyone run into issues like this in the past? Is there more information I could provide to further clarify the problem we're having?
Thanks for any input you have!Thanks for asking Jeff, yes one place we are seeing this error is Java application SmartCVS, though the results posted here are from a normal command line CVS checkout.
===
Checkout command:
cvs co [MODULE]
===
Error:
cvs [checkout aborted]: cannot rename file CVS/Entries.Backup to CVS/Entries: No such file or directory
===
ID:
uid=502([USER]) gid=502([USER]) groups=502([USER]), 81(appserveradm), 79(appserverusr), 80(admin)
===
LS -ALN
Computer:~/Sites [USER]$ ls -aln
drwxr-xr-x 28 502 502 952 Jun 4 13:11 Sites
Computer:~/Sites/[MODULE] [USER]$ ls -aln
drwxr-xr-x 38 502 502 1292 Jun 4 13:33 www_root
Computer:~/Sites/[MODULE]/www_root [USER]$ ls -aln
drwxr-xr-x 32 502 502 1088 Jun 4 13:33 [SUBDIR1]
Computer:~/Sites/[MODULE]/www_root/[SUBDIR1] [USER]$ ls -aln
drwxr-xr-x 5 502 502 170 Jun 4 13:33 [SUBDIR2]
Computer:~/Sites/[MODULE]/www_root/[SUBDIR1]/[SUBDIR2] [USER]$ ls -aln
drwxr-xr-x 4 502 502 136 Jun 4 13:33 [SUBDIR3]
Computer:~/Sites/[MODULE]/www_root/[SUBDIR1]/[SUBDIR2]/[SUBDIR3] [USER]$ ls -aln
drwxr-xr-x 6 502 502 204 Jun 4 13:33 CVS
Computer:~/Sites/[MODULE]/www_root/[SUBDIR1]/[SUBDIR2]/[SUBDIR3]/CVS [USER]$ ls -aln
total 32
drwxr-xr-x 6 502 502 204 Jun 4 13:33 .
drwxr-xr-x 4 502 502 136 Jun 4 13:33 ..
-rw-r--r-- 1 502 502 45 Jun 4 13:33 Entries
-rw-r--r-- 1 502 502 45 Jun 4 13:33 Entries.Log
-rw-r--r-- 1 502 502 48 Jun 4 13:33 Repository
-rw-r--r-- 1 502 502 63 Jun 4 13:33 Root
MacBook Pro / MacPro Mac OS X (10.4.9) -
The telescope instruction says open a Terminal and put in ls/dev/* and other such things and all I get back is that none of them are recognised.
JeffersEWhy don't you call the telescope company for support and let them explain it to you. Usually there is software involved with those types of telescopes and if that software doesn't support Mac, it won't matter how or what USB port you plug it into because no drivers or anything will load for it.
-
Viewing values in hyper terminal
Hello all,
I am quite new to WSN programming. I have Crossbow and required hardware( micaz motes, mib510 programming board and a serial port cable). Can I view a Hello Message send by mote in the hyper terminal. Please guide me from the very beginning. Since I am purely from a computer science background . Thanks in advance
Rekhasas-Qatar wrote:
Sorry Didn't figure out how that could be done...
To start a new thread just click on the New Message button.
anyhow...I am attaching the manual for my GPR, as well the error code.
I want to input XON as a command to make sure my GPR will be booting, I did that through hyper terminal and it worked fine, but through lab veiw not sure why it is not working.
That error code indicates you are trying to use events, but have not actually registered for an event. Why are you using the Basic 2 Port example? You should be using the regular Basic Serial Write and Read example. The manual indicates that you need to append a carriage return to the commands. In the Basic Serial Write and Read example you can do so by replacing the "\n" with "\r". Thus, the control should look like this:
Attachments:
new message.PNG 15 KB
Basic Serial Write and Read_FP.png 4 KB -
It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2
Can anyone confirm or deny my observation ?It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2
Can anyone confirm or deny my observation ? -
Bash script "open terminal and launch command
I need a script to do this:
launch a terminal, from this change working directory and then launch a command; the terminal have to remain opened after the command execution.
Something like:
$terminal cd $dir && $command
If I open a terminal and I do:
cd $dir && $command
it works
If I do a .sh script with this:
xterm -hold -e cd $dir && $command
or
terminal -H -x cd $dir && $command
when I launch it (the script) it doesn't work.
Last edited by buntolo (2012-01-05 23:44:52)karol wrote:
xterm -hold -e "cd ~/test/ && ls"
works too.
I don't know what $command do you mean, but this will list th ~/test directory.
It works also for me.
With urxvt and xfce4-terminal don't work.
But xterm is too minimalist, is there an advanced terminal based on it?
And I don't unerstand why it doesn't work for xfce4-terminal but for it does for xterm...
man xfce4-terminal:
-H, --hold
Causes the terminal to be kept around after the child command has terminated
-e, --command=command
Execute command inside the terminal
man xterm:
-hold
Turn on the hold resource, i.e., xterm will not immediately destroy its window when the shell command completes. It will wait until you use the window manager to destroy/kill the window, or if you use the menu entries that send a signal, e.g., HUP or KILL.
-e program [ arguments ... ]
This option specifies the program (and its command line arguments) to be run in the xterm window. It also sets the window title and icon name to be the basename of the program being executed if neither -T nor -n are given on the command line. This must be the last option on the command line.
What the ...?
Is only my opinion that there aren't differences between:
terminal -H -e "cd $dir && $command"
and
xterm -hold -e "cd $dir && $command"
Last edited by buntolo (2012-01-06 13:11:58) -
trying to turn off spotlight because it's a resource hog. open terminal and enter command but it won't respond or even ask for password.
Step #1:
In System Preferences click on Spotlight.
Step #2:
Click on the Privacy tab here.
Step #3:
Click on the + button here and when the window opens click on "Macintosh HD" (or whatever you've named your HD) and then click the Choose button. -
[solved] script/keybinding to launch terminal and run command
the answer is probably simple. but here's the idea.
i use cmus as my music player. at the moment, i have to open a terminal and then type 'cmus'. i'd like to set up a keybinding to run cmus. (incidentally, i'm trying to do this in i3.)
the code
exec cmus
doesn't work, presumably because 'cmus' has to be loaded from within the terminal. (is that right?) what's the syntax for passing on the command 'cmus' to the terminal? what's the best way to do this?
Last edited by anti-destin (2012-03-15 23:52:40)bindsym mod+c exec urxvtc -name cmus -e cmus
urxvtc => Your terminal here if you use something else. Most support -name and -e. Please read their man pages.
-name => Useful for xprop. It assigns the WM_CLASS which can be used for tagging clients.
man urxvt
-e command [arguments]
Run the command with its command-line arguments in the urxvt
window; also sets the window title and icon name to be the basename
of the program being executed if neither -title (-T) nor -n are
given on the command line. If this option is used, it must be the
last on the command-line. If there is no -e option then the default
is to run the program specified by the SHELL environment variable
or, failing that, sh(1).
Last edited by Earnestly (2012-03-15 19:19:25) -
Every Time I do the say command in terminal it shows and error message
Every time I use the say command in terminal it brings an error message but I does say the message why does it put the error message please help
This behavior appears to be arising with some 10.8.4 systems, based on some web searches.
Based on what I've found, there's no specific known trigger, nor any certain cure for this.
See if the discussion in this thread helps any with resolving the MTBEAudioUnitSoundOutput:: PropagateProperty Error -10851 error.
From that discussion thread, please remove any anti-malware software that might be installed and test, and create a second and separate login user and log into that user and test the say command.
Also test with the stock voices and not something that's been downloaded, and also (again, as a test, particularly if you're not using an English locale) see if switching your shell locale to the C locale (export LC_ALL=C) alters the behavior.
If the system is still under warranty or if you have AppleCare with this system, please call Apple support directly and ask. -
Using Automater to run Terminal and enter a command
I am currently interested in using a script or the automator to open Terminal and enter a specific command line I use to authenticate on my university network. Frankly I'm getting tired of typing that command line in so often.
However, I am relatively new to apple, and I'm not very familiar with scripting. If someone could give some suggestions that would be great.Open the Script Editor in the /Applications/AppleScript/ folder and type in the following:
do shell script "your command"
Save this script as an application and place it on the desktop for easy access. If the command requires the use of sudo, the needed syntax is:
do shell script "your command" password "yourpass" with administrator privileges
The actual phrase 'sudo ' isn't necessary in do shell script unless you will be passing sudo a flag. If the command needs interaction, use the following:
tell application "Terminal"
do script "your command"
end tell
This implementation requires the use of sudo for root authentication.
(20272) -
Open Terminal and Run Commands
Hi I have to ping several IP adresses on a regular basis. Therefore I would like to create an Applescript application that will run terminal and ping the specified IPs so that I can see the results. Any ideas on how to best complete this?
This script will prompt you to enter the number of times you want to ping each server. You'll need to specify the servers to ping in the "set serverAddresses..." line. It writes the results of each ping to a text file on your desktop and opens the file when finished. The next time you run the script if the text file exists it deletes it first.
set theDesktop to (path to desktop)
set serverAddresses to {"www.microsoft.com", "www.apple.com", "www.cnet.com"}
set pingTimes to text returned of (display dialog "Ping each server how many times?" default answer "1" giving up after 10)
tell application "Finder"
if exists file (theDesktop & "ping replies.txt" as string) then
delete file (theDesktop & "ping replies.txt" as string)
end if
set fileID to (open for access file (theDesktop & "ping replies.txt" as string) with write permission)
repeat with aServer in serverAddresses
try
set pingReply to (do shell script "ping -c " & pingTimes & " " & aServer)
on error
set pingReply to "No reply from server " & aServer
end try
write (pingReply & return & return & "########################" & return & return) to fileID
end repeat
close access fileID
open file (theDesktop & "ping replies.txt" as string)
end tell
Robert -
RECEIVED ABNORMAL SHUTDOWN COMMAND - APPLICATION TERMINATING
HI All,
We have an Planning application and when the user is trying to perform some activity and ti involves in running some calculation Scripts.
At point the application is going down and this is causing real mess.
There is no .xcp file created in the app folder. We are unable to find the root cause of the issue.
the following are the fixes we tried but gave us no result.
We tried to increase the Java Heep size
<variable id="ESS_CSS_JVM_OPTION8" value="-Xms512m"/>
<variable id="ESS_CSS_JVM_OPTION9" value="-Xmx1024m"/>
But the issue still exists.
[Mon Nov 4 11:24:32 2013]Local/SMARTPln///1127704896/Info(1042059)
Connected from [140.85.4.227]
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1127704896/Info(1020089)
Ignoring span Hybrid Analysis option. Spanning into Hybrid Analysis Relational Source has been disabled. See the essbase.cfg file
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1127704896/Info(1020055)
Spreadsheet Extractor Elapsed Time : [0.01] seconds
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1127704896/Info(1020082)
Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [204] non-Dyn.Calc.Cache : [0]
[Mon Nov 4 11:24:32 2013]Local/SMARTPln///1222445376/Info(1013210)
User [hypadmin@Native Directory] set active on database [Wrkforce]
[Mon Nov 4 11:24:32 2013]Local/SMARTPln///1130862912/Info(1042059)
Connected from [140.85.4.227]
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1130862912/Info(1013091)
Received Command [MdxReport] from user [hypadmin@Native Directory]
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1130862912/Info(1260039)
MaxL DML Execution Elapsed Time : [0] seconds
[Mon Nov 4 11:24:32 2013]Local/SMARTPln///1132968256/Info(1042059)
Connected from [140.85.4.227]
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1132968256/Info(1013091)
Received Command [MdxReport] from user [hypadmin@Native Directory]
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1132968256/Info(1260039)
MaxL DML Execution Elapsed Time : [0] seconds
[Mon Nov 4 11:24:32 2013]Local/SMARTPln///1129810240/Info(1042059)
Connected from [140.85.4.227]
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1129810240/Info(1020055)
Spreadsheet Extractor Elapsed Time : [0] seconds
[Mon Nov 4 11:24:32 2013]Local/SMARTPln/Wrkforce/hypadmin@Native Directory/1129810240/Info(1020082)
Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [87] non-Dyn.Calc.Cache : [0]
[Mon Nov 4 11:24:35 2013]Local/SMARTPln///1134020928/Info(1042059)
Connected from [140.85.4.227]
[Mon Nov 4 11:24:35 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1134020928/Info(1013091)
Received Command [SetAlias] from user [gbeaton@CAL1]
[Mon Nov 4 11:24:35 2013]Local/SMARTPln///1135073600/Info(1042059)
Connected from [140.85.4.227]
[Mon Nov 4 11:24:35 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1135073600/Info(1020089)
Ignoring span Hybrid Analysis option. Spanning into Hybrid Analysis Relational Source has been disabled. See the essbase.cfg file
[Mon Nov 4 11:24:35 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1135073600/Info(1020055)
Spreadsheet Extractor Elapsed Time : [0] seconds
[Mon Nov 4 11:24:35 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1135073600/Info(1020082)
Spreadsheet Extractor Big Block Allocs -- Dyn.Calc.Cache : [7] non-Dyn.Calc.Cache : [0]
[Mon Nov 4 11:24:38 2013]Local/SMARTPln///1128757568/Info(1042059)
Connected from [140.85.4.227]
[Mon Nov 4 11:24:38 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1128757568/Info(1013091)
Received Command [SetAlias] from user [gbeaton@CAL1]
[Mon Nov 4 11:24:38 2013]Local/SMARTPln///1131915584/Info(1042059)
Connected from [140.85.4.227]
[Mon Nov 4 11:24:38 2013]Local/SMARTPln/SMARTPln/gbeaton@CAL1/1131915584/Info(1020089)
Ignoring span Hybrid Analysis option. Spanning into Hybrid Analysis Relational Source has been disabled. See the essbase.cfg file
[Mon Nov 4 11:24:38 2013]Local/SMARTPln///1131915584/Info(1002089)
RECEIVED ABNORMAL SHUTDOWN COMMAND - APPLICATION TERMINATING
[Mon Nov 4 11:24:52 2013]Local/SMARTPln///1218234688/Error(1013204)
Client Commands are Currently Not Being Accepted
Can you please help me out form this .
Regards,
Kiran.Hi Mady,
Thanks for the reply.
We have increased the Heap size and restarted the services. But this issue still exists. And also restarted the entire system but the result is the same.
We are unable to find the root cause which is causing this issue.
Can any one suggest me....
Thanks in Advance.
Regards,
Kiran. -
Hi there,
I need help with the above mentioned problem. At first, here is my configuration:
iMac G5 17", Mac OS X 10.3.9, QuickTime 7.0.1 PRO, Safari 1.3 (v312), Java - here is the 'answer of the Terminal app - java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.4)
Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode).
My problem is, that on some sites (e.g. http://home.eduhi.at/member/gru/) I see those coffee cups with the red exclamation marks instead of some java media content.
On the site http://www.bodo.com/javame.htm I could verify that Safari is able to handle JavaScript, but in the line for Java Applets I again see this small coffee cup with red exclamation mark.
In the Safari preferences i have all Java check-boxes marked.
Please, can anyone help me, because I hate it to be forced to use this @&%§# IE from M$ all the time I want to go to sites with Java Applets.
AndreasBWell... good; when we help each other here, we can't
assume that any step has been taken, unless it's been
specifically identified. I'm sure that makes it all
the more frustrating, since you are a very experienced
user.
Now, then:
-- since you have reinstalled the Java Update; and
-- if you open your Help >> Installed Plug-ins, and
scroll down the list and find these three items:
Java Plug-in for Cocoa -- Java 1.4.2 "JavaPluginCocoa.bundle"
Java Plug-in (CFM) -- Java 1.3.1 "Java Applet Plugin Enabler"
Java Plug-in "Java Applet.plugin"
-- and if Enable Java and Enable JavaScript are checked in:
Safari >> Preferences >> Security, as you say they are; and
-- if Enable Plug-ins is checked in the same section,
as you say it is; and
-- you have repaired permissions, as you say you have; and
-- you have emptied your Cache; and
-- your Icons folder ({YOU}/Library/Safari/Icons) has been
trashed if it is over 750 KB; and
-- you have Quit, then relaunched Safari after all this,
as you say you have; and
-- your {YOU}/Library/Caches and {YOU}/Library/Caches/Safari
folders have read and write permissions
...then, I'm currently at a loss as to what else to suggest. -
I spent all night trying to fix this. It seems to me that someone has been trying to hack into my system with all of the random codes/lines in my terminal and i have all of his foreign IP addresses. And now i get this strange message that popped up in my terminal. Idk what it entirely means? I would very appreciate if someone could just walk me through this. Thank you very much.
First time poster. I have Macbook Pro. OSX. Just downloaded the new mavericks. I'm i have my firewall on. I stay secure. I run Netbarrier, Virusbarrier, IdentityScrubber.
I know something is a little odd or just doesn't make since about my activity monitor. Then my WiFi was hacked last night and this person was writing tons lines of commands/codes that i found in my terminal and my activity monitor doesn't look normal, and I've only been a mac owner for about a year now and i'm learning more and more but while trying to figure out what was going on this message popped up which concerned me the most. Any help would be most appreciated, thanks guys. I have my terminal full of his foreign ip addresses i noticed, and a lot of other commands and lines he wrote out that i definitely did not type myself. Can anyone give me a hand on this? Thanks
--- 192.168.1.103 ping statistics ---
10 packets transmitted, 0 packets received, 100.0% packet loss
Extol:~ FBI$ who
FBI console Nov 7 02:14
FBI ttys000 Nov 7 04:33
Extol:~ FBI$ whois
usage: whois [-aAbdgiIlmQrR6] [-c country-code | -h hostname] [-p port] name ...
Extol:~ FBI$ whois 192.168.1.103
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
# Query terms are ambiguous. The query is assumed to be:
# "n 192.168.1.103"
# Use "?" to get help.
# The following results may also be obtained via:
# http://whois.arin.net/rest/nets;q=192.168.1.103?showDetails=true&showARIN=false& ext=netref2
NetRange: 192.168.0.0 - 192.168.255.255
CIDR: 192.168.0.0/16
OriginAS:
NetName: PRIVATE-ADDRESS-CBLK-RFC1918-IANA-RESERVED
NetHandle: NET-192-168-0-0-1
Parent: NET-192-0-0-0-0
NetType: IANA Special Use
Comment: These addresses are in use by many millions of independently operated networks, which might be as small as a single computer connected to a home gateway, and are automatically configured in hundreds of millions of devices. They are only intended for use within a private context and traffic that needs to cross the Internet will need to use a different, unique address.
Comment:
Comment: These addresses can be used by anyone without any need to coordinate with IANA or an Internet registry. The traffic from these addresses does not come from ICANN or IANA. We are not the source of activity you may see on logs or in e-mail records. Please refer to http://www.iana.org/abuse/answers
Comment:
Comment: These addresses were assigned by the IETF, the organization that develops Internet protocols, in the Best Current Practice document, RFC 1918 which can be found at:
Comment: http://datatracker.ietf.org/doc/rfc1918
RegDate: 1994-03-15
Updated: 2013-08-30
Ref: http://whois.arin.net/rest/net/NET-192-168-0-0-1
OrgName: Internet Assigned Numbers Authority
RegDate:
Updated: 2012-08-31
Ref: http://whois.arin.net/rest/org/IANA
OrgTechHandle: IANA-IP-ARIN
OrgTechName: Internet Corporation for Assigned Names and Number
OrgTechPhone:
OrgTechEmail:
OrgTechRef: http://whois.arin.net/rest/poc/IANA-IP-ARIN
OrgAbuseHandle: IANA-IP-ARIN
OrgAbuseName: Internet Corporation for Assigned Names and Number
OrgAbusePhone
OrgAbuseEmail:
OrgAbuseRef: http://whois.arin.net/rest/poc/IANA-IP-ARIN
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
Extol:~ FBI$
Extol:~ FBI$ hosts
-bash: hosts: command not found
Extol:~ FBI$ who
FBI console Nov 7 02:14
FBI ttys000 Nov 7 04:33
Extol:~ FBI$ whois
usage: whois [-aAbdgiIlmQrR6] [-c country-code | -h hostname] [-p port] name ...
Extol:~ FBI$ whois 192.168.0.0 - 192.168.255.255
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
# Query terms are ambiguous. The query is assumed to be:
# "n 192.168.0.0"
# Use "?" to get help.
# The following results may also be obtained via:
# http://whois.arin.net/rest/nets;q=192.168.0.0?showDetails=true&showARIN=false&ex t=netref2
NetRange: 192.168.0.0 - 192.168.255.255
CIDR: 192.168.0.0/16
OriginAS:
NetName: PRIVATE-ADDRESS-CBLK-RFC1918-IANA-RESERVED
NetHandle: NET-192-168-0-0-1
Parent: NET-192-0-0-0-0
NetType: IANA Special Use
Comment: These addresses are in use by many millions of independently operated networks, which might be as small as a single computer connected to a home gateway, and are automatically configured in hundreds of millions of devices. They are only intended for use within a private context and traffic that needs to cross the Internet will need to use a different, unique address.
Comment:
Comment: These addresses can be used by anyone without any need to coordinate with IANA or an Internet registry. The traffic from these addresses does not come from ICANN or IANA. We are not the source of activity you may see on logs or in e-mail records. Please refer to http://www.iana.org/abuse/answers
Comment:
Comment: These addresses were assigned by the IETF, the organization that develops Internet protocols, in the Best Current Practice document, RFC 1918 which can be found at:
Comment: http://datatracker.ietf.org/doc/rfc1918
RegDate: 1994-03-15
Updated: 2013-08-30
Ref: http://whois.arin.net/rest/net/NET-192-168-0-0-1
OrgName: Internet Assigned Numbers Authority
OrgId: IANA
Updated: 2012-08-31
Ref: http://whois.arin.net/rest/org/IANA
OrgTechHandle: IANA-IP-ARIN
OrgTechName: Internet Corporation for Assigned Names and Number
OrgTechPhone:
OrgTechEmail
OrgTechRef: http://whois.arin.net/rest/poc/IANA-IP-ARIN
OrgAbuseHandle: IANA-IP-ARIN
OrgAbuseName: Internet Corporation for Assigned Names and Number
OrgAbusePhone:
OrgAbuseEmail:
OrgAbuseRef: http://whois.arin.net/rest/poc/IANA-IP-ARIN
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
No match for "-".
>>> Last update of whois database: Thu, 07 Nov 2013 13:19:14 UTC <<<
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar. Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.
TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability. VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
# Query terms are ambiguous. The query is assumed to be:
# "n 192.168.255.255"
# Use "?" to get help.
# The following results may also be obtained via:
# http://whois.arin.net/rest/nets;q=192.168.255.255?showDetails=true&showARIN=fals e&ext=netref2
NetRange: 192.168.0.0 - 192.168.255.255
CIDR: 192.168.0.0/16
OriginAS:
NetName: PRIVATE-ADDRESS-CBLK-RFC1918-IANA-RESERVED
NetHandle: NET-192-168-0-0-1
Parent: NET-192-0-0-0-0
NetType: IANA Special Use
Comment: These addresses are in use by many millions of independently operated networks, which might be as small as a single computer connected to a home gateway, and are automatically configured in hundreds of millions of devices. They are only intended for use within a private context and traffic that needs to cross the Internet will need to use a different, unique address.
Comment:
Comment: These addresses can be used by anyone without any need to coordinate with IANA or an Internet registry. The traffic from these addresses does not come from ICANN or IANA. We are not the source of activity you may see on logs or in e-mail records. Please refer to http://www.iana.org/abuse/answers
Comment:
Comment: These addresses were assigned by the IETF, the organization that develops Internet protocols, in the Best Current Practice document, RFC 1918 which can be found at:
Comment: http://datatracker.ietf.org/doc/rfc1918
RegDate: 1994-03-15
Updated: 2013-08-30
Ref: http://whois.arin.net/rest/net/NET-192-168-0-0-1
OrgName: Internet Assigned Numbers Authority
OrgId: IANA
RegDate:
Updated: 2012-08-31
Ref: http://whois.arin.net/rest/org/IANA
OrgTechHandle: IANA-IP-ARIN
OrgTechName: Internet Corporation for Assigned Names and Number
OrgTechPhone:
OrgTechEmail
OrgTechRef: http://whois.arin.net/rest/poc/IANA-IP-ARIN
OrgAbuseHandle: IANA-IP-ARIN
OrgAbuseName: Internet Corporation for Assigned Names and Number
OrgAbusePhone:
OrgAbuseEmail:
OrgAbuseRef: http://whois.arin.net/rest/poc/IANA-IP-ARIN
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
<Personal Information Edited by Host>haha, so now i'm thinking. I'm learning the terminal as fast as i can but there are several lines of codes and commands in there that throws up red flags to me that i don't fully understand. It just looks fishy too me. It would be highly appreciated if someone could just check this out just to tell me that i don't need to worry about it. Or point me in the right direction. I just feel un easy about this. ha.
-
COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET: US$20 AWARD FOR SOLUTION!
COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET PROBLEM (Easy Filter Java Applet) -
US$20 TO ANYONE WHO CAN RESOLVE THE PROBLEM
To forum visitors:
I am prepared to pay a standard shareware fee of US$20 to a user who can resolve this technical problem.
If your advice resolves the problem, I'll forward the payment to your postal address (include your
address with your reply, and also your email address)
I am attempting to enable a HTML button (using Javascript's onClick command) to directly input a number into one of the parameter text boxes in the Easy Filter Java applet (ie, enter a new color value number in the text field of the standard Colors Multiplicator Filter interface).
The applet is Freeware and can be downloaded at: http://www.javazoom.net/applets/easyfilter10/EasyFilter10.html
(It is a very effective bitmap display and editing utility)
To achieve this, I am trying to access the part of the applet that defines and sets the textbox. The text box is defined in the .class file by accessing the parameter details in the genericfilter.txt file (accompanies the .class files). I need to access 'private String appletInitialize()' and then one of the 'textFieldParameters' which sets the textbox.
I understand the basic syntax for referencing the applet:
document.appletname.setString("An example"). However, accessing the text fields in this applet is more complex!!
Please can you recommend the correct Javascript syntax to achieve communication with the applet.
Thank you for your kind assistance.
JM Graham
[email protected]
The Java source code for the applet: EasyFilter.class
# Easy Filter - E.B/JavaZOOM 1999 #
# Contact: [email protected] #
# http://javazoom.hypermart.net #
/* Originally compiled from EasyFilter.java */
import java.awt.*;
import java.io.*;
import java.net.*;
import java.applet.Applet;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.MemoryImageSource;
import java.awt.image.PixelGrabber;
import java.util.Vector;
public synchronized class EasyFilter extends Applet implements KeyListener
private String paramFileName;
private Color bgColor;
private Color fgColor;
private Color parColor;
private Color sepColor;
private Color titleColor;
private Color helpColor;
private int WinWidth;
private int WinHeight;
private String title;
private String logoFileName;
private String originalImageFileName;
private String filteredCaption;
private String originalCaption;
private Vector paramsName;
private Vector paramsValue;
private Vector paramsComment;
private Panel panelParameters[];
private Label labelParameters[];
private TextField textFieldParameters[];
private Label labelComments[];
private int nbParameters;
private ScrollPane scrollPaneParams;
private Panel panelParams;
private Image theLogo;
private Image theOriginalImage;
private Image theFilteredImage;
private int theOriginalPixelArray[];
private int logoWidth;
private int logoHeight;
private int imageWidth;
private int imageHeight;
private drawCanvas canvasTitle;
private Panel panelTitle;
private Label labelTitle;
private Panel panelImages;
private Panel panelOriginalImage;
private drawCanvas canvasOriginalImage;
private Label labelOriginalImage;
private Panel panelFilteredImage;
private drawCanvas canvasFilteredImage;
private Label labelFilteredImage;
private Panel panelHelp;
private Label labelHelp;
private int Yspc;
private FilterImplementation theFilter;
public void init()
String string = null;
string = appletInitialize();
setBackground(bgColor);
if (string != null)
removeAll();
setBackground(Color.white);
setForeground(Color.black);
Label label = new Label(new StringBuffer("Error: ").append(string).toString(), 1);
Panel panel = new Panel();
panel.add(label);
add(panel);
setLayout(new FlowLayout(1, 5, Yspc));
public void keyPressed(KeyEvent keyEvent)
panelHelp.removeAll();
boolean flag = true;
if (KeyEvent.getKeyText(keyEvent.getKeyCode()).equals("Enter"))
for (int i = 0; i < nbParameters; )
try
paramsValue.setElementAt(new Double(textFieldParameters.getText()), i);
i++;
catch (NumberFormatException e)
labelHelp.setText(labelParameters[i].getText() + ": Not a Number");
flag = false;
break;
if (flag == 1)
labelHelp.setText(" .... Running, please wait .... ");
labelHelp.setAlignment(1);
panelHelp.add(labelHelp);
panelHelp.doLayout();
theFilter.updateParameters(paramsValue);
theFilter.computeFilter();
theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
canvasFilteredImage.setImage(theFilteredImage);
canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
canvasFilteredImage.repaint();
panelHelp.removeAll();
labelHelp.setText("- Done -");
else
labelHelp.setText("- Press Enter to run the Filter -");
labelHelp.setAlignment(1);
panelHelp.add(labelHelp);
panelHelp.doLayout();
public void keyReleased(KeyEvent keyEvent)
public void keyTyped(KeyEvent keyEvent)
private String appletInitialize()
WinWidth = size().width;
WinHeight = size().height;
if (getParameter("bgcolor") == null)
bgColor = new Color(0, 0, 40);
else
bgColor = new Color(Integer.parseInt(getParameter("bgcolor"), 16));
if (getParameter("fgcolor") == null)
fgColor = new Color(255, 255, 255);
else
fgColor = new Color(Integer.parseInt(getParameter("fgcolor"), 16));
if (getParameter("sepcolor") == null)
sepColor = new Color(158, 128, 128);
else
sepColor = new Color(Integer.parseInt(getParameter("sepcolor"), 16));
if (getParameter("parcolor") == null)
parColor = new Color(24, 24, 24);
else
parColor = new Color(Integer.parseInt(getParameter("parcolor"), 16));
if (getParameter("titlecolor") == null)
titleColor = new Color(255, 255, 0);
else
titleColor = new Color(Integer.parseInt(getParameter("titlecolor"), 16));
if (getParameter("helpcolor") == null)
helpColor = new Color(0, 255, 255);
else
helpColor = new Color(Integer.parseInt(getParameter("helpcolor"), 16));
paramsName = new Vector();
paramsValue = new Vector();
paramsComment = new Vector();
paramFileName = getParameter("paramfile");
String string = readParams(paramFileName);
if (string != null)
return string;
MediaTracker mediaTracker = new MediaTracker(this);
theOriginalImage = getImage(getDocumentBase(), originalImageFileName);
mediaTracker.addImage(theOriginalImage, 0);
if (logoFileName != null)
theLogo = getImage(getDocumentBase(), logoFileName);
mediaTracker.addImage(theLogo, 1);
try
mediaTracker.waitForAll();
catch (InterruptedException e1)
return "Error while loading image";
if (mediaTracker.isErrorAny())
return "Error while loading image";
if (logoFileName != null)
logoWidth = theLogo.getWidth(this);
logoHeight = theLogo.getHeight(this);
imageWidth = theOriginalImage.getWidth(this);
imageHeight = theOriginalImage.getHeight(this);
theOriginalPixelArray = new int[imageWidth * imageHeight];
PixelGrabber pixelGrabber = new PixelGrabber(theOriginalImage, 0, 0, imageWidth, imageHeight, theOriginalPixelArray, 0, imageWidth);
try
pixelGrabber.grabPixels();
panelTitle = new Panel();
canvasTitle = new drawCanvas();
labelTitle = new Label();
panelTitle.setLayout(new FlowLayout(1, 10, Yspc));
add(panelTitle);
panelTitle.setBackground(bgColor);
panelTitle.add(canvasTitle);
canvasTitle.setImage(theLogo);
canvasTitle.setBounds(0, 0, logoWidth, logoHeight);
labelTitle.setText(title);
catch (InterruptedException e2)
return "Internal Error, Try RELOAD !";
if (title != null)
panelTitle.add(labelTitle);
labelTitle.setForeground(titleColor);
labelTitle.setFont(new Font("Dialog", 1, 14));
panelImages = new Panel();
panelOriginalImage = new Panel();
canvasOriginalImage = new drawCanvas();
labelOriginalImage = new Label();
panelFilteredImage = new Panel();
canvasFilteredImage = new drawCanvas();
labelFilteredImage = new Label();
panelImages.setLayout(new FlowLayout(1, 10, Yspc));
add(panelImages);
panelImages.setBackground(bgColor);
panelOriginalImage.setLayout(new BorderLayout(0, 2));
panelImages.add(panelOriginalImage);
panelOriginalImage.setBackground(Color.black);
panelOriginalImage.add("Center", canvasOriginalImage);
canvasOriginalImage.setImage(theOriginalImage);
canvasOriginalImage.setBounds(0, 0, imageWidth, imageHeight);
labelOriginalImage.setText(originalCaption);
labelOriginalImage.setAlignment(1);
panelOriginalImage.add("South", labelOriginalImage);
labelOriginalImage.setBackground(Color.lightGray);
labelOriginalImage.setForeground(Color.black);
labelOriginalImage.setFont(new Font("SansSerif", 0, 10));
panelFilteredImage.setLayout(new BorderLayout(0, 2));
panelImages.add(panelFilteredImage);
panelFilteredImage.setBackground(Color.black);
panelFilteredImage.add("Center", canvasFilteredImage);
theFilter = new FilterImplementation(paramsValue, theOriginalPixelArray, imageWidth, imageHeight);
theFilter.computeFilter();
theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
canvasFilteredImage.setImage(theFilteredImage);
canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
labelFilteredImage.setText(filteredCaption);
labelFilteredImage.setAlignment(1);
panelFilteredImage.add("South", labelFilteredImage);
labelFilteredImage.setBackground(Color.lightGray);
labelFilteredImage.setFont(new Font("SansSerif", 0, 10));
scrollPaneParams = new ScrollPane(0);
panelParams = new Panel();
nbParameters = paramsName.size();
int i = WinHeight - (33 + 7 * Yspc + logoHeight + imageHeight + 23);
if (i < Yspc + 2 + 24)
i = Yspc + 2 + 24;
scrollPaneParams.setBounds(0, 0, WinWidth - 10, i);
panelParams.setLayout(new GridLayout(nbParameters, 1, 5, Yspc / 2));
scrollPaneParams.add(panelParams);
panelParams.setBackground(sepColor);
panelParameters = new Panel[nbParameters];
labelParameters = new Label[nbParameters];
textFieldParameters = new TextField[nbParameters];
labelComments = new Label[nbParameters];
for (int j = 0; j < nbParameters; j++)
panelParameters[j] = new Panel();
panelParameters[j].setLayout(new FlowLayout(0, 5, 1));
panelParams.add(panelParameters[j]);
panelParameters[j].setBackground(parColor);
labelParameters[j] = new Label();
labelParameters[j].setText((String)paramsName.elementAt(j));
panelParameters[j].add(labelParameters[j]);
labelParameters[j].setForeground(fgColor);
labelParameters[j].setFont(new Font("Dialog", 1, 12));
textFieldParameters[j] = new TextField(8);
textFieldParameters[j].setText(paramsValue.elementAt(j).toString());
panelParameters[j].add(textFieldParameters[j]);
textFieldParameters[j].setBackground(fgColor);
textFieldParameters[j].addKeyListener(this);
labelComments[j] = new Label();
labelComments[j].setText((String)paramsComment.elementAt(j));
panelParameters[j].add(labelComments[j]);
labelComments[j].setForeground(fgColor);
add(scrollPaneParams);
panelHelp = new Panel();
labelHelp = new Label();
panelHelp.setLayout(new FlowLayout(1, 5, 0));
add(panelHelp);
panelHelp.setBackground(bgColor);
labelHelp.setText(" Change colour values and press enter ");
labelHelp.setAlignment(1);
panelHelp.add(labelHelp);
labelHelp.setForeground(helpColor);
return null;
private String readParams(String string1)
Object object1;
String string2;
if (string1 == null)
return "Filename of filter's parameters needed";
try
URL uRL = new URL(getDocumentBase(), string1);
URLConnection uRLConnection = uRL.openConnection();
uRLConnection.setDoInput(true);
uRLConnection.setUseCaches(false);
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(uRLConnection.getInputStream()));
string2 = null;
catch ()
return object1.getMessage();
catch ()
return object1.getMessage();
catch ()
return object1.getMessage();
if (bufferedReader != null)
Object object2;
try
for (object2 = bufferedReader.readLine(); object2 != null && string2 == null; object2 = bufferedReader.readLine())
string2 = extractFormat(object2);
catch ()
string2 = object2.getMessage();
finally
bufferedReader.close();
if (string2 != null)
return string2;
else
return null;
private String extractFormat(String string1)
if (string1.length() == 0)
return null;
int i = 0;
int j = string1.indexOf(" ", i);
if (j == -1)
return "Bad format error (space missing)";
String string2 = string1.substring(i, j);
if (string2.equals("TITLE"))
i = j;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in TITLE missing)";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in TITLE missing)";
title = string1.substring(i, j);
return null;
if (string2.equals("ORIGINALCAPTION"))
i = j;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in ORIGINALCAPTION missing)";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in ORIGINALCAPTION missing)";
originalCaption = string1.substring(i, j);
return null;
if (string2.equals("FILTEREDCAPTION"))
i = j;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in FILTEREDCAPTION missing)";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in FILTEREDCAPTION missing)";
filteredCaption = string1.substring(i, j);
return null;
if (string2.equals("LOGO"))
i = j + 1;
j = string1.length();
logoFileName = string1.substring(i, j);
return null;
if (string2.equals("ORIGINALIMAGE"))
i = j + 1;
j = string1.length();
originalImageFileName = string1.substring(i, j);
return null;
if (!string2.equals("PARAM"))
return null;
i = j;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format in a PARAM line";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format in a PARAM line";
paramsName.addElement(string1.substring(i, j));
i = j + 2;
j = string1.indexOf(32, i);
if (j == -1)
return "Bad format in a PARAM line";
try
paramsValue.addElement(new Double(string1.substring(i, j)));
j = string1.indexOf(34, i);
catch (NumberFormatException e)
return "Bad format in a PARAM line";
if (j == -1)
return "Bad format (Double quote in PARAM comment missing)";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in PARAM comment missing)";
paramsComment.addElement(string1.substring(i, j));
return null;
public EasyFilter()
logoHeight = 33;
Yspc = 5;Addition to my above submission
To clarify, I'll offer the US$20 to the FIRST person who offers me a workable solution to the problem, not to everyone!!!
JMGRAHAM
Maybe you are looking for
-
Calculation of Tax Depreciation
can u tell me How Can we calculate Tax Depreciation with out posting in Financial Records...for Income Tax Purpose....plz give me the configuration steps and also how can we show in reports,,.... Thanks in Advance.... Suresh
-
Print Invoice Header Text In Main Window of Smartforms
Helo Gurus !!! I want to print Invoice header text in main window of smartform. There are total 5 columns. Item Quantity Description UnitPrice Amount Now what I want is to print header text below Description column, there i
-
Hp officejet 8600 can't print two sided from adobe reader in Mac 10.8.4
HP officejet 8600 Mac notebook osx 10.8.4 Can't print 2 sided from pdf in adobe reader. Print command from file dropdown doesn't open Print expanded dialog box at bottom of pdf in adobe doesn't show a 2 sided option Thanks vso
-
ITunes store - shopping in an other country?!
Hello, I have an account for Switzerland, now I found a song in the US shop from. How can I shop in the US shop? It always tells me I don't have the rights for the US shop and sends me to the Swiss shop. But there the song does not exists. The same h
-
Download images with safari opens preview - how to disable it?
Every time after a image is downloaded, preview opens itself to show the image. It really annoys me, so how could I disable this? Many thanks!