School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,144 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,813 people online right now. Registration is fast and FREE... Join Now!



Jpanel PROBLEM

Jpanel PROBLEM changing constructor Rate Topic: -----

#1 veronica 2707  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 17-March 09


Dream Kudos: 0

Posted 23 March 2009 - 12:10 AM

hello,

i`m having a little issue about adding this code
		//Make tabbed panes look like tabbed panes should
		System.setProperty("Quaqua.tabLayoutPolicy","scroll");
		//Move the menu bar to Mac OS X position
		   System.setProperty("apple.laf.useScreenMenuBar", "true");

		// set the Quaqua Look and Feel in the UIManager
		try {
			  UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
		// set UI manager properties here that affect Quaqua
		 
		 } catch (Exception e) {
			 System.out.println("Appropriate error message");
		 // take an appropriate action here
		 }
into this one
/*
 * JPanel.java
 *
 * Created on March 22, 2009, 1:00 PM
 */

package com.pagesofinterest.quaqua_maven_netbeans;

/**
 *
 * @author  Rama
 */
public class JPanel extends javax.swing.JPanel {

	/** Creates new form JPanel */
	public JPanel() {
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(
			layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
			.addGap(0, 400, Short.MAX_VALUE)
		);
		layout.setVerticalGroup(
			layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
			.addGap(0, 300, Short.MAX_VALUE)
		);
	}// </editor-fold>


	// Variables declaration - do not modify
	// End of variables declaration

}



I`m using netbeans and when i modify the code,it display a red exclamation which say that cannot find symbol
HELP ME PLEASE,ITS A KIND REQUEST

This post has been edited by veronica 2707: 23 March 2009 - 12:12 AM

Was This Post Helpful? 0
  • +
  • -


#2 BigAnt  Icon User is offline

  • May Your Swords Stay Sharp
  • Icon
  • View blog
  • Group: Contributors
  • Posts: 2,391
  • Joined: 16-August 08


Dream Kudos: 75

Posted 23 March 2009 - 04:48 AM

Where are you trying to add this code, if you add it make sure you change the variable names to match the variables you are using in your code.

Also if no variable problem make sure you import everything you need.
Was This Post Helpful? 0
  • +
  • -

#3 veronica 2707  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 19
  • Joined: 17-March 09


Dream Kudos: 0

Posted 23 March 2009 - 08:39 AM

View PostBigAnt, on 23 Mar, 2009 - 04:48 AM, said:

Where are you trying to add this code, if you add it make sure you change the variable names to match the variables you are using in your code.

Also if no variable problem make sure you import everything you need.



Thank you sooo much for your reply Sir,Actually i`m following a tutorial Link and i`m completely stuck in step 7..it say to add the following code
	//Make tabbed panes look like tabbed panes should
		System.setProperty("Quaqua.tabLayoutPolicy","scroll");
		//Move the menu bar to Mac OS X position
		   System.setProperty("apple.laf.useScreenMenuBar", "true");

		// set the Quaqua Look and Feel in the UIManager
		try {
			  UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
		// set UI manager properties here that affect Quaqua
		 
		 } catch (Exception e) {
			 System.out.println("Appropriate error message");
		 // take an appropriate action here
		 }


and when i`m adding the following code,its displaying red marks

i`m not an expert in programming language,i`m into it for about 2 month now...
Please help me...
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month