How will i get new line in window data?

Hi All,

In my project i want to display data like table. I am getting values. But in display thing i faced some problem.

for reference please see this link:

i wrote code like this:

  void DoMyWindow3(int windowID)
  {
    GUI.Label(new Rect(0,0,400,100), " Length Timeperiod Angle "          +StripeValue+""+Pendulum2.Timeperiod +""+Pendulum2.count ,fontstyle);

}

By using this code every time i am getting the values but that are not displayed correctly. I want table, like before link.

Please give me a suggestion.

Thanks to all

Shankar

Use GUILayout or math:

for ( each row ) {
  GUILayout.BeginHorizontal();
  // or:
  top+= rowHeight;
  left= 0;
  for ( each column ) {
    GUILayout.Label(data[row,column]);
    // or:
    GUI.Label(Rect(left,top,w,h),data[row,column]));
    left+= columnWidth;  
  }
  GUILayout.EndHorizontal();
}