How to make dos window scrollable under win98?
Hi, I am using win98, every time when I run my GUI application, whenever I got bunch of error message that can not be displayed in one window, I will miss the original error information. Can anyone tell me how to make my dos window scrollable so that I can view all error message.
Thanks a lot.
I don't think that you can do this. There is another way, however: When java throws an exception, if it is not caught in your program, it is sent to the standard error, which is the console. You can simply reset this to be a file, so you can read this to get all the error info. Try using the following code in your main method:
public static void main(String[] arg) {
try {
System.setErr(new PrintStream(new FileOutputStream(new File("Errors"))));
//instantiate your main class here
MyClass mc=new MyClass(); //or whatever
} catch (Exception _ex) {
System.out.println("An error occurred"); //exception get sent to standard error automatically, so there
//is no real need to catch this exception. However, I use it to display
//a message on the console to let me know an error has occurred.
System.err.println(_ex.getMessage()); //and finally, print the exception to file
_ex.printStackTrace();
}
Similar Messages
-
When I stat my RMIServer class,I get a blank dos window.How can I remove this window.I use the following command to start my class-
set Path="D:\Program Files\Java\jdk1.5.0\bin"
Start java.exe RMIServer
I am also adding the code of my server class-
public class RMIServer //extends JFrame
public RMIServer()
try {
java.rmi.registry.LocateRegistry.createRegistry(1099);
//System.out.println("RMI registry ready.");
} catch (Exception e) {
//System.out.println("Exception starting RMI registry:");
e.printStackTrace();
try{
//-------------------- Implementation Object ---------------
MemoControllerImp memoImp = new MemoControllerImp();
UserControllerImp userImp = new UserControllerImp();
LogInControllerImp loginImp = new LogInControllerImp();
//---------------------- Rebind ---------------------------------
Naming.rebind("rmi://localhost/MemoController",memoImp);
Naming.rebind("rmi://localhost/UserController",userImp);
Naming.rebind("rmi://localhost/LogInController",loginImp);
//System.out.println("Server Ready ...");
}catch(Exception re){
/*lblDisplay.setForeground(Color.red);
lblDisplay.setText("Server Not Ready !!!");
this.setTitle("Nor Ready");
this.setState(0);
System.out.println("Server Not Ready !!!"+re);*/
}IIRC, use javaw.exe instead of java.exe
-
How to make an additional account under my apple id
I want to make an additional account under my id for another family member how do I do that
You don't. Just create a new one.
-
How to make download window open to front
When I download a file, how can I make the download window automatically come to the front?
THANK YOU! I don't know which idiot thought of removing the downloads window in favor of that ridiculous menu but I've been tearing my hair out trying to fix it. The old window has everything you need in one easy window while the menu requires multiple steps to check EACH download. I was ready to drop release 20 and go back to 19.
-
How to make New Windows open where I want!
Every time I launch Safari, it opens the window on the left side of the screen. How to do get it to open on the right side? I'm sure there is a keystroke combination to reset the default position or AppleScript, but I can't find one. Any help would be greatly appreciated.
Thanks in advance!I had the same problem way back. I finally gave up and now use the following applescript. Change the pixel coordinates of the top left and bottom right of the window, that appear in parentheses, to fit size of your screen. Mine is set for my 2x" early Cinema display.
javascript:self.moveTo(190,0);self.resizeTo(1150,995)
Make a bookmark put this script into the URL area of the bookmark (right side) and rename it to something like "my window size" and then put it in your bookmark bar folder. Then just click on it in the bookmark bar and window will move and resize to whatever you have entered in the parentheses.
Fair winds and happy bytes, Dave Flory -
How to make safari window open up to my size pref
Sorry about the long subject title. Everytime I open safari on my Apple computers the safari window will open up in a different size or place. How can I set it to open to my own default like preference so that it covers the screen when I open safari.
Does that make sense?
Thanks!Thanks alot for the quick response. However, my problem is that I do resize the window with the lower right drag every time I open safari. It doesn't seem to save the setting or something. If I stretch it out huge....next time I open, it will be tiny, (and hitting the green button doesn't fix it) or in a different possition.
Any other ideas?
Thanks! -
How to make a Window object Transparent
hi all,
how can i make an object of Window Class transparent.
please help me out friends.This is a transparent window with an orange in it:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.peer.*;
public class Tw extends JWindow implements FocusListener, MouseMotionListener, MouseListener
Image img,tim;
Graphics tig;
Point mp;
Robot r;
public Tw()
setBounds(170,170,100,100);
try
r = new Robot();
catch(AWTException awe)
System.out.println("robot excepton occurred");
capture();
addMouseMotionListener(this);
addMouseListener(this);
addFocusListener(this);
setVisible(true);
public void mouseDragged(MouseEvent m)
if (mp == null) return;
Point p = m.getPoint();
int x = getX()+p.x-mp.x;
int y = getY()+p.y-mp.y;
setLocation(x,y);
paintP(getGraphics());
public void mouseMoved(MouseEvent m)
public void mouseClicked(MouseEvent m){}
public void mouseEntered(MouseEvent m){}
public void mouseExited(MouseEvent m) {}
public void mouseReleased(MouseEvent m)
mp = null;
public void mousePressed(MouseEvent m)
mp = m.getPoint();
public void focusGained(FocusEvent fe)
setSize(0,0);
capture();
setSize(100,100);
public void focusLost(FocusEvent fe)
public void capture()
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
img = r.createScreenCapture(new Rectangle(0,0,d.width,d.height));
public void captureX()
Rectangle rect = getBounds();
setVisible(false);
Thread.yield();
Image xmg = r.createScreenCapture(rect);
img.getGraphics().drawImage(xmg,rect.x,rect.y,rect.width,rect.height,null);
setLocation(rect.x,rect.y);
setVisible(true);
public void paint(Graphics g)
Rectangle rect = g.getClipBounds();
if (tim == null)
tim = createImage(getWidth(),getHeight());
tig = tim.getGraphics();
if (!rect.getSize().equals(getSize())) captureX();
else paintP(g);
public void paintP(Graphics g)
tig.drawImage(img,0,0,getWidth(),getHeight(),
getX(),getY(),getX()+getWidth(),getY()+getHeight(),null);
tig.setColor(Color.orange);
tig.fillOval(10,20,70,80);
tig.setColor(Color.green);
tig.fillOval(21,16,20,10);
tig.fillOval(40,02,11,21);
g.drawImage(tim,0,0,null);
public void update(Graphics g)
this.paint(g);
public static void main (String[] args)
new Tw();
}Noah -
How can I run Windows XP under 10.10.2?
While I seldom use XP, there are times I need a Windows OS. I run OX 10.10.2 on my late 2012 iMac, and until I updated to Yosemite, I was running under Parallels. I deleted Parallels as I wished to upgrade it, and have lost my Windows OS ability. Any help out there?
When you deleted Parallels, did you also delete the XP virtual machine you'd run using Parallels? If not, Kurt Lang's advice to reinstall Parallels will solve your problem. Or, you can install VMware Fusion, which can also use your VM.
-
How to make JFrame window un-resizable?
I create a window using JFrame. I don't want user to re-size the window. How can I do that? Thanks!
JFrame f = new JFrame();
f.setResizable(false);
Jframe entends frame
setResizable() is a method in frame
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Frame.html#setResizable(boolean) -
How to make a window disable/enable in run time in webdynpro application
Hi all,
1) my requirement is in run time i want to make the content of a window in disable mode?
2) and again it should display in enable mode when we perform some action?
thanks & regards
naveen
Moderator Message: This has been covered numerous times in this forum. Also, the forum is not a free consulting service here to do your job for you.
Thread locked
Edited by: Neil Gardiner on Nov 22, 2010 9:27 PMHi,
You will not be able to do this with a standard radio button, as each one will be in a separate instance of the row.
The easiest way is to use a checkbox (as you can script this on/off) and then make it look like a radio button.
Example here:
https://acrobat.com/#d=sasUNmniOUgs3MwY-p4H8Q
Hope that helps,
Niall -
How to make a window float in stumpwm ?
I donot want to create a standalone float group. I just want to make a specified window in any title group float.
Sincerely!It seems i have to use float group.
-
How to make directaccess windows server 2012 access the IPv4 link
HI all,
I have built a directaccess for win7 with IPv4 only intrant successfully,and it work's good.but here is a problem that I can't access the IPv4 link,for example I can access
http://www.test.com ,but I can't access the url http://192.168.13.13 .I have many links use IPv4 address,so I can't access these resources through directaccess,what should
I do to make it works.Hi,
Direct Access is an IPv6 technology. Clients send only IPv6 packets to DirectAccess server. We need an IPv6/IPv4 translator here.
Choose Solutions for IPv4-only Intranet Resources
http://technet.microsoft.com/en-us/library/ee382298(v=ws.10).aspx
And in windows server 2012 we have built-in NAT64 and DNS64.
Windows Server 2012 Direct Access – Part 1 What’s New
http://blogs.technet.com/b/meamcs/archive/2012/05/03/windows-server-2012-direct-access-part-1-what-s-new.aspx
Hope this helps. -
How to make a window like this
In Cocoa-Applescript
Okey I found it it's in the bindings and only one bind is available "Visable" Doh! with a very basic script I can activate it
on click_(sender)
if x = false then
set my x to true
else
set my x to false
end if
end click_
There are two question: 1) What if I want to make second custom view 2)How I will add Drawers to my Main Project
And I know you're helping me a lot in cocoa-applescript but I need to ask you one more thing... I looked Documention, Internet but I couldn't find anything. Every topic that I've found is for AppleScript Studio (I know you know it since 1978 ). How can I set dataSource for Outline View. I'm trying to show playlist folders and playlists in it. Actually I found how to show drawer when I post my lastest reply but Apple Discussions get into maintance . -
Dummy question: how to make html file working under weblogic
I created a file called register.html, and I put it under
weblogic\myserver\public_html directory, but when I try to access from the
browser, I get the following error:
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is
given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the
client, the status code 403 (Forbidden) can be used instead. The 410 (Gone)
status code SHOULD be used if the server knows, through some internally
configurable mechanism, that an old resource is permanently unavailable and
has no forwarding address.
What should I do to make this html file working?
Thank you for any help.
liI solved the problem.
"li" <[email protected]> wrote in message
news:[email protected]..
I created a file called register.html, and I put it under
weblogic\myserver\public_html directory, but when I try to access from the
browser, I get the following error:
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indicationis
given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the
client, the status code 403 (Forbidden) can be used instead. The 410(Gone)
status code SHOULD be used if the server knows, through some internally
configurable mechanism, that an old resource is permanently unavailableand
has no forwarding address.
What should I do to make this html file working?
Thank you for any help.
li -
How to make awt window without owner
The java.awt.Window(owner) requires owner but I want it to be top level without any other owner, how to do it
.:moby:.Sorry.
You have to open up a frame, what use would be a top level window in a GUI that can't me minimized, moved or closed? Why do you want it to stand alone?
Maybe you are looking for
-
Enable CMSS-3d for a 5.1 surround headse
Hi guys i have a turtle beach earforce HPA2 5. surround headset and a X-fi Extrememusic soundcard. I would like to know if anyone knows for sure if it is best to enable CMSS-3d for 5. headsets and this headset, or if it is best to disable CMSS-3d. I
-
Hello, I have a understanding question: In the RFC-sender-channel's configuration I need to specify the r/3 mandant. Does this mean: 1. when the given user to login R/3 from xi (the one from the channel's config) is in mandant 100 and 2. In R/3 I tes
-
I Seriously need some help. I bought Adobe Photoshop Elements 12 with Premiere several days ago. Since then I have been on this forum, I have tried everything recommended in troubleshooting, I have called Adobe, I have tried to return the product t
-
Script Gets Error After Upgrading to Snow Leopard
Hi, everyone - I have several Applescripts I'm running that mostly import Entourage emails into Filemaker Pro (retrieving data from forms submitted) - everything worked fine until I upgraded to Snow Leopard recently! I need to get this working ASAP s
-
I purchased on the 10/01/15 the yearly CC and Lightroom download. The CC installed but only as a 30 day trial. I had previously trialled the Lr app, which had expired, yet this would not download as at the end of downloading, the message said 'trial