[Solved / resolved] Look And Feel (LAF)

Buenos dias, tardes o noches muchachos! Explico a poco el tema: results as I am using United Nations LAF (Look And Feel) of manera mas especifica Synthetica BlueLight look and feel http://www.javasoft.de/synthetica/themes/

Pero cuando ejecuto por primera vez el código (prueba) sell me the Java ventana tipica y no is applied por completo el estilo o tema as aplique, por otro lado al apply UN "dispose()"; run again el código to Arab well see there.


Entonces las ¿Esto son questions are por defecto? ¿Hay alguna respond? What I do in such a way? , the dejo el codigo y una imagen por if need.


Look_And_Feel.gif



import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JMenuBar;
import Utilerias.Apariencia;
import componentes.CompMenu;
import componentes.CompMenuItem;


public class pruebaMenu extends JFrame implements ActionListener
{
   private JMenuBar     menuBarra;
   private CompMenu     menu;
   private CompMenuItem item;
  
   public pruebaMenu()
   {
                             new Apariencia(Apariencia.SYNTHETICA_BLUE_LIGHT);
      menuBarra = new JMenuBar();
      setJMenuBar(menuBarra);
      menu = new CompMenu(menuBarra,"Menu_1");
      item = new CompMenuItem(menu,"Reynald0",this);
      this.setVisible(true);
      this.setBounds(200,200,400,300);
      setDefaultCloseOperation(EXIT_ON_CLOSE);
   }
  
   public void actionPerformed(ActionEvent pE)
   {
      if(pE.getSource().equals(item))
      {
         System.out.println("El menu2");
         dispose();
         new pruebaMenu();
      }
   }
  
   public static void main(String[] args)
   {
      new pruebaMenu();
   }
}

Of photos MUCHAS gracias por su ayuda y tiempo! A cordial greeting!

The respond are put

new Apariencia (Apariencia.SYNTHETICA_BLUE_LIGHT);

Antes mandar an el call JFrame para that apliquen los cambios, debe meet ups:

  1. Public Shared Sub main (String [] args)
  2. {
  3. new Apariencia (Apariencia.SYNTHETICA_BLUE_LIGHT);
  4. new pruebaMenu();
  5. }

Tags: Java

