🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1245

How to open an image?

#1245
From: Grzegorz. : 3Man: .Wolny
Date: Wed, 17 Apr 2002 07:08
41 lines
1642 bytes
Hi!

I have a problem with opening an image in JBuilder 4 Foundation. I don't
know how schould the opening procedure look like. I know how to begin but
what next?

void openFile(String fileName)

{

    try

    {

        File file = new File(fileName);

        int size = (int)file.length();

        //I don't know what schould I write next...

    }

    in.close();

    statusBar.setText("Opened "+fileName);

}

catch (IOException e)

{

    statusBar.setText("Error opening "+fileName);

}

}

Could someone help me with this?

Grzegorz Wolny
Technical Details
Message-ID: <a9j6uq$r4i$1@news.tpi.pl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.gamma.ru!Gamma.RU!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e3303bee28f8e3dc,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-04-17 00:08:05 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.gamma.ru!Gamma.RU!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: "Grzegorz. : 3Man: .Wolny" <g_wolny@o2.pl>
Newsgroups: borland.public.jbuilder.java.api
Subject: How to open an image?
Date: Wed, 17 Apr 2002 09:08:49 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 44
Message-ID: <a9j6uq$r4i$1@news.tpi.pl>
NNTP-Posting-Host: zygzak.po.punkt.pl
X-Trace: news.tpi.pl 1019027227 27794 80.48.2.130 (17 Apr 2002 07:07:07 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 17 Apr 2002 07:07:07 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000