Undecorated JInternalFrame becomes decorated by itself.

Hi,
I’m facing a problem with JInternalFrame implementation. I have made the JInternalFrame undecorated, so that the title bar and border of the JInternalFrame gets removed. The problem occurs in the following scenario.
*1)     Execute the program in a Windows 7 machine.*
*•     At this point the JInternalFrame remains undecorated.*
*2)     Access the Windows 7 machine using remote desktop sharing from another machine.*
*•     Now the title bar and border of the internal frame becomes visible.*
This issue occurs only in Windows 7 machine, and not in Windows XP. You can access the Windows 7 machine using remote desktop sharing from another Windows 7 machine or Windows XP machine.
Also if you access the machine using remote desktop sharing first, and then execute the program, the JInternalFrame remains undecorated.
Steps to reproduce
Step 1: Execute the application in a Windows 7 machine.
Step 2: Access the Windows 7 machine using remote desktop sharing from another Windows 7 or Windows XP machine.
Step 3: Check the GUI of the application
Result :- The title bar and border of the undecorated JInternalFrame becomes visible.
If anyone has faced this issue or if anyone has a solution for this issue, kindly share your thoughts.
A sample code using which you can reproduce this issue is given below.
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of Oracle or the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import javax.swing.JInternalFrame;
import javax.swing.JDesktopPane;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JMenuBar;
import javax.swing.JFrame;
import javax.swing.KeyStroke;
import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
import javax.swing.plaf.basic.BasicInternalFrameUI;
import java.awt.event.*;
import java.awt.*;
* InternalFrameDemo.java requires:
* MyInternalFrame.java
public class InternalFrameDemo extends JFrame
implements ActionListener {
JDesktopPane desktop;
public InternalFrameDemo() {
super("InternalFrameDemo");
//Make the big window be indented 50 pixels from each edge
//of the screen.
int inset = 50;
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(inset, inset,
screenSize.width - inset*2,
screenSize.height - inset*2);
//Set up the GUI.
desktop = new JDesktopPane(); //a specialized layered pane
createFrame(); //create first "window"
setContentPane(desktop);
setJMenuBar(createMenuBar());
//Make dragging a little faster but perhaps uglier.
desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
protected JMenuBar createMenuBar() {
JMenuBar menuBar = new JMenuBar();
//Set up the lone menu.
JMenu menu = new JMenu("Document");
menu.setMnemonic(KeyEvent.VK_D);
menuBar.add(menu);
//Set up the first menu item.
JMenuItem menuItem = new JMenuItem("New");
menuItem.setMnemonic(KeyEvent.VK_N);
menuItem.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_N, ActionEvent.ALT_MASK));
menuItem.setActionCommand("new");
menuItem.addActionListener(this);
menu.add(menuItem);
//Set up the second menu item.
menuItem = new JMenuItem("Quit");
menuItem.setMnemonic(KeyEvent.VK_Q);
menuItem.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_Q, ActionEvent.ALT_MASK));
menuItem.setActionCommand("quit");
menuItem.addActionListener(this);
menu.add(menuItem);
return menuBar;
//React to menu selections.
public void actionPerformed(ActionEvent e) {
if ("new".equals(e.getActionCommand())) { //new
createFrame();
} else { //quit
quit();
//Create a new internal frame.
protected void createFrame() {
MyInternalFrame frame = new MyInternalFrame();
frame.setVisible(true); //necessary as of 1.3
desktop.add(frame);
try {
frame.setSelected(true);
} catch (java.beans.PropertyVetoException e) {}
//Quit the application.
protected void quit() {
System.exit(0);
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
private static void createAndShowGUI() {
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
InternalFrameDemo frame = new InternalFrameDemo();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Display the window.
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
/* Used by InternalFrameDemo.java. */
@SuppressWarnings("serial")
class MyInternalFrame extends JInternalFrame {
static int openFrameCount = 0;
static final int xOffset = 30, yOffset = 30;
public MyInternalFrame() {
super("Document #" + (++openFrameCount),
true, //resizable
true, //closable
true, //maximizable
true);//iconifiable
//...Create the GUI and put it in the window...
//...Then set the window size or call pack...
setSize(300,300);
// Undecorating the internal frame
BasicInternalFrameTitlePane titlePane =
(BasicInternalFrameTitlePane) ((BasicInternalFrameUI) this.getUI()).
getNorthPane();
this.remove(titlePane);
this.setBorder(null);
//Set the window's location.
setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
}

Thanks a lot for that lead Walter.
Actually when I tried to override updateUI(), I got a NullPoinerException. Instead of that, I tried overriding the paintComponent() method, did the undecoration part in that method and, and called super.paintComponent(g) inside the method. Then the issue was resolved.
Once again, thanks for the quick reply.

Similar Messages

  • Solaris server hostname become unknown

    Hi
    is it possible for a server to have its hostname become 'unknown' by itself? Prior to this happening, no one has login to make any changes to the configuration.
    Cheers

    Like you mentioned, the /etc/hostname contains a hostname and the /etc/hosts contains the ip address.
    The hostname was changed by itself without any one manually changing it. is this possible? We did not perform any reboots and the only cron job on the system was to run few hours later.
    It was only after we logged in that we found that the hostname was 'unknown'.
    However, thanks for the info for changing the hostname. Its should be helpful rather than performing a restart.

  • Adding a button to a JInternalFrame titlebar

    hi ,
    i was looking for a way to add an additional button to the titlbar of my JInternalFrame , i found some very useful codes here but i still got a little problem , after i added the new button the title of my JInternalFrame becomes "..."
    i would like to hear any suggestion you guys have ,
    here is my code :
    import javax.swing.*;
    import javax.swing.plaf.basic.BasicInternalFrameUI;
    import javax.swing.plaf.metal.MetalInternalFrameTitlePane;
    import java.awt.*;
    public class InternalFrameTest extends JFrame{
        public InternalFrameTest() {
            super();
            JInternalFrame jInternalFrame = new JInternalFrame("InternalFrameTest",true,true,true,true);
            myTitleBar(jInternalFrame);
            jInternalFrame.setSize(400,400);
            jInternalFrame.setVisible(true);
            JDesktopPane desktop = new JDesktopPane();
            desktop.add(jInternalFrame);
            getContentPane().add(desktop);
            setSize(500, 500);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setLocationRelativeTo(null);
            setVisible(true);
        private void myTitleBar(JInternalFrame internalFrame){
            BasicInternalFrameUI basicInternalFrameUI = (BasicInternalFrameUI)internalFrame.getUI();
            MetalInternalFrameTitlePane northPane = (MetalInternalFrameTitlePane)basicInternalFrameUI.getNorthPane();
            JButton iconifyButton = null;
            JButton maximizeButton = null;
            JButton closeButton = null;
            Component[] components = northPane.getComponents();
            for( int i=0; i < components.length; i++ ){
                if( components[i] instanceof JButton ){
                    if( i == 0 ){
                         iconifyButton= (JButton)components;
    }else if( i == 1 ){
    maximizeButton= (JButton)components[i];
    }else{
    closeButton= (JButton)components[i];
    northPane.remove( components[i] );
    //create the additional button
    JButton additionalButton = new JButton("+");
    additionalButton.setFont(new Font("Arial",Font.BOLD,9));
    additionalButton.setPreferredSize(new Dimension(14,14));
    additionalButton.setMargin(new Insets(0, 0, 0, 0));
    //create a new buttons panel
    JPanel buttonsPanel = new JPanel();
    buttonsPanel.setOpaque(false);
    buttonsPanel.setMaximumSize(new Dimension(-1, 14));
    //adding the buttons to the buttons panel
    buttonsPanel.add(additionalButton);
    buttonsPanel.add(iconifyButton);
    buttonsPanel.add(maximizeButton);
    buttonsPanel.add(closeButton);
    //adding the panel to the north pane of the internal frame
    northPane.setLayout(new BorderLayout());
    northPane.add(buttonsPanel,BorderLayout.EAST);
    public static void main(String[] args) {
    new InternalFrameTest();
    thanks in advance ,
    oz

    In general, it is very bad practice to access internal structures of UI delegates. Every time you find yourself casting getUI() result to a specific class and accessing the internal components, you are digging a very nasty hole. In this case, just adding the button is not enough - the internal frame title pane has a custom layout manager that knows nothing about it.
    You will have to dig much deeper and create your own UI delegate for internal frames to handle all the cases (including theme support, rollover effects, layout and RTL). Another option is to use Substance LAF that provides an API to add custom buttons to title panes [1]. This example shows how to do this for top-level frames, but the same would work for internal frames as well.
    [1] https://substance.dev.java.net/docs/api/SetRootPaneCustomTitleButtons.html

  • JInternalFrame  with isShowing() broken?

    Hi all,
    I've confirmed (I think) that the following is true:
    When a JInternalFrame becomes completely obscured by another, isShowing (& isVisible) still returns true for child components.
    This cannot be the correct behavior, can it?
    This is a real problem for my code, whcih needs to ensure that a paint event always occurs after a specific kind of model update occurs. My code checks for wether the component is visible and then request the reapint and confirms that the paint has occurred. That is, I need some mechanism to test wether the paint will occur on a repaint. This has always worked fine for JFrmaes, buit is broken for JInternal Frames.
    Am I missing something here?
    Worst case, does anyone know of any work arounds for this problem? I've thought about overriding the desktop manager to force the setVisible flag to false when one frmae obscrues another (the hard part is putting it back!) but the complexity and performance hit of this seems unacceptable.

    OK, no responses so I wrote my own implementation that simply sets visible to false when any frame within the desktop is obscured. Turned out to be a lot of code but althgouh it looks complex, the performance is fine even w/ many windows displayed. Here's the intial bit for those interested, not perfected yet. Comments welcome and I hearby award myself back 6 points. I'll leave the other 4 open for a while in case anyone has a better solution or more info.
            desktop.setDesktopManager(new DefaultDesktopManager() {
                Rectangle lastBounds;
                public void activateFrame(JInternalFrame f) {
                    super.activateFrame(f);
                    calculateVisibility();
                public void closeFrame(JInternalFrame f) {
                    super.closeFrame(f);
                    calculateVisibility();
                public void deactivateFrame(JInternalFrame f) {
                    super.deactivateFrame(f);
                    calculateVisibility();
                public void deiconifyFrame(JInternalFrame f) {
                    super.deiconifyFrame(f);
                    calculateVisibility();
                public void iconifyFrame(JInternalFrame f) {
                    super.iconifyFrame(f);
                    calculateVisibility();
                public void maximizeFrame(JInternalFrame f) {
                    super.maximizeFrame(f);
                    calculateVisibility();
                public void minimizeFrame(JInternalFrame f) {
                    super.minimizeFrame(f);
                    calculateVisibility();
                public void openFrame(JInternalFrame f) {
                    super.openFrame(f);
                    calculateVisibility();
                public void dragFrame(JComponent f, int newX, int newY) {
                    super.dragFrame(f, newX, newY);
                    calculateVisibility();
                public void setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight) {
                    super.setBoundsForFrame(f, newX, newY, newWidth, newHeight);
                    calculateVisibility();
            desk.addComponentListener(new ComponentAdapter() {
                 public void componentResized(ComponentEvent e) {
                     calculateVisibility();
        private void calculateVisibility() {
             JInternalFrame[] frames = desk.getAllFrames();
             for (int i = 0; i < frames.length; i++) {
                 JInternalFrame frame = frames;
    if (!frame.isIcon()) {
    Component[] c = frame.getContentPane().getComponents();
    for (int j = 0; j < c.length; j++) {
    Component component = c[j];
    if (desk.getBounds().intersects(calculateBoundsInFrame(component))) {
    component.setVisible(true);
    else {
    //off desktop
    component.setVisible(false);
    for (int i = 0; i < frames.length; i++) {
    JInternalFrame frame1 = frames[i];
    if (!frame1.isIcon()) {
    for (int j = 0; j < frames.length; j++) {
    JInternalFrame frame2 = frames[j];
    if (!frame2.isIcon()) {
    //Is frame 1 in front of frame 2?
    if (desk.getIndexOf(frame1) < desk.getIndexOf(frame2)) {
    Component[] c = frame2.getContentPane().getComponents();
    for (int k = 0; k < c.length; k++) {
    Component component = c[k];
    if (frame1.getBounds().contains(calculateBoundsInFrame(component))) {
    component.setVisible(false);
    private Rectangle calculateBoundsInFrame(Component component) {
    Rectangle componentBoundsInFrame = component.getBounds();
    //This only works in the simplest case, need to recurse to JInternalFrame
    Point p1 = component.getParent().getLocation();
    Point p2 = component.getParent().getParent().getLocation();
    Point p3 = component.getParent().getParent().getParent().getLocation();
    Point p4 = component.getParent().getParent().getParent().getParent().getLocation();
    componentBoundsInFrame = new Rectangle(p1.x + p2.x + p3.x + p4.x, p1.y + p2.y + p3.y + p4.y, componentBoundsInFrame.width, componentBoundsInFrame.height);
    componentBoundsInFrame = componentBoundsInFrame.intersection(desk.getBounds());
    return componentBoundsInFrame;

  • Popup dialog restricted to parent area

    Hi
    I need a dialog to prompt the user with some data (text box, radio buttons...), but I want it to be relatively positioned to the component I used to trigger it and, most important, the dialog must be confined inside the area of my application.
    In this case I'm creating an applet, and both Popup and JDialog are "real" popups, and can be outside the area of my applet, which is not what I need. Putting a JDialog in place through positioning is not enough too, because the user may scroll the page, and I need the popup to remain in place inside the applet.
    In other words, what I need is much like a tooltip, but with more than just text.
    Any help is appreciated!
    Thanks!

    You're welcome.
    I didn't knew about JTabbedPane, but that's exactly what I need. ;-)Err... that's JOptionPane :o)
    And, by a look at the API or in the relevant [tutorial chapter|http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html#features] , you'll find out that a JOptionPane instantiated through its constructor, although it provides a reasonable dialog form, will miss a title. To show the title, you'd have to use either of the JOptionPane.showXXX() methods, or a JOPtionPane instance method createDialog(). Both ways turn out creating a regular JDialog, whose location can be dragged outside of the parent area.
    So, if the dialog title is not a requirement, you can use my suggestion straight.
    Otherwise, you'll have to consider additional coding; a quick list of suggestions:
    1) add a title manually. It may be hard to provide a title that looks exactly like a regular JDialog's title, but as a strating point you can provide your own "title-like" Border (N.B.: the default TitledBorder does definitely not look like a dialog's title).
    2) consider using JInternalFrames and dialogs. That however forces a, possibly contrieved, structuring of your UI, where your current applet's content panel should be located instead in a single JInternalFrame of a JDesktopPane, itself becoming the applet's contentPane. The dialog would then be shown via a myJOptionPane.createInternalFrame(). However, I am unsure about the modality of the internal "dialog" in this case.

  • PHP/MySQL incommunicado since upgrading OS X Server 10.4.2 - 10.4.3

    Back when 10.4 first came out and I foolishly upgraded my server right away, I spent hours trying to reconfigure PHP because Apple had monkeyed with with the configuration (since 10.3) and shipped it such that PHP/MySQL wouldn't speak out of the box. I think the trouble had something to do with the location that PHP looks for MySQL, but low level config of these services isn't really my area of expertise. Eventually I got it fixed, but it was a nightmare trying to figure out what was wrong.
    Sooo....performed the update to 10.4.3 this morning....and now if I try to bring up a php page in a web browser:
    Warning: mysql_pconnect(): Can't connect to MySQL server on '10.0.1.250' (61)...
    And that's as far as it gets. Anyone have any ideas? I would speculate that Apple may have finally addressed the issue that was preventing PHP/MySQL from working out-of-box in 10.4, but, in doing so, my workaround for that problem has now become a problem itself.
    Any advice or help would be of greatly appreciated!

    Make sure mySQL server process is started running.
    I think on some upgrades the setting for automatic start of mySQL
    servcies gets set to NO in /etc/hostconfig file

  • Saving files and sorting

    Probably a stupid question but I can't understand how to save files in Aperture (and Iphoto as well) - if after editing I want to save it in different folder with different name and in different format (for example if I edited a raw image and want to save it in jpeg). I watched all the tutorials and help and there's nothing there.
    And one more thing - how do I sort photos in projects by name, format, date of creation etc? And how do I sort events in Aperture by date? (they are automatically sorted by name)
    Sorry for stupid questions, I just started using mac and aperture.

    You're starting with a faulty assumption: that one "saves" images in Aperture.
    The heart of Aperture is that it is non-destructive. An image file, designated the "master" is imported into Aperture from your camera, a card, etc. and it resides comfortably in your Aperture library. It just sits there, waiting for you to make adjustments. It is not accessible to any other program directly, although you can direct Aperture to produce a high-quality .jpg preview that can be read by other programs.
    Any adjustments that you make -- crop, lighten, convert to black and white, etc -- are simply commands. The master is not touched in any way. What you see on the screen changes because Aperture is displaying the image modified by the commands. You can toggle between a view of the master or a view of the adjusted image. Aperture automatically saves the commands that produce the adjustments in a separate file. If you choose, you can direct Aperture to produce a separate version that contains your adjustments. I can't recall if the separate version becomes a master itself or is just a second display of the master+adjustments.
    This is radically different from programs like Capture NX, which require you to save the images in a particular format RAW, .jpg, .tiff, etc. to fix the adjustments.
    Of course, images can be exported in the traditional formats for any purpose you want.
    Aperture's advantages over a more traditional, destructive program are numerous. The only disadvantage is that your images are trapped in Aperture until you export them, which makes switching to the next great software challenging. It's worth it.
    Steve

  • Generating feedback messages on server-side vs client-side?

    Hello,
    I am maintening a client/server app (Swing client, no Web pages), basically an order processing system. The biggest part of it is to verify the conformity of orders to a set of business rules.
    As usual, some of the verification can be made early on the client-side, but most of the verification work is done on the server-side. My problem is, I don't find a very satisfactory way to generate the user feedback to be displayed to the user.
    If I generate them as Strings (or HTML Strings) on the server, where the rules are checked, this constrains the way these can be displayed on the client, and makes maintenance of the human-readable strings awkward and risky (e.g. localization, or restructuring the messages, like sorting them by severity vs by affected entity).
    If I generate them on the client, I need a class to vehicle the diagnosis form server to client, and this class and its usage tends to become awkward in itself.
    Concretely:
    The initial version generated human-readable strings on the server, which assumed the messages would be displayed as strings in a JOptionPane.
    Moreover, the logic evolved to distinguish between Info, Warning and Error messages, to be displayed in different colors of course, so the Strings evolved into HTML Strings, still generated on the server.
    Do you think this approach is safe?
    I'm afraid a simple maintenance of the strings (like, sorting the errors by severity vs by affected entity, filtering the strings,...) becomes a server-side development, which is a bit more risky (I would have to review code ownership policies, VCS and code-sharing policies,... to let less experienced staff maintain the darn error Strings).
    Moreover, if the client app evolve to display the errors in complex widgets (colors in a tree/table, with tooltips), the server-side generated HTML strings would be constraining : coloring or tooltipping Tree nodes would now mean parsing the String to extract the "error level" or the "affected entity", which is quite inelegant and inflexible.
    My current idea was then to use a collecting parameter to collect validation messages on the server, and traverse them on the client:
    I designed a naive ErrorList class, with methods such as addInfo(String), addWarning(String), addError(Strin), and the corresponding getErrors() and hasErrors()/hasWarnings() methods. I can then generate the Strings (or whatever widget fits better, such as a table) on the client side. Moreover, I can add the client-side messages to the bag...
    All nice and well, but the customer requested that the error messages be formatted such as "The profile <profile name in bold> does not allow you to order service <service name in italics>".
    To format that on the client, my ErrorList class should evolve so that for a given message, I know that the error is of type ("incompatibility between profile and service", that the service is X and the prodile is Y).
    That forces me to add in some API (shared by the client and server) the list of error types, and the data each error type requires.
    I can evolve my ErrorList API to break up messages into a DTO giving (type, affected entity, arg1, arg2,...), but anyway the server and client have to agree on what is arg1, etc... which is a hidden coupling.
    Do you use and recommend such an approach for server-to-client feedback: a collecting parameter in which the server puts the "errors", and that the client traverses to display the messages)? In particuler, isn't the coupling hard to maintain?
    Thansk in advance,
    J.

    Presumably you are not over-engineering in that you
    know that localization is a problem rather than that
    in all possible worlds in might be.I appreciate your delicate questioning... I definitely have read much ruder ways to say YAGNI to a poster...
    I do know that the customer will knit-pick to reword and reformat the messages. But I won't need to translate the messages to other locales. In that regard, I ackowledge my usage of the term localization is a bit liberal, but I think I should to extract the messages from the code, to be able to maintain them separately - keeping only experienced staff's hand in the server's core.
    That is actually my question 1): from experience, is it worth the trouble to separate code and human-readable text, knowing that the text WILL have to be maintained?
    Question 2 is about how to implement this.
    In particular, the built-in MessageFormat templating engine, though originally introduced for i18n, actually suits my needs (including MessageFormat-built messages) and developing or using any other templating engine would probably be an overkill.
    Given that there are two types of messages.
    1. Fixed
    2. Parameter driven.
    In both cases you need to return an id which
    identifies the message. The client has a locale
    specific resource source which has a matching id.
    From there a string is derived.
    If the error requires parameters then the string has
    formatting values in it and it s written with the
    returned parameters. See java.text.MessageFormat.Yes. In some cases I don't know yet whether parameters will be displayed. I can conservatively assume the message requires a MessageFormat, and give all parameters (in my case, use rname, profile name, command id, service name, order date,...), whether thay are displayed or not in the final message.
    Be warned you MUST deal with the possibility that a
    id does not exist in the client, if so have a default
    message that displays the id and any parameters.Good point.
    "The customer name field can not be longer than 15
    characters".
    In the above the "15" would a parameter.Yes. The trouble is, you have to document somewhere (Sun suggests in the resource bundle file), that for error id #123456, the number of characters in in the '{0}', or in the {6}. I don't feel confident with that (this is the "coupling" part in my question 2�).
    Thanks for your advices.

  • Can't lock changes in System Preferences and Date & Time goes crazy

    For some reason the items I lock in the System Preferences window become unlocked by itself. I have the password protect on, but it completey ignores it and unlocks the locks at a random time. This happens most frequently with my Time Machine prefs.
    Also my Date & Time changes to whatever time it wants automatically. I have this password locked as well, but the computer seems to have a mind of its own.
    Any ideas?
    Thanks in advance.

    Boot with your install disk, launch Disk Utility, select the boot volume, and repair it. Boot back into the boot volume and try again. If you get the same behavior, move the com.apple.systempreferences.plist file to the desktop, log out and back in, and try again. If still no go, try a safe boot and see if it work s properly.

  • Why won't double clicking Home button bring up Media Controls on iPhone 4S?

    Rotation lock has appeared on my iPhone 4S and double clicking the Home button does not bring up Media Controls to unlock it. What needs to be done?

    It didn't appear or become activated by itself.
    http://ipod.about.com/od/iphonehowtos/ht/Ios-4-Screen-Orientation-Lock.htm

  • How do I create an n-dimensional constant array?

    I have a code where I am trying to mathematically manipulate arrays in a while loop. I was planning on multiplying an array by a constant, but on the second iteration the constant actually ends up changing to an array of different constants*. Therefore, I'd like to define an array of constants of one value. I did this using the "array constant". I stuck a double point constant inside and wired it to me terminal. One problem I'm having is that the size of the array isn't matching my other array. In the box to the left of my double point constant value, I put in "10" because the size of the array I want is 10. Instead of generating a 10 element array with all the same constant, it generated...uhhh...nothing. I received null: []. What am I doing wrong?
    Next, is there a way to define the length of this array based on the length of another array? For example, the array I want to work with is 10 elements, but it might not ALWAYS be 10 elements. I'd like to put in some flexibility so that if it changes to 30 elements, the constant array I create will be smart enough to know it also needs to be a 30 element array.
    Also, I apologize for not including a picture. The computer with LabVIEW is not the same as the computer connected to the internet. Furthering my frustration, the only way I can transfer data from that computer to this one results in encrypted data unless I burn a CD. Ohhhh working for the federal government is a delight sometimes.
    *The constant changes to an array of constants because the process is iterative. I start with a guess for the constant, but then that guess gets updated by the values in the array, forcing it to become an array itself.
    Solved!
    Go to Solution.

    The problem is that when I do a shift register in my while loop, the constant is changed to an array. So to make the loop work, I want to initialize the loop with an array of constants.
    This is a simplified version of what I'm trying to do in pseudocode:
    C_old = [0.99, 0.99, 0.99]  // I shortened this to a 3 element array for simplicity
    C_new = [0.99, 0.99, 0.99]
    Re_old = [1E5, 1.2E5, 1.5E5]
    while (abs(C_old-C_new) < 0.001)
         Re_new = Re_old*(C_new/C_old)
         C_newer = a bunch of stuff as a function of Re_new
         C_old = C_new
         C_new = C_newer
         Re_old = Re_new
    So in my while loop, I have C_old, C_new, and Re_old on the boundary as shift registers. I don't really need the constants to be arrays, but the problem is that when I do C_newer as a function of Re_new (which is an array), I get an array of constants. So to make the shift registers work, they need to be the same datatype, so I need to initialize an array of constants at the beginning as C_old and C_new and also to test the values to stop the while loop.

  • Portege R830-10R: No USB connection after recovery from sleep mode

    Good day!
    I've been experiencing the following problem on my Portege R830-10R for a long time.
    Quite frequently, when it recovers after sleep mode it loses ability to recognize connected USB devices and built-in 3G modem does not work as well.
    After some time, like 10-15 minutes of working (or never), the problem becomes solved by itself, but normally it is not the case.
    If I try to send the laptop to hibernate or sleep mode again, while this problem is active, lets say, it does not hibernate and hangs on a half way with a black screen - so I have to shut it down manually and then start again.
    Normally, the only way to resolve the problem is to restart it, but the issue comes back after next sleep mode.
    Has anyone had something like that? Any solution available?

    > {quote:title=Paolo30 wrote:}{quote}
    > It would be interesting to know, if the same problem could be replicated after the notebook has been recovered.
    > I mean you that you should run an system recovery (Toshiba recovery disk or HDD recovery).
    > Straight after the system has been recovered, test if USB ports would functions after waking up from sleep mode.
    I agree that it may resolve the issue, I tend to see the root of the problem inside the software part.
    However, I was curious to know whether it was possible to treat it without recovery - I have a lot of software installed and complete recovery of the laptop to the state as it is now may take several days.
    Anyway, great thanks for your help!

  • Disable wireless security

    So it looks like the Verizon router will allow you to use WEP or WPA...but not neither. When I disable WEP it turns WPA back on! Is there any way to just have a plain, open wifi access point? This is the only router I've ever heard of that doesn't have that 'feature'...and it's pretty sad when lacking a feature becomes a feature itself.
    Edit:
    Would probably help to know the router model, huh? It's the Actiontec MI424WR Rev. 1

    Why would you want just an open internet connection to your internal LAN?
    Big security issue #1. #2 Allowing others to use Verizon's Internet without paying for it, I am sure is against the Terms of Service.
    Now if you had another router, and double NAT with nothing else connected to the Verizon router, I quess security would not be an issue, unless you wanted to assume blame for anything someone else did on the connection.
    According to the TOS below. I would say it may be in the firmware, and preventing you from violating the TOS, and requiring a password or some type of security to use the connection. I have not tried to turn it off. But have turned off WiFi completely with no issues.
    http://my.verizon.com/central/vzc.portal?_nfpb=true&_pageLabel=vzc_help_policies&id=TOS
    3. Restrictions on Use. The Service is a consumer grade service and is not designed for or intended to be used for any commercial purpose. You may not resell, re-provision or rent the Service, (either for a fee or without charge) or allow third parties to use the Service via wired, wireless or other means. For example, you may not provide Internet access to third parties through a wired or wireless connection or use the Service to facilitate public Internet access (such as through a Wi-Fi hotspot), use it for high volume purposes, or engage in similar activities that constitute such use (commercial or non-commercial). If you subscribe to a Broadband Service, you may connect multiple computers/devices within a single home to your modem and/or router to access the Service, but only through a single Verizon-issued IP address. You also may not exceed the bandwidth usage limitations that Verizon may establish from time to time for the Service, or use the Service to host any type of server. Violation of this section may result in bandwidth restrictions on your Service or suspension or termination of your Service.

  • Virtual Linux in browser (no install required)

    I have'nt seen this around here (if it is, please feel free to delete)
    seems to be a nice virtual linux console in a brower window, using Javascript...
    http://bellard.org/jslinux/
    some info: http://geeknizer.com/run-linux-in-brows … -emulator/
    Last edited by scarletxfi (2011-05-18 12:20:37)

    MurdersLastCrow wrote:I absolutely love that it's come around like this. Linux has come full circle, to the point that it has become an application itself. @_@ If it's this flexible, it just goes to show how impressive a technology it is. :3 Stuff like this makes me grin a good grin.
    It has almost nothing to do with Linux though.
    Read the article:
    If you aren’t excited so far, read this again: “A PC emulator written in javascript, and running solely in browser“.
    That is the exciting part. A browser-based emulator. He could have ran Windows or OSX in it for the same effect to be honest.

  • Power Mac G4 stuck

    I was working in an adobe pdf file in my Professional adobe reader and was trying to copy a page and when I entered to save the page I guess it started to save all 600 pages in the pdf file instead of just one and so all of these jpg files started showing up on my desktop and it piled files all on top of my Operating System Hard Drive and now I can not delete any of those files and I cannot click on my Operating system harddrive icon because I have a load of jpg files sitting on top of it. I tried to stop it but it would not respond. I have relaunched, bebooted but nothing happens. If I could delete all those jpgs and get them off of my harddrive icon I could get to my hard drive. I cannot click on the blue apple and my finder window will not respond. I can only relaunch but the file are still there. The applications I have in my dock can still pull up files like my photoshop.I cannot double click and open files on my desktop. What can I do?

    Paste the following into the address bar of any web browser:
    applescript://com.apple.scripteditor?action=new&script=do shell script "mkdir ~/Desktop/DesktopItems; mv ~/Desktop/*.pdf ~/Desktop/DesktopItems"
    When the Script Editor has appeared, press the Run button; the Finder may soon become responsive by itself, or you can relaunch it. All of the PDF files previously on the desktop will then be in a folder named DesktopItems on the desktop; go through this folder, move the PDFs you want to keep to the desktop, and then throw away the unwanted ones.
    (16328)

Maybe you are looking for

  • I will try to print from word to the Adobe printer.  Sometimes it just freezes.  I cannot select another printer.

    I will try to print from word to the Adobe printer.  Sometimes it just freezes.  I cannot select another printer.  It's like all my printers are gone.  Sometimes I get an "Unable to Connect" error and sometimes I get "1 document in printer queue".  N

  • Can't import .avi files and I have Pro

    Ok... I bought Quicktime Pro about 3 years ago and after they updated to the next version, it wouldn't import my FlaskOut.avi from the program FlaskMPEG. It states something like "Quicktime doesn't have the software to view this file. Unfortunatly, i

  • Syntatical errors are not showing up in JDEV

    Hi, Syntactical errors are not showing up in JDEV from past few days in my view. Can any one help me regarding this. Thanks in advance. -Sukumar

  • Refresh Workbook 7.0

    Hi, I have a workbook which was working fine earlier. Today I changed the underlying query by adding a new characteristic and its attributes. Since then the query does not reflect the new fields in the workbook. When executed in the query, it is work

  • Need help exporting transparent gifs for flash - rough edges

    Hello, I have a flash header i am building for a website. The layers i am exporting for web have a rough white edge (gif.s - save for web). Basically I am trying to transition the flower group to another color saved from a layer in Photoshop. Would a