Similar Questions

  • Look and feel (LAF) project: how to get a left button tag justified?

    Salvation (François)

    We have implemented the appearance code and would like to have transparent with just the label watch buttons (so that the buttons look like a list on the screen).

    It works perfectly except the labels buttons are always centered and I can't seem to left-aligned. The justification is the Ok if we use a circle or a diamond, but not with the text (ie: using the DrawText function). Is there a way to do this?

    IE using:

    Set_Custom_Property (pvc_mat_attribute | pi_mga_seq_no, 1, 'SET_TEXT_POSITION', 'left');
    Set_Custom_Property (pvc_mat_attribute | pi_mga_seq_no, 1, "SET_TEXT', 'Some Text');

    Thank you
    Steve

    Now, version 1.3.6 is released.

    François

  • JTable header Center alignment in spouses look and feel

    In JTable header Center alignment for spouses look and feel with following code.
    DefaultTableCellRenderer tcrColumn = new DefaultTableCellRenderer();
    tcrColumn.setHorizontalAlignment (JTextField.CENTER);
    table.getColumnModel () .getColumn (0) .setHeaderRenderer (tcrColumn); "
    He lose the scene for this table header.
    How can I solve it. (1.) I want to center of table header alignment and
    2.) I don't want to lose it scene.

    Published by: user12114912 on November 22, 2010 12:17 AM

    Copy the code tags http://forums.oracle.com/forums/ann.jspa?annID=1391

    If you need not editable TableHeader, then I have no doubt better use JLabel (returns by default)

    your TableCellRenderer works with any appearance &

    Maybe this one can hepl you (also works with Nimbus LaF)

         final TableCellRenderer cellRendener = myTableName.getTableHeader().getDefaultRenderer();
            myTableName.getTableHeader().setDefaultRenderer(new TableCellRenderer() {
    
                @Override
                public Component getTableCellRendererComponent(JTable table, Object value,
                        boolean isSelected, boolean hasFocus, int row, int column) {
                    JLabel label = (JLabel) cellRendener.getTableCellRendererComponent(
                            table, value, isSelected, hasFocus, row, column);
                    label.setBackground(Color.orange);
                    label.setForeground(Color.darkGray);
                    label.setFont(new Font("SansSerif", Font.BOLD, 12));
                    //label.setBorder(BorderFactory.createCompoundBorder(label.getBorder(),
                    //        BorderFactory.createEmptyBorder(0, 5, 0, 0)));
                    //label.setHorizontalAlignment(SwingConstants.LEFT);
                    label.setHorizontalAlignment(SwingConstants.CENTER);
                    if ((label.getText().equals("First")) || (label.getText().equals("Second"))) {
                        label.setForeground(Color.red);
                    }
                    if ((label.getText().equals("Day")) || (label.getText().equals("Month")) || (label.getText().equals("Year"))) {
                        label.setForeground(Color.blue);
                    }
                    if ((label.getText().equals("Time"))) {
                        label.setForeground(Color.green);
                    }
                    return label;
                }
            });
    
  • change dynamically Office look and feel?

    Hi all

    I have 2 aspect each of them for a language.i want to change the look and feel of Office according to the language of the user?

    I thought about applying a backup file on the desktop, but I've not found in desktopbackingcontext to set the look and feel, any solution method?

    Thank you

    Hello

    I hope that this code snippet will help you.

    import com.bea.netuix.laf.PortalLookAndFeel;

    PortalLookAndFeel lookAndFeel is PortalLookAndFeel.getInstance (request);.
    lookAndFeel.reinit (skinID);

    where:
    request - the current user HttpServletRequest

    This method should be called in the method handlePostbackData() of the backup file.

    Note: I used this in file based portals.

    Thank you and best regards,
    Pazhanikanthan. P

  • Look and Feel of Runtime Android Apps

    Hello

    I wonder why the look and feel of Android apps only differs from that of the rest of the development for BB10 Playbook & platforms. I read somewhere that RIM wants all their apps to be consistent across all platforms and that is why AIR apps and native applications have the same user interface. For example, the way that is menu. the color and size of the title bar, etc. But the Android Runtime Apps are always the Android UI 2.3.3. Will RIM work on this in the future? Or DURATION always Android apps will have different UI than the Native BB10/Playbook apps? And also they plan support the latest Android OS? Because it's really hard back in 2.3.3 so that I can port my app to BB10/PlayBook.

    Thank you

    Knockaert

    Hello

    Since the Android Runtime is based on Android Gingerbread 2.3.3 menus and controls will be shown as they would on an Android device. Conversion of the menus and interface elements user who will be like native BlackBerry 10 apps could introduce a quantity important issues with Android apps brought as they have not been designed or implemented to the point to be re-stylized.

    However, we are always looking for ways to improve the end-user experience in the Android Runtime. Such a feature for BlackBerry 10 was our integration to the new keyboard, including text prediction. We will continue to add features of integration like this in the future to reduce the user interface differences between Aboriginal people and applications Android Runtime. And Yes, we evaluate currently supported for a new Android operating system releases in the future.

    Thank you for your comments,

  • New Look and Feel - why I am a "student"? And no recaptcha Image last night?

    Like the new look, but:

    -Why I am a "student" and where can I change this (if anywhere) as its not obvious on the profile page.  In fact the profile is pretty useless - cannot change the user name - I could use my old I tried to do too much was already in use (of course).

    -Last night, when I wanted to participate in the forums that I couldn't because it kept asking me to recaptcha verification words, but the word images not show so I couldn't enter forums. I've tried three different browsers, empty cookies blah blah blah. 8 hours later the word verification image appears immediately.  No good first impressions on the new look and feel.

    -I'm also annoyed because I bought a new printer and cannot reset the password to access eprint is very frustrating (but it is on another post)

    Thank you

    P

    Hello:

    The forum uses a structure of academic ranking.

    The Forum members will move to the line based on the participation and contribution.

    Please see the info on the link below.

    http://h30434.www3.HP.com/T5/community-news/HP-support-forum-ranking-overview/m-p/6#M337

    Paul

  • My Windows look and feel has changed

    Usually, I'm able to Google solutions to all my computer problems, but this one I can't understand. Just using my computer normally (alt tab frequently between windows 5 or 6), I don't know what I pushed, but something so my windows look and feel has changed in a couple of ways, and I want to know how I can change it back. My buttons of legend (close, optimize and reduce) have changed the way they seem to be normal square icons to 3 horizontal lines identical blue. They look cool, but more difficult to click and boring. In addition, my menu alt tab changed to regular desktop icons - he used to display an overview of large size of each window, each about the size of 4 desktop icons implemented. Can someone tell me what I did to make this change? I've done before, restarted my computer and the appearance was back to normal, but I did once again, somehow and close down / restarts and other parameters such as personalization, the appearance of the window and themes will not change this back. Help!

    Have you tried to remove alienware theme?  Sounds like a good place to start, most of the third-party themes replace system files used for window styles and legend buttones (.msstyles files), and I bet that's the root cause of here.

  • ODI 12 c, Menu bar disappears with the Windows look and feel

    I've changed the look and feel of Oracle for Windows in the preferences, but ODI restarted disappeared from the menu at the top of the application bar. I can't change the look and feel of back because I can't have preferences as there is no menu.

    I had a glance in conf files for this setting, but can't find it.

    How can I change the look and feel back to Oracle or get the menu bar in the look and feel of Windows?

    If you delete this directory with the cached information and start to ODI, he must return to the original settings;

    C:\Users\\AppData\Roaming\odi\system12.1.2.0.0

    Looks like nobody has tried to change the look and feel.

    See you soon

    David

  • Look and feel of self-service pages under Oracle Applications Manager (OAM)

    Hi all

    After you have applied the patches to upgrade the module of HRMS 12.1.3 to 12.1.5, look and feel of self-service pages under Oracle Applications Manager (OAM) changed means buttons not appearing is not in good standing. and the appearance of pages are not in good standing. What happens to the self-service OAM only pages.

    Level of the current patches HRMS group: r12.hr_pf.b.delta.5
    OS: RHEL 5.3 x86_64

    No idea it please...

    Thank you inadvance.

    Kind regards
    900076.

    Please also see the following documents.

    Look and feel of Self Service Pages are screwed up after R12 Upgrade [1556590.1 ID]

    How to clear the Caches (Apache/iAS, Cabo, Modplsql, browser, Jinitiator, Java, portal, WebADI) for E-Business Suite? [742107.1 ID]

    Thank you

    Hussein

  • ADF Destop Look and Feel integration

    Dear all,

    I'd like to customize appearance of ADF Desktop Integration look and feel in Excel.Where can get tutorials and resources. Please share me Articles and web links.


    Kind regards
    KT

    Hello

    Check this.

    http://docs.Oracle.com/CD/E15523_01/Web.1111/e10139/config_appear.htm

    Also, check out the components and features demo (http://www.oracle.com/technetwork/developer-tools/jdev/adfdi-componentfeaturedemo-101324.html). You'll find a few good styles as well.

    Arun-

  • FJcalendar bean with 1.7 LAF (look and feel) work together.

    Hello
    I use Oracle forms and reports 10g R2 (10.1.2.3), implemented "Java swing calendar" it works without any problem, now I want to add 'LAF Scroll Text' in my forms but despite too many struggle without success after investigation I found if I take FJcalendar.jar (added to calendar Java swing) LAF scrolling for the tag file 'archive' start work but as soon as I add FJcalendar It stops again, someone has experienced this, please help.

    Thank you and best regards,
    Syed

    You must sign ALL the pots that are present in the tag archive, except frmall.jar.

    François

  • Look And Feel to the dashboard

    Hello

    I've developed reports obiee lately as part of my training activity. I came across a few examples of reports from google, and I find them very professional and much better than what I have created. I enclose several images here, the first 3 images contains the dashboard I created and the fourth example of google report. Can anyone help me design dashboards that seems very professional?

    query1.JPGquery3.JPGquery2.JPG

    7973.png

    Hello

    Firstly, it is good to say that "professional research" is subjective, that it is better to look for is probably not uniformity.

    You're not too far honestly...

    First point is that you use a lot of sections. If you use many sections of your page uncheck the option 'Folding', it will hide the upper area of the sections with the icon to the left. If you don't need 3-4 sections just use a unique, not need a section by element. Hide borders of your sections, so you don't see all the blocks in your page.

    These few things will do it look better already.

    Another point is style: keep the colors, fonts, size uniform etc. in your objects.

    You have a blue, black, yellow, grey background on some of your lines, you really need different colors? Really have a meaning? If this is not the case, just use a single.

    Start there and don't forget to make things uniform.

  • I need an honest opinion on the Look and Feel of my Web site?

    Hi guys,.

    We redesigned our Web site to look better.

    http://www.allreviewz.com

    I just want to CIHI honest criticism and suggestions from you people.

    What we thought is that it has become a little slow. Is it by chance related to our new changes.

    We go Grateful to those who give us honest critics.

    Thanks in advance.

    Smiles,

    Swetha

    Hi Swetha,

    Your layout of the Web site looks really good.

    You must have the best concept of sprite images used in your blog. There are also a good number of external style sheet files in your theme in the quiet.

    Also my other sincere proposal is to increase the width of your reading pane. He is currently in the 6:4 ration. I suggest that bring you to 7.5:2.5 who

    gives player more chance and comfort for reading your blog.

    I assume you are using a shared hosting from justhost and speak the dns of loading up to 3 seconds which is very bad.

    Normally for a good Web site should take up to 0.6 seconds to 1 second maximum. This is the reason why your blog is looking for slow.

    Please contact your host and they know.

    I've tried and reviewed your site honestly. Hope this helps you...

    Kind regards

    Lherault

  • Change the Hotspot glossary look and feel?

    Hello

    I want to use the Hotspot glossary feature in my RoboHelp WebHelp project. However, I do not view the method used by RoboHelp to its Hotspots (basically, I love the concept of Hotspots, but I don't like RoboHelp execution of them). By default, in the generated output, the term is italicized and the definition appears (also in italics) in line with the text of the help page. Ugh.

    Can I set up my project to display the definition by using a window popup (or mouseover) and not online? Also, can I change the default text italicized to something else (playing with the file .css for the project maybe)?

    Thank you!

    Hey ayanna

    It is easy to change the look. You edit your style sheet. Click Format > Styles and look in the section on character styles.

    The Exchange operation will be difficult. There is no alternative. If you would like to see added in a later version, please consider submitting a form of wish asking for it. You can do this using the link below:

    Click here to view the WishForm/Bug report form

    See you soon... Rick

  • Problem with the look and feel of the button send on the OA Page - Urgent

    Hello

    We have created several buttons in a custom of OA Page validate.

    Several buttons confirm with guest like 'Go', 'Apply' display correctly
    but little present created buttons with prompt like 'EndDate' or 'Confirm' appear as HTML buttons (grey and square-shaped)
    If I change the prompt to "Go" once again it works fine. How can I solve it?

    Any info would be a great help.

    Thank you
    Kassy

    Hi Katy,.

    It has nothing to do with the buttons send prompt...

    Please confirm your instance of the ADMINISTRATOR that the X display server is ON or not.

    This is because only because of this...

    Thank you
    Gerard

Maybe you are looking for

  • Name of the motherboard

    Dear HP, HP 3135 MT Pro, I had and I need to know the name of the motherboard that is added to the basic computer. I need to know, because I want to change case. Thank you for your attention.

  • Satellite L500 - 19 - how to properly configure the keyboard?

    I bought a Satellite L500 - 19 c with Windows 7 64 bit and I am having trouble with the keyboard mapping for the correct use of the Portuguese language. When I try to highlight a letter, for example by 'one', I get the side ' ~ ~ ' instead of the acc

  • Slide with several digital poster Down filter event Bug button?

    A key event filter on a slide with several digital screens down does not work as expected when not waived. If you for example tab of this slide with two digital screens digital display, the cursor remains on his position, rather than get KeyFocus to

  • Runtime error keeps coming back!

    Hello.. I have this run-time error that comes up constantly on my laptop (HP with Windows Vista). Its saying that the problem is in.Program: C:\Windows\SMINST\BLService.exe. And said Application MFC STServices stopped working and was closed. If I cou

  • Windows 7 prof 64 bit, macros of lotus smart suite 9.8 fail error 1037

    Installed Lotus Smart Suite9.8 on 64-bit Windows 7 Prof. Lotus, said their software has been tested on Windows 7 and it works. I found 2 problems with which runs under Windows 7 Prof 64 bit. It is with the help files, found the fix on the Microsoft w