Splashscreen problem...
Hi, I have a class that makes splash screen (found it somewhere online and then edited for my purpose). Now this only works at the beginning of a GUI application. In my specific program I need to make splash screens while the GUI is running. Here is the code for the splash screen class I used:
// Splash Screen Class:
class SplashScreen extends JWindow
// Constructor for time:
public int duration;
public SplashScreen (int d)
duration = d;
// Splash Screen method:
public void showSplash (BufferedImage source)
// Initialization and background:
JPanel content = (JPanel) getContentPane ();
content.setBackground (Color.white);
// Set the window's bounds, centering the window
int width = source.getWidth ();
int height = source.getHeight ();
Dimension screen = Toolkit.getDefaultToolkit ().getScreenSize ();
int x = (screen.width - width) / 2;
int y = (screen.height - height) / 2;
setBounds (x, y, width, height);
// Build the splash screen
JLabel image = new JLabel (new ImageIcon (source));
content.add (image);
content.setBorder (BorderFactory.createLineBorder (Color.black, 2));
// Display it
setLocation (8, 8);
setVisible (true);
// Wait a little while, maybe while loading resources
try
Thread.sleep (duration);
catch (Exception e)
setVisible (false);
// Show splash screen for a while, then close:
public void showSplashAndExit (BufferedImage source)
showSplash (source);
// To call the Splash Screen I use the following:
try
BufferedImage Introduction1 = ImageIO.read (new File ("IntroductionImages/Introduction1.jpg"));
SplashScreen splash1 = new SplashScreen (2000);
splash1.showSplashAndExit (Introduction1);
catch (IOException e)
}Anyways that works for the introduction only(while the GUI application is being loaded). But it does not work while the main frame is running. The only way I could do this is by using JinternalFrame. So basically, I want to make a similar splash screen class using JInternalFrame so that the splash screen will work WHILE the GUI application is running. If there is another way to do the above, I would highly appreciate your advice. If not, then can anybody tell me how I can manipulate this same class to be used for JInternalFrame. Any help would be greatly appreciated. Thanks!
I see a problem with your potentially putting the EDT thread to sleep by calling Thread(sleep). Have you tried to use a Swing Timer instead?
Similar Messages
-
Flex Mobile: Problems with MultiDPI SplashScreen
Hi guys,
The property applicationDPI in my application is 160, and I created three bitmaps to 160, 240 and 320 DPI to be used in the SplashScreen.
I created this class . see : http://www.adobe.com/devnet/flex/articles/mobile-skinning-part2.html#articlecontentAdobe_n umberedheader_5
package preloaders
import mx.core.DPIClassification;
import mx.core.mx_internal;
use namespace mx_internal;
public class MultiDPISplashScreen extends CustomSplash
[Embed(source="assets/mobile160/splash_160.png")]
private var SplashImage160:Class;
[Embed(source="assets/mobile240/splash_240.png")]
private var SplashImage240:Class;
[Embed(source="assets/mobile320/splash_320.png")]
private var SplashImage320:Class;
public function MultiDPISplashScreen()
super();
override mx_internal function getImageClass(dpi:Number, aspectRatio:String):Class
if (dpi == DPIClassification.DPI_160)
return SplashImage160;
else if (dpi == DPIClassification.DPI_240)
return SplashImage240;
else if (dpi == DPIClassification.DPI_320)
return SplashImage320;
return null;
Ih the main app:
<s:TabbedViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
applicationDPI="160"
preloader="preloaders.MultiDPISplashScreen"
splashScreenMinimumDisplayTime="2000">
The problem is that Flex does not take the correct bitmap if i run my app at 240DPI or at 320DPI (as does the class MultiDPIBitmapSource)and my splash screen is scaled and grainy! :-(
Can anyone help me?
Thnks a lot!
FrancescoHi Francesco,
Setting the application dpi shouldn't affect the splash screen (you can verify by testing when you don't set the app dpi or by debugging the function). The dpi that gets passed in to the imageClass should always be the runtime dpi.
I see that in your MultiDPISplashScreen class extends CustomSplash instead of the SplashScreen. Maybe that could be the issues, where does CustomSplash come from?
Edit:
The issue seems to be that in the SplashScreen class we don't undo the automatic dpi scale factor when the scaleMode="none" (the default). When this is combined with different images per dpi, this will cause the observed behavior. Setting scaleMode to any other value should fix the issue.
If you need to have the image centered and not scaled, then you may follow the work-around posted by Uggers at the end of the thread (bottom of the page) at http://www.adobe.com/devnet/flex/articles/mobile-skinning-part2.html#articlecontentAdobe_n umberedheader_5
Thanks,
-Evtim -
Hi, i changed the background parameter (background=logoaee.gif) in the formsweb.cfg to display a non oracle background. The .gif is locate in the following path /forms/server/logoaee.gif.
When the Application is startup the background is empty. The path of the .gif is correct? I need to do another changed?
General Info
AS10gR2
Suse9 SP2Upps!!! The problems is with my background!!!
-
Problem with Form and webutil loading jar and connection
Can anyone shed light on this. Here is my java console output. I then get FRM-90250 and FRM-92101....
Orion-web.xml
<virtual-directory virtual-path="/webutil"
real-path="C:\webutil/lib" />
Forms90.conf
#Virtual path for WebUtil
AliasMatch ^/forms90/webutil/(..*) "c:\webutil/lib/$1"
formsweb.cfg
webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
[WEBFTU]
pageTitle=Creative Automation Services
form=c:\export\data\ca\prod\webftu.fmx
archive_jini=f90all_jinit.jar,rolloverbutton.jar,hyperlink.jar
archive_ie=f90all.cab
archive=f90all.jar
webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
WebUtilLogging=off
#WebUtilLogging=Console
# WebUtilLoggingDetail=normal
WebUtilLoggingDetail=Detailed
WebUtilErrorMode=Alert
baseHTMLjinitiator=C:\webutil\server\webutiljini.htm
width=900
height=600
splashScreen=/forms90/images/splash.gif
background=/forms90/images/black.gif
logo=/forms90/images/blackborder.gif
lookAndFeel=Oracle
colorScheme=Titanium
otherparams=useSDI=yes
workingDirectory=c:\export\data\ca\prod
envFile=C:\webutil\server\webutil.env
Oracle JInitiator: Version 1.3.1.9
Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\msantry
User has overriden browser's proxy settings.
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\javaburps\CACHE
Maximum size: 50 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://clientapps.cauto.com/forms90/webutil/webutil.jar from JAR cache
Downloading http://clientapps.cauto.com/forms90/webutil/jacob.jar to JAR cache
Loading http://clientapps.cauto.com/forms90/java/f90all_jinit.jar from JAR cache
RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
Loading http://clientapps.cauto.com/forms90/java/rolloverbutton.jar from JAR cache
Loading http://clientapps.cauto.com/forms90/java/hyperlink.jar from JAR cache
connectMode=HTTP, native.
oracle.forms.net.ConnectionException: Forms session <3> failed during startup: no response from runtime process
at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
at oracle.forms.net.HTTPNStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at oracle.forms.net.HTTPConnection.connect(Unknown Source)
at oracle.forms.engine.FormsDispatcher.initConnection(Unknown Source)
at oracle.forms.engine.FormsDispatcher.init(Unknown Source)
at oracle.forms.engine.Runform.initConnection(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thanks,
Mary SantryThe error does not look like a webutil client side problem - it looks more like a server side issue - perhaps the runtime not being able to find the webutil.pll.
Check your FORMS90_PATH in the webutil.env file and make sure it's not too long (>255 chars) if it is split it and use ORACLE_PATH as well. -
Problems downloading java in firefox
My new forms install 11.1.1.4 will not work in firefox 3.6.16 . It wants to download jre 6.12:
http://java.sun.com/products/archive/j2se/6u12/index.html
However the download is immediately cancelled. If I tell it to resume it, it looks like it was downloaded but it is not there.
This is a problem I've had in recent times downloading anything from oracle and not just java There's something wrong with firefox vs oracle's web site. Sometimes you can use firefox sometimes you can't.
Anyway I got 6u24 installed but the test form does not recognize it because it is not 6.12. So this has got to be an faq how to
change the dependence on 6u12 to 6u24 (or better whatever the current version of java would be). I'm sorry to ask such a dumb
newbie question but if anyone knows how to change it I'd really appreciate it.
this does not work with firefox with 6u24, that's all I know. (the test form does work with chrome and with IE 8. BTW I found that if
you have this problem downloading any java with firefox, it is easier to download it with chrome. I see that chrome is very cognizant of
jre versions and there's a lot of confirming things on sun's website. So you can download and install java via chrome if the other avenues
are not working. (I'm getting a real java headache now. I think I'll work on something else :-)
<HTML>
<!-- FILE: basejpi.htm (Oracle Forms) -->
<!-- -->
<!-- This is the default base HTML file for running a form on the -->
<!-- web using the JDK Java Plugin. This is used for example when -->
<!-- running with Netscape on Unix. -->
<!-- -->
<!-- IMPORTANT NOTES: -->
<!-- Default values for all the variables which appear below -->
<!-- (enclosed in percent characters) are defined in the servlet -->
<!-- configuration file (formsweb.cfg). It is preferable to make -->
<!-- changes in that file where possible, rather than this one. -->
<!-- -->
<!-- This file will be REPLACED if you reinstall Oracle Forms, so -->
<!-- you are advised to create your own version if you want to make -->
<!-- any modifications. You should then set the baseHTMLjpi -->
<!-- parameter in the Forms Servlet configuration file (formsweb.cfg) -->
<!-- to point to your new file instead of this one. -->
<HEAD><TITLE>Oracle Fusion Middleware Forms Services</TITLE></HEAD>
<BODY >
<COMMENT id="forms_plugin_info"
serverURL="/forms/lservlet?ifcfs=/forms/frmservlet?form=test.fmx&ifsessid=formsapp.19&acceptLanguage=en-us,en;q=0.5"
plug_ver="clsid:CAFEEFAC-0016-0000-0012-ABCDEFFEDCBA"
appheight="600"
appwidth="750"
appcodebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,12"
appname="">
</COMMENT>
<!-- Forms applet definition (start) -->
<NOSCRIPT>
<OBJECT classid="clsid:CAFEEFAC-0016-0000-0012-ABCDEFFEDCBA"
codebase="http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,12"
WIDTH="750"
HEIGHT="600"
HSPACE="0"
VSPACE="0"
ID="">
</NOSCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="/forms/frmjscript/forms_ie.js"></SCRIPT>
<PARAM NAME="TYPE" VALUE="application/x-java-applet;jpi-version=1.6.0_12">
<PARAM NAME="CODEBASE" VALUE="/forms/java">
<PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
<PARAM NAME="ARCHIVE" VALUE="frmall.jar" >
<PARAM NAME="serverURL" VALUE="/forms/lservlet?ifcfs=/forms/frmservlet?form=test.fmx&ifsessid=formsapp.19&acceptLanguage=en-us,en;q=0.5">
<PARAM NAME="networkRetries" VALUE="0">
<PARAM NAME="serverArgs"
VALUE="escapeParams=true module=test.fmx userid= debug=no host= port= obr=no record= tracegroup= log= term= ssoProxyConnect=no">
<PARAM NAME="separateFrame" VALUE="false">
<PARAM NAME="splashScreen" VALUE="">
<PARAM NAME="background" VALUE="">
<PARAM NAME="lookAndFeel" VALUE="Oracle">
<PARAM NAME="colorScheme" VALUE="teal">
<PARAM NAME="serverApp" VALUE="default">
<PARAM NAME="logo" VALUE="">
<PARAM NAME="imageBase" VALUE="codebase">
<PARAM NAME="formsMessageListener" VALUE="">
<PARAM NAME="recordFileName" VALUE="">
<PARAM NAME="EndUserMonitoringEnabled" VALUE="false">
<PARAM NAME="EndUserMonitoringURL" VALUE="">
<PARAM NAME="heartBeat" VALUE="">
<PARAM NAME="MaxEventWait" VALUE="">
<PARAM NAME="allowAlertClipboard" VALUE="true">
<PARAM NAME="disableValidateClipboard" VALUE="false">
<PARAM NAME="enableJavascriptEvent" VALUE="true">
<PARAM NAME="MAYSCRIPT" VALUE="true">
<PARAM NAME="digitSubstitution" VALUE="context">
<PARAM NAME="legacy_lifecycle" VALUE="false">
<PARAM NAME="JavaScriptBlocksHeartBeat" VALUE="false">
<PARAM NAME="highContrast" VALUE="false">
<PARAM NAME="disableMDIScrollbars" VALUE="">
<PARAM NAME="clientDPI" VALUE="">
<PARAM name="applet_stop_timeout" value="800">
<COMMENT>
<EMBED SRC="" PLUGINSPAGE="http://java.sun.com/products/archive/j2se/6u12/index.html"
TYPE="application/x-java-applet;jpi-version=1.6.0_12"
java_codebase="/forms/java"
java_code="oracle.forms.engine.Main"
java_archive="frmall.jar"
WIDTH="750"
HEIGHT="600"
HSPACE="0"
VSPACE="0"
NAME=""
serverURL="/forms/lservlet?ifcfs=/forms/frmservlet?form=test.fmx&ifsessid=formsapp.19&acceptLanguage=en-us,en;q=0.5"
networkRetries="0"
serverArgs="escapeParams=true module=test.fmx userid= debug=no host= port= obr=no record= tracegroup= log= term= ssoProxyConnect=no"
separateFrame="false"
splashScreen=""
background=""
lookAndFeel="Oracle"
colorScheme="teal"
serverApp="default"
logo=""
imageBase="codebase"
recordFileName=""
EndUserMonitoringEnabled="false"
EndUserMonitoringURL=""
heartBeat=""
MaxEventWait=""
disableValidateClipboard="false"
allowAlertClipboard="true"
enableJavascriptEvent="true"
MAYSCRIPT="true"
digitSubstitution="context"
legacy_lifecycle="false"
JavaScriptBlocksHeartBeat="false"
highContrast="false"
disableMDIScrollbars=""
clientDPI=""
applet_stop_timeout="800"
>
<NOEMBED>
</COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!-- Forms applet definition (end) -->
</BODY>
</HTML>Edited by: lake on Apr 18, 2011 1:10 PMOh a simple fix. You merely have to find the formsweb.cfg file which in 11.1.1.4 is something like:
c:\Oracle\Middleware\user_projects\domains\forms\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg
change these 3 items to as follows:
jpi_classid=clsid:CAFEEFAC-0016-0000-0024-ABCDEFFEDCBA
jpi_codebase=/forms/java/jre-6u24-windows-i586.exe#Version=1,6,0,24
jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_24
you could also change the download so they are not downloading the wrong thing:
jpi_download_page=https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jre-6u24-oth-JPR@CDS-CDS_Developer
I probably missed a few.
(But does this mean that every time there is another version of java I'm going to have to change this file? Actually I though mozilla was
going to run the latest version of java if you specified one that was earlier. There's just no telling what that program is going to do. -
Problem placing buttons on top of a background image
My knowledge of Java isn't the greatest and I am currently having problems placing buttons on top of a background image within a JApplet (this is also my first encounter with Applets).
I'm using a Card Layout in order to display a series of different screens upon request.
The first card is used as a Splash Screen which is displayed for 5 seconds before changing to the Main Menu card.
When the Main Menu card is called the background image is not shown but the button is.
While the Applet is running no errors are shown in the console.
Full source code can be seen below;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
// First extend JApplet
public class WOT extends JApplet {
//--------------- Variables are declared here -----------------
private CardLayout contentCardLayout = new CardLayout(); // declare CardLayout
private Container contentContain; // declare content Container
private JPanel contentCard, splashScreen, mainMenu, menuImage; // declare content Panels
private JLabel splash, menu, map; // declare image labels
private ImageIcon mapBtn; // declare ImageIcons
private JButton mapOption; // declare option Buttons
private Timer timer; // declare Timer
private ActionListener actionListener, mapOptionListener; // declare ActionListener
//--------------- Initialise Applet -----------------
public void init() {
//--------------- Set-up Card Layout -----------------
contentCard = new JPanel(contentCardLayout); // assign card panels to CardLayout
//--------------- Splash Screen -----------------
splashScreen = new JPanel();
splash = new JLabel(new ImageIcon(getClass().getResource("img/bg.gif")));
splashScreen.add(splash);
splashScreen.setSize(600,800);
splashScreen.setLocation(0,0);
//--------------- "View Map" Option Button -----------------
mapBtn = new ImageIcon(getClass().getResource("img/map.gif"));
mapOption = new JButton(mapBtn);
mapOption.setBorder(null);
mapOption.setContentAreaFilled(false);
mapOption.setSize(150,66);
mapOption.setLocation(150,450);
mapOption.setOpaque(false);
mapOption.setVisible(true);
//--------------- Main Menu Screen -----------------
//menuImage = new JPanel(null);
//menuImage.add(mainMenu);
//menuImage.setLocation(0,0);
mainMenu = new JPanel(null);
menu = new JLabel(new ImageIcon(getClass().getResource("img/menu.gif")));
menu.setLocation(0,0);
mainMenu.add(menu);
//mainMenu.setBackground(Color.WHITE);
mainMenu.setLocation(0,0);
mainMenu.setOpaque(false);
//mainMenu.setSize(150,66);
mainMenu.add(mapOption);
//--------------- Map Image Screen -----------------
map = new JLabel(new ImageIcon(getClass().getResource("img/map.gif")));
//--------------- Add Cards to CardLayout Panel -----------------
contentCard.add(splashScreen, "Splash Screen");
contentCard.add(mainMenu, "Main Menu");
contentCard.add(map, "Map Image");
//--------------- Set-up container -----------------
contentContain = getContentPane(); // set container as content pane
contentContain.setBackground(Color.WHITE); // set container background colour
contentContain.setLocation(0,0);
contentContain.setSize(600,800);
contentContain.setLayout(new FlowLayout()); // set container layout
contentContain.add(contentCard); // cards added
//--------------- Timer Action Listener -----------------
actionListener = new ActionListener()
public void actionPerformed(ActionEvent actionEvent)
//--------------- Show Main Menu Card -----------------
contentCardLayout.show(contentCard, "Main Menu");
//--------------- Map Option Button Action Listener -----------------
mapOptionListener = new ActionListener()
public void actionPerformed(ActionEvent actionEvent)
//--------------- Show Main Menu Card -----------------
contentCardLayout.show(contentCard, "Map Image");
//--------------- Timer -----------------
timer = new Timer(5000, actionListener);
timer.start();
timer.setRepeats(false);
}Any help would be much appreciated!
Edited by: bex1984 on May 18, 2008 6:31 AM1) When posting here, please use fewer comments. The comments that you have don't help folks who know Java read and understand your program and in fact hinder this ability, which makes it less likely that someone will in fact read your code and help you -- something you definitely don't want to have happen! Instead, strive to make your variable and method names as logical and self-commenting as possible, and use comments judiciously and a bit more sparingly.
2) Try to use more methods and even classes to "divide and conquer".
3) To create a panel with a background image that can hold buttons and such, you should create an object that overrides JPanel and has a paintComponent override method within it that draws your image using the graphics object's drawImage(...) method
For instance:
an image jpanel:
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import javax.imageio.ImageIO;
import javax.swing.JButton;
import javax.swing.JPanel;
public class BackgroundImage
// **** this will have to be changed for your program:
private static final String IMAGE_PATH = "../../m02/a/images/Forest.jpg";
private BufferedImage myImage = null;
private JPanel imagePanel = new JPanel()
@Override
protected void paintComponent(Graphics g)
{ // *** here is where I draw my image
super.paintComponent(g); // **** don't forget this!
if (myImage != null)
g.drawImage(myImage, 0, 0, this);
public BackgroundImage()
imagePanel.setPreferredSize(new Dimension(600, 450));
imagePanel.add(new JButton("Foobars Rule!"));
try
myImage = createImage(IMAGE_PATH);
catch (IOException e)
e.printStackTrace();
catch (URISyntaxException e)
e.printStackTrace();
private BufferedImage createImage(String path) throws IOException,
URISyntaxException
URL imageURL = getClass().getResource(path);
if (imageURL != null)
return ImageIO.read(new File(imageURL.toURI()));
else
return null;
public JPanel getImagePanel()
return imagePanel;
}and an applet that uses it:
import java.lang.reflect.InvocationTargetException;
import javax.swing.JApplet;
import javax.swing.SwingUtilities;
public class BackgrndImageApplet extends JApplet
@Override
public void init()
try
SwingUtilities.invokeAndWait(new Runnable()
@Override
public void run()
getContentPane().add(new BackgroundImage().getImagePanel());
catch (InterruptedException e)
e.printStackTrace();
catch (InvocationTargetException e)
e.printStackTrace();
} -
[SOLVED] KDEmod problem after Xorg Update
Hi!
Before explain my problem, I have to say that my english isn't perfect, sorry ^_^ (i'm spanish).
Ok, let's go:
One week ago, I updated my system and Xorg was updated too, since that update my KDEmod restarts always. I read the kdm.log, and it says something about the RGBPath, then I went to my xorg.conf and comment that line.
After that, I could start my X with Gnome, but when I tried with KDEMod, it says "the module Record doesn't exist", I was searching about this module, and I saw that in xorg.conf there was a line that load this module. I also comment it too.
Now, when I try to start KDE, it loads, and when in the splashscreen appears the "K", if I click the mouse then appears my Desktop for 3 or 4 seconds, after that, KDE restarts and splashscreen loads another time, so i'm in a bucle. BTW, if i don't click the mouse, it also restarts after 7 or 8 seconds that K is "load", and begin the bucle loading kde with the splash screen too.
kdm.log doesn't return an error.
What do you think about that?.
Thanks!
EDIT:
I forgot something: another error that I had is with "libGLcore", it said: "libGLcore.177" and "libGLcore.180" have the same name but different file type (or something like that). I fix with the re-install of the manual nvidia drivers.]
=================================================================
FIX
writte in konsole:
nvidia-xconfig
THen add to xorg.conf
Section "ServerFlags"
OPtion "AutoAddDevices" "False"
EndSection
And then, I fix it.
=================================================================
Last edited by d4rkb1t (2008-12-09 20:13:47)here you have
X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.27-ARCH x86_64
Current Operating System: Linux nin 2.6.27-ARCH #1 SMP PREEMPT Fri Nov 28 10:35:44 UTC 2008 x86_64
Build Date: 06 December 2008 11:11:31AM
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 8 17:34:12 2008
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) | |-->Monitor "Monitor0"
(**) | |-->Device "Card0"
(**) |-->Input Device "Touchpad"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Automatically adding devices
(==) Automatically enabling devices
(==) Including the default font path /usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/TTF,/usr/share/fonts/Type1.
(**) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/TTF,
/usr/share/fonts/Type1,
/usr/share/fonts/misc,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/TTF,
/usr/share/fonts/Type1
(**) ModulePath set to "/usr/lib/xorg/modules"
(**) Extension "Composite" is enabled
(WW) AllowEmptyInput is on, devices using drivers 'kbd' or 'mouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) No APM support in BIOS or kernel
(II) Loader magic: 0x7b54e0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 4.1
X.Org XInput driver : 2.1
X.Org Server Extension : 1.1
X.Org Font Renderer : 0.6
(II) Loader running on linux
(++) using VT number 7
(--) PCI:*(0@1:0:0) nVidia Corporation GeForce 8600M GT rev 161, Mem @ 0xfd000000/16777216, 0xe0000000/268435456, 0xfa000000/33554432, I/O @ 0x0000ef00/128, BIOS @ 0x????????/131072
(II) System resource ranges:
[0] -1 0 0xffffffff - 0xffffffff (0x1) MX[b]
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
[5] -1 0 0x00000000 - 0x00000000 (0x1) IX[b]
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded by default.
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "xtrap"
(II) Loading /usr/lib/xorg/modules/extensions//libxtrap.so
(II) Module xtrap: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension DEC-XTRAP
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: X.Org Server Extension
(II) NVIDIA GLX Module 180.06 Sat Nov 8 18:16:47 PST 2008
(II) Loading extension GLX
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "freetype"
(II) Loading /usr/lib/xorg/modules/fonts//libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
compiled for 1.5.3, module version = 2.1.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.6
(II) Loading font FreeType
(II) LoadModule: "synaptics"
(II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
(II) Module synaptics: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 0.99.1
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.1
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension XFree86-DRI
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: X.Org Video Driver
(II) LoadModule: "synaptics"
(II) Reloading /usr/lib/xorg/modules/input//synaptics_drv.so
(II) NVIDIA dlloader X Driver 180.06 Sat Nov 8 17:56:34 PST 2008
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib/xorg/modules//libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) resource ranges after probing:
[0] -1 0 0xffffffff - 0xffffffff (0x1) MX[b]
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
[5] -1 0 0x00000000 - 0x00000000 (0x1) IX[b]
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "True"
(**) NVIDIA(0): Option "RenderAccel" "True"
(**) NVIDIA(0): Option "TripleBuffer" "True"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "True"
(**) NVIDIA(0): Option "OnDemandVBlankInterrupts" "True"
(**) NVIDIA(0): Option "PixmapCacheSize" "300000"
(**) NVIDIA(0): Enabling RENDER acceleration
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0): enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce 8600M GT (G84) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 524288 kBytes
(--) NVIDIA(0): VideoBIOS: 60.84.5e.00.08
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 8600M GT at PCI:1:0:0:
(--) NVIDIA(0): Seiko (DFP-0)
(--) NVIDIA(0): Seiko (DFP-0): 330.0 MHz maximum pixel clock
(--) NVIDIA(0): Seiko (DFP-0): Internal Dual Link LVDS
(II) NVIDIA(0): Assigned Display Device: DFP-0
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0): "1280x800"
(II) NVIDIA(0): Virtual screen size determined to be 1280 x 800
(--) NVIDIA(0): DPI set to (98, 96); computed from "UseEdidDpi" X config
(--) NVIDIA(0): option
(**) NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC? No, I don't.
(II) resource ranges after preInit:
[0] -1 0 0xffffffff - 0xffffffff (0x1) MX[b]
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
[4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
[5] -1 0 0x00000000 - 0x00000000 (0x1) IX[b]
(II) NVIDIA(0): Initialized GPU GART.
(II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
(II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
(II) NVIDIA(0): configuration option may not be set correctly. When the
(II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
(II) NVIDIA(0): try to use it to receive ACPI event notifications. For
(II) NVIDIA(0): details, please see the "ConnectToAcpid" and
(II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
(II) NVIDIA(0): Config Options in the README.
(II) NVIDIA(0): ACPI display change hotkey events enabled: the X server is new
(II) NVIDIA(0): enough to receive ACPI display change hotkey events.
(II) NVIDIA(0): Setting mode "1280x800"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(==) NVIDIA(0): Disabling shared memory pixmaps
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(**) NVIDIA(0): Option "BackingStore" "True"
(**) NVIDIA(0): Backing store enabled
(==) NVIDIA(0): Silken mouse enabled
(II) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(WW) NVIDIA(0): Option "AGPFastWrite" is not used
(WW) NVIDIA(0): Option "EnablePageFlip" is not used
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(II) Initializing extension GLX
(II) Synaptics touchpad driver version 0.99.1
Touchpad no synaptics event device found
(**) Option "Device" "/dev/input/mouse0"
(**) Option "SHMConfig" "on"
(**) Option "LeftEdge" "1700"
(**) Option "RightEdge" "5300"
(**) Option "TopEdge" "1700"
(**) Option "BottomEdge" "4200"
(**) Option "FingerLow" "15"
(**) Option "FingerHigh" "40"
(**) Option "MaxTapTime" "180"
(**) Option "MaxTapMove" "220"
(**) Option "VertScrollDelta" "100"
Query no Synaptics: 6003C8
(--) Touchpad: no supported touchpad found
(**) Option "SendCoreEvents"
(**) Touchpad: always reports core events
(II) evaluating device (Touchpad)
(II) XINPUT: Adding extended input device "Touchpad" (type: TOUCHPAD)
Touchpad no synaptics event device found
Query no Synaptics: 6003C8
(--) Touchpad: no supported touchpad found
(II) config/hal: Adding input device PS/2 Generic Mouse
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
compiled for 1.5.2, module version = 2.0.7
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.1
(**) PS/2 Generic Mouse: always reports core events
(**) PS/2 Generic Mouse: Device: "/dev/input/event12"
(II) PS/2 Generic Mouse: Found x and y relative axes
(II) PS/2 Generic Mouse: Found mouse buttons
(II) PS/2 Generic Mouse: Configuring as mouse
(II) XINPUT: Adding extended input device "PS/2 Generic Mouse" (type: MOUSE)
(II) config/hal: Adding input device Logitech USB Receiver
(**) Logitech USB Receiver: always reports core events
(**) Logitech USB Receiver: Device: "/dev/input/event11"
(II) Logitech USB Receiver: Found x and y relative axes
(II) Logitech USB Receiver: Found mouse buttons
(II) Logitech USB Receiver: Configuring as mouse
(II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: MOUSE)
(II) config/hal: Adding input device PS/2 Generic Mouse
(**) PS/2 Generic Mouse: always reports core events
(**) PS/2 Generic Mouse: Device: "/dev/input/event9"
(II) PS/2 Generic Mouse: Found x and y relative axes
(II) PS/2 Generic Mouse: Found mouse buttons
(II) PS/2 Generic Mouse: Configuring as mouse
(II) XINPUT: Adding extended input device "PS/2 Generic Mouse" (type: MOUSE)
(II) config/hal: Adding input device Broadcom Corp
(**) Broadcom Corp: always reports core events
(**) Broadcom Corp: Device: "/dev/input/event8"
(II) Broadcom Corp: Found x and y relative axes
(II) Broadcom Corp: Found mouse buttons
(II) Broadcom Corp: Configuring as mouse
(II) XINPUT: Adding extended input device "Broadcom Corp" (type: MOUSE)
(II) config/hal: Adding input device Broadcom Corp
(**) Broadcom Corp: always reports core events
(**) Broadcom Corp: Device: "/dev/input/event7"
(II) Broadcom Corp: Found keys
(II) Broadcom Corp: Configuring as keyboard
(II) XINPUT: Adding extended input device "Broadcom Corp" (type: KEYBOARD)
(**) Option "xkb_rules" "base"
(**) Broadcom Corp: xkb_rules: "base"
(**) Option "xkb_model" "evdev"
(**) Broadcom Corp: xkb_model: "evdev"
(**) Option "xkb_layout" "us"
(**) Broadcom Corp: xkb_layout: "us"
(II) config/hal: Adding input device Video Bus
(**) Video Bus: always reports core events
(**) Video Bus: Device: "/dev/input/event5"
(II) Video Bus: Found keys
(II) Video Bus: Configuring as keyboard
(II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
(**) Option "xkb_rules" "base"
(**) Video Bus: xkb_rules: "base"
(**) Option "xkb_model" "evdev"
(**) Video Bus: xkb_model: "evdev"
(**) Option "xkb_layout" "us"
(**) Video Bus: xkb_layout: "us"
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event1"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "base"
(**) AT Translated Set 2 keyboard: xkb_rules: "base"
(**) Option "xkb_model" "evdev"
(**) AT Translated Set 2 keyboard: xkb_model: "evdev"
(**) Option "xkb_layout" "us"
(**) AT Translated Set 2 keyboard: xkb_layout: "us"
(II) config/hal: Adding input device Macintosh mouse button emulation
(**) Macintosh mouse button emulation: always reports core events
(**) Macintosh mouse button emulation: Device: "/dev/input/event0"
(II) Macintosh mouse button emulation: Found x and y relative axes
(II) Macintosh mouse button emulation: Found mouse buttons
(II) Macintosh mouse button emulation: Configuring as mouse
(II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE) -
Java Web Start and SplashScreen
Hi,
I have a jar which when run from the command line with:
java -jar myApp.jar
will run and display a SplashScreen as if I had used the command line
java -Splash:SplashImage.png myApp.
The problem I have is when this jar is run from Java Web Start, the splash screen is not displayed. I get the following error:
Java Web Start 1.6.0_03
Using JRE version 1.6.0_03 Java HotSpot(TM) Client VM
java.lang.Exception: Splash Screen not initialised at com.nunetic.myApp.client.view.Splash.<init>(Splash.java:41)
Splash.java is quite simple.
public class Splash
private final SplashScreen splash = SplashScreen.getSplashScreen();
public Splash() throws Exception
if (splash == null)
throw new Exception("Splash Screen not initialised");
init();
}It would appear that there is a bug in the JDK relating to this.
Bug ID: 6510416
Votes 13
Synopsis Need a support of native SplashScreen in Java WebStart
Category javawebstart:general
Reported Against
Release Fixed
State In progress, request for enhancement
Related Bugs 6481004
Submit Date 06-JAN-2007
Description
In JDK 6.0 AWT team introduced a new SplashScreen API (see java.awt.SplashScreen class for details). User can specify a SplashScreen image for application either as a command line option or in a manifest file inside JAR archive. However, both ways don't work if the application is launched from Java WebStart.
If this feature is important to anyone else out there, I suggest that you vote to have it fixed.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6510416
Regards
Chris -
Interesting problem for all students and programmers Have a look!
Hello. This is a very interesting problem for all programmers and students. I have my spalsh screen class which displays a splash when run from the main method in the same class. However when run from another class( in my case from my login class, when user name and password is validated) I create an instance of the class and show it. But the image in the splash is not shown. Only a squared white background is visible!!!.
I am sending the two classes
Can u tell me why and propose a solution. Thanks.
import java.awt.*;
import javax.swing.*;
public class SplashScreen extends JWindow {
private int duration;
public SplashScreen(int d) {
duration = d;
// A simple little method to show a title screen in the center
// of the screen for the amount of time given in the constructor
public void showSplash() {
JPanel content = (JPanel)getContentPane();
content.setBackground(Color.white);
// Set the window's bounds, centering the window
int width = 300;
int height =400;
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
int x = (screen.width-width)/2;
int y = (screen.height-height)/2;
setBounds(x,y,width,height);
// Build the splash screen
JLabel label = new JLabel(new ImageIcon("logo2.gif"));
JLabel copyrt = new JLabel
("Copyright 2004, Timetabler 2004", JLabel.CENTER);
copyrt.setFont(new Font("Sans-Serif", Font.BOLD, 16));
content.add(label, BorderLayout.CENTER);
content.add(copyrt, BorderLayout.SOUTH);
Color oraRed = new Color(100, 50, 80, 120);
content.setBorder(BorderFactory.createLineBorder(oraRed, 10));
// Display it
setVisible(true);
// Wait a little while, maybe while loading resources
try { Thread.sleep(duration); } catch (Exception e) {}
setVisible(false);
public void showSplashAndExit() {
showSplash();
// System.exit(0);
// CLASS CALLING THE SPLASH
import java.awt.*;
import java.awt.event.*;
import javax.swing.JMenu;
import javax.swing.*;
import java.applet.*;
import java.applet.AudioClip;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.URL;
import java.net.MalformedURLException;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.net.URL;
public class login extends JDialog
String username;
String password;
JTextField text1;
JPasswordField text2;
login()
//super("Login To TIMETABLER");
text1=new JTextField(10);
text2 = new JPasswordField(10);
text2.setEchoChar('*');
JLabel label1=new JLabel("Username");
JLabel label2=new JLabel("Password");
label1.setFont(new Font("Garamond",Font.BOLD,16));
label2.setFont(new Font("Garamond",Font.BOLD,16));
JButton ok=new JButton(" O K ");
ok.setActionCommand("ok");
ok.setOpaque(false);
ok.setFont(new Font("Garamond",Font.BOLD,14));
ok.setBackground(SystemColor.controlHighlight);
ok.setForeground(SystemColor.infoText);
ok.addActionListener(new ActionListener (){
public void actionPerformed(ActionEvent e)
System.out.println("ddddd");
//validatedata();
ReadText mytext1=new ReadText();
ReadText2 mytext2=new ReadText2();
String value1=mytext1.returnpassword();
String value2=mytext2.returnpassword();
String user=text1.getText();
String pass=text2.getText();
System.out.println("->"+value1);
System.out.println("->"+value2);
System.out.println("->"+user);
System.out.println("->"+pass);
if ( (user.equals(value1)) && (pass.equals(value2)) )
System.out.println("->here");
// setVisible(false);
// mainpage m=new mainpage();
// m.setDefaultLookAndFeelDecorated(true);
// m.callsplash();
/// m.setSize(640,640);
// m.show();
//m.setVisible(true);
SplashScreen splash = new SplashScreen(5000);
// Normally, we'd call splash.showSplash() and get on with the program.
// But, since this is only a test...
splash.showSplashAndExit();
else
{ text1.setText("");
text2.setText("");
//JOptionPane.MessageDialog(null,
// "Your Password is Incorrect"
JButton cancel=new JButton(" C A N C E L ");
cancel.setActionCommand("cancel");
cancel.setOpaque(false);
cancel.setFont(new Font("Garamond",Font.BOLD,14));
cancel.setBackground(SystemColor.controlHighlight);
cancel.setForeground(SystemColor.infoText);
cancel.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
dispose();
System.exit(0);
JPanel pan1=new JPanel(new GridLayout(2,1,20,20));
JPanel pan2=new JPanel(new GridLayout(2,1,20,20));
JPanel pan3=new JPanel(new FlowLayout(FlowLayout.CENTER,20,20));
pan1.setOpaque(false);
pan2.setOpaque(false);
pan3.setOpaque(false);
pan1.add(label1);
pan1.add(label2);
pan2.add(text1);
pan2.add(text2);
pan3.add(ok);
pan3.add(cancel);
JPanel_Background main=new JPanel_Background();
JPanel mainpanel=new JPanel(new BorderLayout(25,25));
mainpanel.setOpaque(false);
// mainpanel.setBorder(new BorderLayout(25,25));
mainpanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder
("Login To Timetabler Vision"),BorderFactory.createEmptyBorder(10,20,10,20)));
mainpanel.add("West",pan1);
mainpanel.add("Center",pan2);
mainpanel.add("South",pan3);
main.add(mainpanel);
getContentPane().add(main);
void validatedata()
ReadText mytext1=new ReadText();
ReadText2 mytext2=new ReadText2();
String value1=mytext1.returnpassword();
String value2=mytext2.returnpassword();
String user=text1.getText();
String pass=text2.getText();
System.out.println("->"+value1);
System.out.println("->"+value2);
System.out.println("->"+user);
System.out.println("->"+pass);
if ( (user.equals(value1)) && (pass.equals(value2)) )
SplashScreen splash = new SplashScreen(5000);
splash.showSplashAndExit();
dispose();
else
{ text1.setText("");
text2.setText("");
//JOptionPane.MessageDialog(null,
// "Your Password is Incorrect"
public void callsplash()
{SplashScreen splash= new SplashScreen(1500);
splash.showSplashAndExit();
public static void main(String args[])
{ login m=new login();
Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
int screenPositionX=(int)(screenSize.width/2-390/2);
int screenPositionY=(int)(screenSize.height/2-260/2);
m.setLocation(screenPositionX, screenPositionY);
//m.setResizable(false);
m.setSize(600,500);
m.setSize(390,260);
m.setVisible(true);Hi Luis,
Use tcode XK99 for vendor mass change, select the Fax no field. You have to take note that this changes will be only 1 fax number for all vendors.
Else you have to use BAPI for mass change.
regards,
maia -
Forms 9i FRM-40738 Hyperlink Bean problem
Hello,
I've this error coming please help me.
I needed to see, how a bean is integerated in Forms 9i. I was
searching through the example at metalink and it gave me a
paper
"How to Integerate HyplerLink Bean in forms 9i", what steps
i followed are given in that paper.
Now when i run the form, it gaves me the error
FRM-40738 Argument to Built in SET_CUSTOM_PROPERTY CANNOT BE NULL.
the steps i followed are
1- I created a form called hyperlink.fmb
2- Then i created a ON LOGON trigger at this form
3- I opened the canvas and draw a Bean Area on it
4- Then i renamed that Item to Hyperlink by Property Plattelete
5- I named the canvas CONTROL
6- Then at module level i created a TRIGGER WHEN_NEW_FORM_INSTANCE and put following PL.SQL code in it
DECLARE
hHyperlink ITEM := FIND_ITEM('CONTROL.HYPERLINK');
BEGIN
FBEAN.Register_Bean( hHyperlink, 1, 'oracle.forms.demos.beans.Hyperlink');
FBean.Invoke( hHyperlink, 1, 'setURL', 'http://otn.oracle.com/products/forms');
FBean.Invoke( hHyperlink, 1, 'setLabel', 'Forms on OTN');
FBean.Enable_Event( hHyperlink, 1, 'actionListener', true );
END;
7-Then i created a Trigger at CONTROL.HYPERLINK, that was
WHEN_CUSTOM_ITEM_EVENT and put the following code in it
DECLARE
vcEventData varchar2(256);
BEGIN
vcEventData := Fbean.Invoke_Char('CONTROL.HYPERLINK', 1, 'getURL');
WEB.SHOW_DOCUMENT(vcEventData, '_blank');
END;
Then did the following steps of the locating the bean by the
JAR method.
Method 1 - The JAR Method:
a. Locate the hyperlink.jar file located in D:\9iDS\forms90\demos\hyperlink\classes.
b. Move the hyperlink.jar file to 9iDS_HOME\forms90\java.
c. Find the formsweb.cfg file in 9iDS_HOME\forms90\server.
d. Add the following configuration section to the file:
[hyperlink]
archive_jini=f90all_jinit.jar,hyperlink.jar
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
The archive_jini parameter pointing to hyperlink.jar is the most important part
of this configuration.
e. Now go into Form Builder and accomplish the following:
Edit->Preferences->Runtime Tab
Add the config parameter to your "Application Server URL". It should look
something like this:
http://machine.domain:port/forms90/f90servlet?config=hyperlink
Then i compiled it and ran it, Now it gives this error
FRM-40738 Argument 1 to built in SET_CUSTOM_PROPERTY cannot
be null.
P.S I have set the implementation class property but, still i don't know
whats the problem, and where i am making mistake, please help me.
Please any help will be appreaciated.
Sincerely
Tensed BeginnerHello Frank,
Thanks for your reply back to me. Frank, i am
currently
new to Forms 9i even the Oracle world. In my compan
basically i was hired a J2EE resource, but they put
me
on oracle, and i feel like, i am not performing to
the level i should.
Can you please tell me, how should i verify that, it
is not returning
a Null? Can you tell me the statement Syntax, yea my
BLock
name is CONTROL and Item name is HYPLERLINk, please
do
tell me how to verfiy it, i will be highly obliged.
Sincerely,
Ben ( Tensed Beginner )
Hello Frank,
Thanks for your reply back to me. Frank, i am
currently
new to Forms 9i even the Oracle world. In my compan
basically i was hired a J2EE resource, but they put
me
on oracle, and i feel like, i am not performing to
the level i should.
Can you please tell me, how should i verify that, it
is not returning
a Null? Can you tell me the statement Syntax, yea my
BLock
name is CONTROL and Item name is HYPLERLINk, please
do
tell me how to verfiy it, i will be highly obliged.
Sincerely,
Ben ( Tensed Beginner )Hi Ben
Please check the path that u have given. Think the mistake is in the path.
FBEAN.Register_Bean( hHyperlink, 1, 'oracle.forms.demos.beans.Hyperlink');
If the problem still persist will let u know how to resoleve it.
feel free to get in touch....
Regards
Aravind -
KDe 4.9 and pacman problems
because my messages to the ML seems to disappearI will ask here.
Hello,
Today I upgraded my KDe 4.8.4 to KDE 4.9.
I did all the steps according to the manual.
Everything went without any problems.
But when I start up KDE with startx I see the splashscreen and after that the screen went white.
KDE 4.8 works fine.
I have a Intel graphical card.
Second problem:
When I do pacman -Syu I see a lot of messages that the installed versions of kde are newer then the versions in [extra]
Anyone who can help me solve this two problems?
Roelofhi, about your second problem, seems like if you has disable [kde-unstable] repo after your install, is the case? (you can make pacman -Syy to force update of all repo, just in case )
about your first problem, white screen in startup KDE, is the same with kdm? I have nvidia card with nouveau drivers and all works fine, so i can't test like you :s -
Help - Photoshop serial number problems after Premiere demo- AIR ??
Hi- Ive been a licensed owner of Photoshop since 1997. In 2003, because I was a teacher on the east coast for an accredited school on the west coast that had students in my area, I bought CS1 for my (2) new identical XP computers. In 2007, I bought (2) new indentical Windows Vista computers and installed CS1 on one of them and used it until the C drive (Seagate series 7200.1) crashed in May of 2010. I then re-installed CS1 onto that Vista machine and used it with no problems until January of 2011 when I installed a demo of Adobe Premiere video editing software. Shortly after installing the Premiere demo software, I got a pop up that said to "Re-activate Photoshop".
To this day, I have not been able to use Photoshop. The install and activation went as expected, GoLive works fine, but whenever I try to start Photoshop, I get a popup error that says "Could not complete your request because of missing or invalid personalization information." I tried uninstall-reinstall but Photoshop wont open and I still get that error. I also noticed that the serial number area of the Photoshop splashscreen is scrambled, meaning instead of having the serial number and the name of my computer that is suppose to be there, it has a sting of strange characters like this: Home.>:::Computer"""@%#>]
I tried numerous call to Adobe, they said try this and that, I did all those things and yet my Photoshop still does not work and the serial number is scrambled. The Adobe support people also tell me "CS1 is not approved for Vista so we don't support install problems". CS1 installs fine- always has, but now there's something wrong with my serial number-to which they basically replied: Upgrade to CS5, OR post on the forum. I don't want CS5, I just want my Photoshop software back according to the license agreement. So I am here asking if anyone has any suggestions or insights.
One thing I noticed during one of the re-insatll attempts is that even though I unisntalled the Premier demo, there was something left behind in my Vista programs list. It is called "AIR". I have tried to uninsatll it numerous times, but it wont uninstall.
Any suggestions or insights?
Thank you,
SteveMmh, sounds like Adobe AIR has meddled with your local port/ socket configuration. That would also explain the jibberish in your serial input field - it cannot properly connect to the activation service and only spits out the URI path. Have you tried booting in safe mode sans network support? This may allow to get rid of Adobe AIR... Otehr than that the opposite may work - download the manual AIR installer, run it, let AIR run it's update and then try to uninstall it from there.
Mylenium -
Photoshop CS4 has a problem loading
I don't know what happened, but today when I launched Photoshop it had a problem loading on the splashscreen when it said "Building TWAIN Menu Items". I don't know what happened, it worked perfectly fine yesterday, but today it just kept getting stuck, I'm running on Vista 64-Bit Home Premium if that matters. There was an automatic Windows update last night, so I though it was that, but when I did System Restore and when I tried un-installing the updates it still didn't work. Any help would be appreciated!
Twain is not supported in 64 bit. Maybe there is a 32 bit driver in the wrong 64 bit folder?
Here, I found this to help you.
http://kb2.adobe.com/cps/408/kb408849.html -
SplashScreen class that works in Linux but not Windows?
OK so I wrote this splashscreen class:
public class SplashScreen extends JWindow {
public SplashScreen(String imageFile, int msecs) {
Image imgData = getToolkit().getImage(getClass().getResource(imageFile));
System.out.println(imageFile);
// Create label with image on it
ImageIcon image = new ImageIcon(imgData);
// Create label with image as content
JLabel imageLabel = new JLabel(image);
// Add label to content pane
getContentPane().add(imageLabel, BorderLayout.CENTER);
// Resize window to match image
pack();
// Get the size of the screen and the size of the image
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension imageSize = imageLabel.getPreferredSize();
System.out.println(String.format("%d %d", imageSize.width, imageSize.height));
// Center window on screen
this.setLocation(screenSize.width/2 - (imageSize.width/2), screenSize.height/2 - (imageSize.height/2));
// Runnable that handles closing down the screen
final SplashScreen parent = this;
final Runnable closeThread = new Runnable() {
public void run() {
parent.setVisible(false);
parent.dispose();
// Thread that simple sleeps and then calls the closer
final int waitTime = msecs;
Thread waitThread = new Thread(new Runnable() {
public void run() {
try {
Thread.sleep(waitTime);
SwingUtilities.invokeAndWait(closeThread);
} catch (Exception e) {
e.printStackTrace();
// Display the screen
setVisible(true);
// Wait and close
waitThread.start();
}Which I call thusly:
gui.SplashScreen sc = new gui.SplashScreen("/images/splashscreen.png", 2000);Obviously this is supposed to display the given image on the screen for 2 seconds before disappearing. My problem is that it works exactly like you'd expect in Linux, but when I run it in windows the image doesn't appear. The app loads and runs fine otherwise. I put some print outs in and verified that it looks like it's finding the image correctly, but then it just doesn't display... I'm stumped, does anyone have any clue why this would be a problem on different platforms?Seriously? I tried it on two different windows machines and it didn't work.... Maybe it has something to do with how netbeans is jarring stuff up.
-
Manifest method for SplashScreen in Jave 6 not working?
Okay I'm stumped.
I am still not getting the splash screen to appear (it never shows up) using Java 6's new approach of putting the splash screen image name in the manifest file.
Here is the entry from the manifest.mf file:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
Main-Class: ppo.PpoApp
Class-Path: lib/appframework-1.0.3.jar lib/swing-worker-1.1.jar
X-COMMENT: Main-Class will be added automatically by build
SplashScreen-Image: splash.png
I have also tried the following variations in place of "splash.png":
splash.jpg
splash.gif
resources\splash.jpg
resources\splash.gif
resources\splash.png
resources/splash.jpg
resources/splash.gif
resources/splash.png
I have tried starting the app from the command line with the following:
java -jar ppo.jar
and by double clicking on the jar file (MS Windows XP SP2).
I have tried starting the app from within the NetBeans IDE.
There is no hint at all of the splashscreen.
I am running JRE Java 6 update 4.
Thanks in advance.
Stu
<previously posted with no response in Java Programming--maybe it is more appropriate here>Still working on it.....
Here is the note I sent to the appframework mailing list a few minutes ago. Hopefully, I will get some ideas there.
Certainly, I can go without the Application Framework, but I would still like to know what the issue is.
More to follow....
Stu
Sent: Friday, February 08, 2008 10:11 PM
To: '[email protected]'
Subject: Splashscreen support?
Okay, I�ve read the thread, but I have been testing various alternatives for several days now.
And I know you said you have tested it, but if you have 5 minutes and you develop with NetBeans and the Java Application Framework, try this:
Open NetBeans.
Select New Project | Java | Java Desktop Application, press Next, then select Basic Application.
Now without any other changes, just go into the manifest file and add the line for the splash screen. If you accept all the default names I think the line would be:
SplashScreen-Image: desktopapplication1/resources/splash.png
Then build and run it and see if the splash screen works.
Mine doesn�t.
If I put together an application without using the Java Desktop Application/Application Framework, I have no problems with the splash screen.
Seems like a problem to me.
Thanks
Stu
Maybe you are looking for
-
I have some real odd problems with flash
Right, I have sort of had two problems with adobe flash player 10, so bare with me, I need to tell you the ‘back story’ before I reach my current issue: Back story; latest version of flash been running normally for a while until it tries to update. W
-
How to pass a string value from XL sheet cell to SQL query.
Hi, I am using SQL query in XL sheet to fetch some data. for that i am using ODBC connection. Now I want to pass a string from XL sheet Cell value in the where clause of Select statement, Please let me know how to do this. Below is My code: nge("A4")
-
About two weeks ago, my iPad Air was spontaneously signed out of Messages and FaceTime when I was using it to browse the web while on the bus, connected via Personal Hotspot on my iPhone. Since then, I haven’t been able to sign in to either Messages
-
Opening Document in Asset Library that is not a photo
Hi, I am having an issue with my asset library. When in a document library, you can click on the link to a document and it opens up the document straight from that page. However, I needed to create an asset library because we have some photos in ou
-
When i'm opening the Album App while playing music(using walkman), the next Song is being played.