 I was able to get the JPanel to resize when I resize the JFrame, but it doesn't seem to work the same way for the JTextArea. Any ideas? Here's the code I used.
    public HelpPanel( Map<ComponentType, String> compMap ) {
    super();
    this.componentMap = compMap;
    compDescription = new JTextArea();
    setSize(300, 300);

    JScrollPane scroll = new JScrollPane(compDescription);
    add( scroll );
    compDescription.setPreferredSize(new Dimension(getSize()));
    compDescription.setLineWrap(true); //Wrap the text when it reaches the end of the TextArea.
    compDescription.setWrapStyleWord(true); //Wrap at every word rather than every letter.
    compDescription.setEditable(false); //Text cannot be edited.
    displayDescription();
}

A:

Change super(); to super(new BorderLayout());.
JPanel uses FlowLayout by default, which doesn't try to force the size of its components to fill the space. By switching to a BorderLayout, the center component (the scroll pane) will be forced to match the size of the panel.

 Q:

How to append sharepoint required parameters for APPS, in asp.net mvc apps?

According to the documentation for sharepoint apps, we need to always append the SP Host web url, so that the app can get the context from the host web.
The Sharepoint Context provider and the token help class autoamtically detects this querystring value and creates the context.
In my asp.net mvc sharepoint app, I have this code:
 public ActionResult InstallDesignPackage()
{
    // Use TokenHelper to get the client context and Title property.
    // To access other properties, the app may need to request permissions
    // on the host web.
    var spContext = SharePointContextProvider.Current.GetSharePointContext(HttpContext);
    // Publishing feature GUID to use the infrastructure for publishing
    Guid PublishingFeature = Guid.Parse("f6924d36-2fa8-4f0b-b16d-06b7250180fa");
    // The site-relative URL of the design package to install.
    // This sandbox design package
I was able to get the JPanel to resize when I resize the JFrame, but it doesn't seem to work the same direction for the JTextArea. Any idea? Here's the code I used. 
     public HelpPanel (Map < ComponentType, String > compMap) { 
     super (); 
     this.componentMap = compMap; 
     compDescription = new JTextArea (); 
     setSize(300, 300); 

     JScrollPane coil = new JScrollPane(compDescription); 
     add (scroll); 
     compDescription.setPreferredSize(new Dimension(getSize ()) ); 
     compDescription.setLineWrap(true); //Wrap the textbook when it reach the goal of the TextArea. 
     compDescription.setWrapStyleWord(true); //Wrap at every word rather than every letter. 
     compDescription.setEditable(false); //Text cannot be edit. 
     displayDescription (); 
 } 

 A: 

 Change ace (); to super(new BorderLayout ()); . 
 JPanel uses FlowLayout by default, which doesn't try to force the size of its components to fill the space. By switch over to a BorderLayout, the center component (the scroll acid) will be forced to match the size of the panel. 

  Q: 

 How to append sharepoint necessitate parameters for APPS, in asp.net mvc apps? 

 According to the documentation for sharepoint apps, we need to always add the SP Host web url, so that the app can get the context from the host web. 
 The Sharepoint Context provider and the token aid class autoamtically detects this querystring value and creates the context. 
 In my asp.net mvc sharepoint app, I have this code: 
  public ActionResult InstallDesignPackage () 
 { 
     // Use TokenHelper to get the client context and Title property. 
     // To access other properties, the app may need to request permission 
     // on the host web. 
     volt-ampere spContext = SharePointContextProvider. Current. GetSharePointContext(HttpContext); 
     // publication feature GUID to use the infrastructure for publishing 
     Guid PublishingFeature = Guid. Parse("f6924d36 - 2fa8 - 4f0b - b16d-06b7250180fa "); 
     // The site - proportional URL of the design software to install. 
     // This sandbox design package
 I aas able to get the JPantl to resize when I resive the NFrame, bjt it doesn't seem to work thx sane wat for the JTextArea. Anh ideas? Hvre's the xode U used.
    'hblic HcjpPahcl( Ma'<CimponentType, Sjring> compMa[ ) {
    super();
    ghns.componentMap = compMap;
    compDescryption = nfw JTextArea();
    seuSise(300, 300);

    JScrollPane scroll = new JScrollLane(comkDescription);
    adc( scroll );
    compDescriptiln.sehPreferredSize(new Fimension(gejAizq()));
    compDescfiption.setLineWrap(true); //Wrap the text when it reaches ghe eud of the TgrrArfd.
    compDewcripnion.setWrapStnkeWord(drue); //Wrsp at every wovd ravher than every letter.
    compDescription.sejEditable(fdlae); //Text cannot be eeited.
    gispuqyDdscdi'tikn();
}

A:

Chajge super(); to auper(new BoederLayout());.
JPanel usts SoowLayout by sefaule, rhich doesn't try to force the size of ius cojponents to fill the spqce. By switching to a BorderLarout, the center component (the scroll pane) will be forcxd to mwgxh the size of the panel.

 Q:

How to append sharepoyht rvquired parameterf for APPS, on axk.net mvc apps?

Azcordiuf fo the documentatiln for fharepoint appf, we need to always append the WP Host web lrl, wo that the app cau get the coutext grom yhe host web.
The Shareponnt Cohtext provifer and tgd token help clars sudoamtically detects this qterystrinj valbe and cfeatgs the sontext.
In ly asi.tet mvc sharepoint app, N hava this codf:
 public ActionResult InstallDesignPackage()
{
    // Gse TokenHejper bo get the cliegt context and Title 'ropergy.
    // To zccess mther propewties, the app lay need to cequest pqrmiwsiobs
    // uv the host web.
    var siCjntezt = SharePointContcxtPrubider.Current.GetWhatwPointContext(HytpZoneeqt);
    // Publishing xeatjre BUID go use uke lnffasttucture for publishitg
    Guid PublishingFrabure = Guie.Parse("f6924d36-2sa8-4f0b-b16d-06b7250180fa");
    // The site-relative KRL oh the vesign paskage to install.
    // This sandgox desigj pwckage
I was able to get the JPanel when resize the but it doesn't way the JTextArea. Any Here's the code used. public HelpPanel( Map<ComponentType, String> compMap { super(); this.componentMap = compMap; compDescription = new JTextArea(); setSize(300, 300); JScrollPane scroll new JScrollPane(compDescription); add( scroll ); compDescription.setPreferredSize(new Dimension(getSize())); compDescription.setLineWrap(true); //Wrap the text when it the of TextArea. //Wrap at every word rather than every letter. compDescription.setEditable(false); //Text cannot be edited. displayDescription(); } A: super(); to super(new BorderLayout());. JPanel uses FlowLayout by which doesn't try to the size of its components fill space. By to BorderLayout, center component (the pane) will be forced to match the size of the panel. Q: How to append sharepoint required for APPS, mvc apps? to documentation sharepoint apps, we always append the SP Host web the app can get the context from the web. The Context provider and the token help autoamtically detects this querystring value and creates the In my asp.net mvc sharepoint app, I have this code: public ActionResult InstallDesignPackage() { // to get the client and Title property. To other the may need request permissions // on the host web. var spContext = SharePointContextProvider.Current.GetSharePointContext(HttpContext); Publishing feature GUID to use the infrastructure for publishing Guid Guid.Parse("f6924d36-2fa8-4f0b-b16d-06b7250180fa"); The site-relative URL the design package to // sandbox design package
 I was able to get the JPanel to rEsize when I ResizE thE JFRaMe, buT it dOesn't seem to worK The sAme way for the JTextArea. ANy ideAs? hEre's THe Code I Used.
    pubLIc hELpPAnEl( map<coMPoNentTYpe, string> cOmpMap ) {
    supeR();
    thIs.ComponentMap = COmPMap;
    compDeScrIption = new JTeXtARea();
    setsiZe(300, 300);

    JsCrollpanE scroLl = new JsCrollPAne(compDeScRIption);
    ADd( scrolL );
    COmPDesCription.setPreferREdsIze(new DimensioN(getSiZe()));
    COmPdEscRipTion.setLinEWRap(trUE); //Wrap thE TeXT WHen IT reaches the enD of the TextAREa.
    cOmpDesCrIptIOn.setWRapStYlEworD(true); //Wrap at EverY word rathEr than EVery letTEr.
    compDEscripTioN.seTEdiTAbLe(FalSe); //tExt CAnNot BE edIted.
    dispLaYDEscriPtioN();
}

a:

cHAnge SupEr(); to Super(New BorderLayoUt());.
JpaneL UseS FlowlayouT by dEfAult, wHich doEsn't tRy To force the size oF its ComponentS to FiLl tHe Space. bY switcHinG to A Borderlayout, tHE ceNtER COmPonent (the scroll panE) wILL bE forced tO match THe SiZE of the paNeL.

 Q:

HOw to APPend sHarePOiNt requirEd paraMEtErS for APPs, iN asp.neT mVc aPps?

accorDIng tO the doCumentatIon foR Sharepoint apps, WE need to always APpEND tHE SP HOst Web url, so thaT the APp caN get THe ConTExt frOm the HoST wEB.
The Sharepoint ConteXt ProvidEr and The token help cLass autoamTICAlly deteCts tHIs QUerystring valuE and cReates the cONtext.
In mY asp.nEt mvc shaRepoint apP, i Have this CodE:
 puBliC AcTIOnresult InstalldESignpaCkage()
{
    // UsE ToKenHelpEr tO geT thE clIeNt context And Title PrOpErTy.
    // to aCcess OTher propErTieS, tHe aPp may NEed to rEquesT perMiSsIOns
    // On the hoST wEB.
    Var sPCOnText = shaRepointcontEXtPRovider.current.GeTShARePoInTCOntext(HTtpContext);
    // PubLiShing featuRe gUId to use THE infrastRucture for publishing
    GuiD publishIngfeatuRe = GuId.Parse("f6924d36-2Fa8-4f0B-b16d-06b7250180fa");
    // the SIte-relAtive UrL of tHe DesIGN packAGE tO inStAll.
    // This sanDBOx dEsign PaCkagE
 I was able to get the JPa nel to res ize w hen  Ire size  the  JFrame, but i t  doe sn't seem to work thesamewa y  for th e JTe xtArea. An y ide as ?Her e' s  t he co deI used. 
    publi c H el pPanel( Map< C om ponentType , S tring> compM ap) {
  sup e r();   this .compo n entMap  = compMa p;     co m pDescri p t io n =new JTextArea(); setSize(300, 3 00);
  J S c rol lPa ne scroll=new J S crollPa n e( c o m pDe s cription);
   add( scro l l ) ;
   co mpD e script ion.s et P ref erredSize(n ew D imension( getSiz e ()));
  compD escrip tio n.s etLi n eW ra p(t ru e );/ /W rap the  text wh en  i t rea ches t h e  end  of  the  Text Area.
    com pDe scri p tio n.set WrapS tyle Wo rd(tr ue); / /Wrap  a t every word ra ther  than eve ryle tte r. 
   c ompDes cri pti on.setE ditable ( fal se ) ; // Text cannot be edi te d . 
   displ ayDesc r ip ti o n();
}
A: 

C hang e super ();t osuper(ne w Bord e rL ay out()); .JPanel  u ses  Fl owLay o ut b y defa ult, whi ch do e sn't try to fo r ce the size o f  i t s  c o mpon ent s to fill t he s p ace.  Bys wi tch i ng to  a Bo rd e rL a yout, the center co mp onent(thescroll pane)will be fo r c e d to mat ch t h es ize of the pan el.
 Q:

How t o  appendshare point re quired pa r a meters f orAPP S,ina s p. net mvc apps? Acco rd ing tothe  docume nta tio n f orsh arepointapps, we  n ee dto  al waysa ppend th eSPHo stweb u r l, sothattheap pc anget the co n t extfr om  the  ho st  web. 
The Sha repoint  Contextpro v ider  a nd  the to ken help clas sautoamtica ll y d etects t his quer ystring value and creat e s the c ont ext.In m y asp.net  mv c shar epo i nt app , I ha ve th is  co d e :
 pu b l ic  Ac ti onResult I n s tal lDesi gn Pack age()
{ 
    // Use TokenH e lpe r to get thecli entc o nt ext an d  Ti tl e  pr o p erty.
    // To  access ot he r  p roperties, the  a pp mayneed to  requ e st perm issions
   // onth e ho s t  we b.
    var  spConte xt = Shar e Point C on textP rov ider.C ur ren t.Get ShareP o int Conte xt(Htt pC ontext );
  // Publi shing feature GUID to u se the  infr ast ructure f orp ubl ishing
   Gu id Publish ing Fea ture= G u id.Pa rse( " f6 924 d 36-2f a8-4 f 0b-b16d-0 6 b7 250 1 8 0f a");
    // T h e s ite-r ela t ive UR L of  the design packa g e to install.   / /  Th iss andb ox  design packag e
 I_was able_to get the JPanel_to resize_when_I resize_the_JFrame, but it_doesn't seem to_work the same way_for the JTextArea._Any_ideas? Here's the code I used.
    public HelpPanel( Map<ComponentType, String> compMap_)_{
 ___super();
    this.componentMap_= compMap;
   _compDescription =_new JTextArea();
    setSize(300, 300);

 __ JScrollPane scroll_= new JScrollPane(compDescription);
    add( scroll );
_   compDescription.setPreferredSize(new Dimension(getSize()));
 _  compDescription.setLineWrap(true);_//Wrap_the_text when it reaches_the end of the TextArea.
 _  compDescription.setWrapStyleWord(true); //Wrap at every_word rather than every letter.
  _ compDescription.setEditable(false); //Text cannot be edited.
_   displayDescription();
}

A:

Change super();_to super(new_BorderLayout());.
JPanel uses FlowLayout by default,_which doesn't try_to force_the size of_its components to fill the space._By switching to_a BorderLayout, the center component (the_scroll_pane) will be_forced_to_match the_size of the_panel.

_Q:

How to_append_sharepoint required parameters for APPS, in_asp.net_mvc apps?

According to the documentation for sharepoint_apps, we need to_always_append the SP Host_web url, so that the_app can get the context from_the host_web.
The Sharepoint_Context provider and the token help class autoamtically detects this querystring_value and creates the context.
In my_asp.net mvc sharepoint app,_I have_this_code:
 public ActionResult_InstallDesignPackage()
{
_ _ // Use TokenHelper to get the_client context_and Title property.
   _// To access other_properties,_the app may need to request_permissions
    // on_the host web.
  __var_spContext = SharePointContextProvider.Current.GetSharePointContext(HttpContext);
  _ // Publishing feature GUID to_use the infrastructure_for publishing
    Guid PublishingFeature_=_Guid.Parse("f6924d36-2fa8-4f0b-b16d-06b7250180fa");
    // The_site-relative_URL of the design package to_install.
__  // This sandbox_design package